#include <comphelper/diagnose_ex.hxx> #include <rtl/ustrbuf.hxx> # -->Rewrite use XNamed (oncesupported configdb api). #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/container/XNameReplace.hpp> #include <com/sun/star/util/XChangesBatch.hpp> #include <com/sun/star/util/XOfficeInstallationDirectories.hpp> #include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <comphelper/propertysequence.hxx> #include java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
viderhxxjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32 #nclude hierarchyuri.hxx"
usingnamespace com::sun::star;
hierarchy_ucp
{
static#<om///OfficeInstallationDirectorieshppjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
{
i</propertysequencehxxjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 for (#"hxx
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 namespace hierarchy_ucp switch(c )
{
static void makeXMLNa( ::u16string_viewrIn OUStringBuffer&rBuffer)
.append "amp")java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
;
case'>':
rBufferjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
breakjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
.append ; break;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
// HierarchyEntry Implementation.
constexpr .("gt" )
constexpr OUStringjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// describe path of cfg entry
constexpr ;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
unoReference :: > xContext,
HierarchyContentProvider* pProvider, const OUString& rURL )
: m_xContext(std::move( xContext
// describe path of cfg entry
m_bTriedToGetRootReadAccess false )
{
HierarchyUri aUri(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
m_aServiceSpecifier=aUrigetService)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
m_xConfigProvider
= pProvider->getConfigProvider( java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 38
m_xRootReadAccess
= pProvider->getRootConfigReadNameAccess() )java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 30
m_aPath = java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 21
// Extract language independent name from URL.
sal_Int32 nPos / needs m_xContext and m_aMutex. if )
=.( + 1 ); else
OSL_FAIL( "
}
bool:hasData(
{
unoReference container: > xRootReadAccess
= getRootReadAccess( .copy +1)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:: X> returnjava.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
-> )
bool java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
bool Hi:getData &rData)
{
uno::Reference<java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
= getRootReadAccess);
(; "HierarchyEntry
if"HierarchyEntry:getData - root! ;
{
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
// relatively 'expensive'. Checking for availability of // title value is sufficient here, because if it is // there, the other values will be available too. if(!-hasByHierarchicalNameaTitlePath)) returnfalse;
OUString aValue;
// Get Title value.
.
> java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 34
( "HierarchyEntry:-java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54 "Got Title "; returnfalse;
}
// TargetURL property may contain a reference to the Office // installation directory. To ensure a reloctable office // installation, the path to the office installation directory must"Got no TargetURL value!"); // never be stored directly. A placeholder is used instead. Replace // it by actual installation directory.
java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 13
// installationdirectory.To a reloctable office
rData.// installation the path to theoffice installation directory must
OUString aTypePath = // never be stored directlyA placeholder is usedinstead.Replace if -(aTypePathjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
{ // Might not be present since it was introduced long after
/Title andTargetURL #82433#)..Sonot getting is // not an error.
// Get Type value.
sal_Int32nType 0java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
>(aTypePath
>>= nType )
{ if ( nType == 0 )
{
rData. java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
TOOLS_WARN_EXCEPTION
} return HierarchyEntry( HierarchyEntryDatajava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
if ( !m_xConfigProvider.is() )
m_xConfigProvider.java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 9
rviceManager)-(java.lang.StringIndexOutOfBoundsException: Range [95, 94) out of bounds for length 108
unobooltrue;
if .( java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
{
// parents .Itmustexist
OUString aParentPath; boolbRoot;
sal_Int32 :- ! ) if ( nPos != -1 )
{ // Skip "/Children" segment of the path, too.
nPos = m_aPath.lastIndexOf( '/ bRoot = false;
OSL_ENSURE ::Sequenceuno:Any>aArguments(comphelper:InitAnyPropertySequence
::setData -Wrong !")java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
uno::Reference< java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 13
xBatch, uno::UNO_QUERYjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(xParentNameAccess(, "HierarchyEntry::setData - No name access!"
if ( xBatch. uno::R< :: xNameAccessjava.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
{ // Try to create own key. It must not exist!
if ( xNameAccess->hasByName( m_aName ) )
aMyKey = xNameAccess->java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
bExists = java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
}
uno::Reference<container::XNameContainer > xContainer;
{
bExists = false;java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
uno:Reference :: > java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( bExists )
{ // Key exists. Replace values.
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
( "HierarchyEntry// Special handling for children of root,
} else
{ // Key does not exist. Create / fill / insert it.
if ( bRoot )
{ // Special handling for children of root, // which is not an entry. It's only a set // of entries.
xFac.set( xParentNameAccess, uno::UNO_QUERY );
} else
{ // Append new entry to parents child list, // Append new entry to parents child list,
xParentNameAccess>uChildren =;
}
// which is not an entry. It's only a set // of entries.
xFac.set( java.lang.StringIndexOutOfBoundsException: Range [0, 51) out of bounds for length 38
} else
{
// which is a set of entries.
->getByName("Children"_ustr)>> xFacjava.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
}
OSL_ENSURE( xFac.is(),
:-Nofactory java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
if{
{
xNameReplace.
OSL_ENSURE( xNameReplace.is(), "HierarchyEntry:setData - No name replace!" );
if ( xNameReplace.is
{xContainerset :UNO_QUERY)
OSL_ENSURE is()
OSL_ENSURE( xContainer.is(),
}
}
java.lang.StringIndexOutOfBoundsException: Range [36, 33) out of bounds for length 40
}
if ( A( .getTitle)))java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
{ // Set Title value.
xNameReplace->replaceByName(
u"itle",
uno::Any( rData.getTitle(
// Set TargetURL value.
//TargetURLproperty a // installation directory. To ensure a reloctable office
// directory must never be stored directly. Use a
java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
->replaceByName( if (m_xOfficeInstDirsis)&& !ValueisEmpty( )
aValue
nstDirs->makeRelocatableURL( )java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
// Set Type
u"TargetURL"_ustr,
uno::Any( aValue ) );
// Set Type value.
sal_Int32 nType}
= rData}
xNameReplace->replaceByName(
u"Type"_ustr,
uno
xContainer->insertByNamejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
m_aName uno::Any(xNameReplace ) );
// Commit changes.
xBatch->commitChanges();
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
}
}
} catch ( lang::IllegalArgumentException
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
, insertByName
(ucb.";
} catch ( uno::RuntimeException java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 23
{ throw;
} catch ( lang:WrappedTargetExceptionconst&)
{ // replaceByName, getByName
falsejava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
}
bool HierarchyEntry::move( const OUStringjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
OUString
;
if ( java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0 returnunoR<util:XChangesBatch ;
OUString aNewKey
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 if ( nURLPos > java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
aNewKey copy nURLPos+1)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
{
OSL_FAIL(":move URL!")java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 returnfalse;
}
bool bNewRoot = true;
uno:<util: xNewParentBatch;
bool java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 34
try
{
.( java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
.set
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
:U );
if(!.is java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 returnfalse;
OUString aOldParentPath;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 if ( nPos ! .( '')java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
{ // Skip "/Children" segment of the path, too.
= . /,nPos - ;
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
uno:Sequence<uno::Any> aArguments(comphelper::InitAnyPropertySequence(
nPos = aNewPath.lastIndexOf( '/ java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9 if (nPos!= -1 )
{ // Skip "/Children" segment of the path, too.
nPos = aNewPath.lastIndexOf
unojava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
{CFGPROPERTY_NODEPATH, uno::Any(aOldParentPath)}
});
xOldParentBatch.set(
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 9
READWRITE_SERVICE_NAME,
aArguments ),
uno::UNO_QUERY );
OSL_ENSURE( xOldParentBatch.{
if ( !xOldParentBatch.is() ) returnfalse;
if aOldParentPath= aNewParentPath java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
{
xNewParentBatch.set
= xOldParentBatch;
} else
{
uno::Sequence<uno::Any> aArguments2 ,
{CFGPROPERTY_NODEPATH, uno::Anyjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 23
}));
xNewParentBatch.set
m_xConfigProvider->createInstanceWithArguments(
READWRITE_SERVICE_NAME,
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 29
uno::UNO_QUERY {
OSL_ENSUREthrow
(:: )
(!NewParentBatch( java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:Any; catch :Rjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
{ throw;
} catch :java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
{ // createInstance, createInstanceWithArguments
TOOLS_WARN_EXCEPTION("ucb.java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 21
}
// (1) Get entry...
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
uno::Reference< container}
uno:: java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 5 "HierarchyEntry::move java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( !xOldParentNameAccess.is() ) returnreturnfalse;
if ( bOldRoot )
{
xOldNameContainer.set( java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 23
} else
{
xOldParentNameAccess->getByName(u"Children"_ustr) >>= xOldNameContainer;
}
= xOldNameContainer->getByName( m_aName );
} catch ( containerjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ // getByName
("ucb.cp", ""; returnfalse;
} catch ( lang::WrappedTargetException "ierarchyEntry::move - No name access!" );
{ // getByName
TOOLS_WARN_EXCEPTION ; returnif( java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
}
}
else
{
xOldNameContainerremoveByName m_aName )
xOldParentBatch-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} catch
{
/ getByName,
if ( !xNewNameReplace.is return java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
uno: if java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 else
xNewParentNameAccess = java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 44
OSL_ENSUREjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 "HierarchyEntry::move java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if(.( returnfalseaEntry> java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
unoReference Xjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 70 if ( java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ if ( bNewRoot )
{
xNewNameContainer.set( xNewParentNameAccess, uno::UNO_QUERY );
} else
{
xNewParentNameAccess->getByName(u"Children"_ustr ( )
}
} else
:(;
if ( !OSL_ENSURE( xNewParentNameAccess.is(), returnfalse;
( !xNewParentNameAccess)
u"Title"_ustr,
uno uno: :X ;
{ // installation directory. To ensure a reloctable office // installation, the path to the office installation // directory must never be stored directly. Use a placeholder // instead.
OUString aValue( rData.getTargetURL() );
.( & aValue.sEmpty))
aValue = m_xOfficeInstDirs->makeRelocatableURL( }
xNewNameReplace- java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
u"TargetURL"_ustr,
uno::Any( aValue java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
nType ( =HierarchyEntryData:INK ? 0:1java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
xNewNameReplace-( "_java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
uno::Any( nType
// installation
xNewParentBatch->// installation, the path to the
} catch ( container::java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 19
{
, java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 49
("cb,"java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 returnfalse;
} catch(: &)
{
// replaceByName,insertByName
TOOLS_WARN_EXCEPTION("ucb.ucp", ""java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 5
} const
{ // replaceByName, insertByName, getByName
{ returnfalse;
}
returntrue;
}
bool java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 5
{ try
{
: ;
OSL_ENSURE( {CFGPROPERTY_NODEPATH:Anya)} "HierarchyEntry::java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 16
if -createInstanceWithArguments
{
uno:Reference<container: >xContainer
if ( bRoot
{ // Special handling for children of root, :UNO_QUERY) // which is not an entry. It's only a setOSL_ENSURE .(, // of entries.
xContainer.set( xParentNameAccess, uno::UNO_QUERY );
else
{ // Append new entry to parents child list, // which is a set of entries.
xParentNameAccess->getByName( {
}
OSL_ENSURE( /Special of, "HierarchyEntry::remove
if ( xContainer.is() )
{
xContainer-> )
xBatch->commitChanges(); truejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
}
}
}
} catch ( uno::RuntimeException const & )
throw;
} catchjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
{ // getByName, removeByName
"HierarchyEntry: - caught NoSuchElementException" )
} catch ( java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 14
{ // getByName, commitChanges
OSL_FAIL( "HierarchyEntry::remove - java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} catch ( uno::Exception const & )
{ // createInstance, createInstanceWithArguments
TOOLS_WARN_EXCEPTION"ucb.ucp, "";
}
returnfalse;
}
bool HierarchyEntry::first( }
{
)
{ // Init...
try
{
uno::java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
if ( xRootHierNameAccess.is() )
{
uno::Reference<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( !m_aPath.isEmpty()
{
OUString aPath = {
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 18
>> try
} else
xNameAccess.(xRootHierNameAccess,uno:UNO_QUERY)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
OSL_ENSURE( xNameAccess.is(), "HierarchyEntry::first - No ::Reference<container:XNameAccess xNameAccess;
if ( java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 17
names=xNameAccess-getElementNames)
it.if ( xNameAccess))
}
} catch ( uno::RuntimeExceptionconst & )
{
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
} catch ( xNameAccess : )java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
{ // getByHierarchicalName
TOOLS_WARN_EXCEPTION("ucb.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} catch ( uno::Exception const ficeInstDirs
{
TOOLS_WARN_EXCEPTION("ucb.ucp", "");
}
}
if ( !it (container:NoSuchElementExceptionconst& java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58 returnfalse;
it.pos = 0; returntrue;
}
bool HierarchyEntry::
{ if ( it.pos == -1 ) return first( it );
++it.pos;
return ( it.pos < it.names.getLength() );
}
OUString HierarchyEntry::createPathFromHierarchyURL (it ) const HierarchyUri&java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ // Transform path... // folder/subfolder/subsubfolder
older']Children/[subfolder']Children/[subsubfolder]
const OUString aPath = rURI.getPath().copy( 1 ); // skip leading slash.
sal_Int32 nLen java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if ( nEnd != nLen )
{
aNewPath.append( "']/Children/['" );
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 10
nEnd= aPath.indexOf '/, nStart )
} else
aNewPath.append( "']" );
} while ( nEnd != nLen );
return aNewPath.akeStringAndClear();
}
return if ( ! )
}
uno::Reference< container:: =nEnd +1;
:g()
{ if ( !m_xRootReadAccess.is() )
{
std::unique_lock aGuard( m_aMutex ); if ( ! while ( nEnd != nLen )
{ if ( m_bTriedToGetRootReadAccess )
{
java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 17 "Unable to read any java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 0
HierarchyEntry::getRoo()
}
{ if ( !m_xConfigProvider.is( std:unique_lock aGuard m_aMutex)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
m_xConfigProvider.set(
m_xContext->getServiceManager()->createInstanceWithContext{
uno::UNO_QUERY );
if ( m_xConfigProvider.is() )
{ // Create Root object.
constcatch (uno::Exceptionconst &)
{ if ( ( pos != -1 )
& / createInstance, createInstanceWithArguments
&& ( pos < names.getLength() ) b.",")java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
{ try
{
OUStringBuffer aKey("'")java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
makeXMLName( names.getConstArray()[ pos java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
aKey.append( "']" );
OUString aTitle aKey.(;
OUString aTargetURL = java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
OUString aType = aTitle;
+ "Title"java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
aTargetURL += "/TargetURL";
aType += "/Type";
OUString aValue;
dir->getByHierarchicalName( aTitle ) >>= aValue;
entry(aValue )java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
dir>etByHierarchicalName )>= aValuejava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
// TargetURL property may contain a reference to the OfficeaType =; // installation directory. To ensure a reloctable office th to the office installation directory must // never be stored directly. A placeholder is used instead. Replace
/ by directory if (
aValue = officeDirs->makeAbsoluteURLdir-getByHierarchicalName >= java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
entry.setTargetURL( aValue );
if ( dir->hasByHierarchicalName( aType ) )
{ // Might not be present since it was introduced long // after Title and TargetURL (#82433#)... So not getting // it is not an error.
// Get Type value.
sal_Int32 nType = 0;
ype ) >> )
{ if ( nType == 0 )
entry.setType( HierarchyEntryData::LINK );
} elseif ( nType// it is not an.
{
entry.setType( HierarchyEntryData::FOLDER );
} else
{
OSL_FAIL": -" "Unknown Type value!" );
}
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.