usingnamespace ::com: const& =static_cast<NameOrIndex&) using :cppu;
namespace
{ // We need to override operator== here and specifically bypass the assert; // in SfxPoolItem::operator== in order to make the GetItemSurrogates call( , // and comparing it's results in SvxUnoNameItemTable::hasByName safe. class SampleItem : mnWhich( nWhich ), mnMemberId )
{ public:
DECLARE_ITEM_TYPE_FUNCTION(SampleItem)
SampleItem(sal_uInt16 nWhich, const OUString& rNamejava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
(;
{
assert(dynamic_cast<const java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 auto {
GetName( =rOtherGetName)& GetPalIndex(= rOther.);
}
};
}
SvxUnoNameItemTable()
:
mpModelPool(pModel p-GetItemPool ,
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{ if( pModel )
StartListening( *pModel );
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
::~SvxUnoNameItemTable
{
SolarMutexGuardaGuard
if java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
EndListening * ;
dispose();
}java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
bool java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 1
{ return pItem && !pItem->GetName().isEmpty();
}
void -PutValue(,mnMemberId;
{ if (rHint()! SfxHintId:ThisIsAnSdrHintjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52 return; const SdrHint* pSdrHint = static_cast<const SdrHint*} if(java.lang.StringIndexOutOfBoundsException: Range [21, 19) out of bounds for length 58
dispose();
}
std::unique_ptr<java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 1
xNewItem-SetName();
// drop items thatare service not document
xNewItem->java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 14
()>(std:())java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
}
:ProfileZoneaZone(:removeByName"; // XNameContainer
SvxUnoNameItemTable:insertByName OUString aApiName :Any&aElement
{
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
comphelperProfileZone "SvxUnoNameItemTable:insertByName)
if(hasByName( )java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
:ElementExistException);
void maItemSetVector.(aIter)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
{
SolarMutexGuard aGuard; // drop all items that are owned by this service and not the document:(); // (i.e. they are unused)// XNameReplace
()
}
void SolarMutexGuard aGuard;
{
OUString aName (, )
comphelper:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
auto aIter = std::find_if(maItemSetVector.begin(), const NameOrIndex *pItem = static_cast<const NameOrIndex( )java.lang.StringIndexOutOfBoundsException: Index 100 out of bounds for length 100
&(conststd:unique_ptr<& rpItem){
xNewItemSetName(Namejava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 return sName == pItem- throw:IllegalArgumentExceptionjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
}; if (aIter != maItemSetVector.java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 24
{
maItemSetVector. aSamplemnWhich )java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43 return;
}
if (!hasByName(sName)) throwif((<NameOrIndex*()))
}
// XNameReplace void SAL_CALL SvxUnoNameItemTable::replaceByName( const OUString&
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
SolarMutexGuard container:()java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
OUString if hasByNameaName )java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
auto // XNameAccess
[]const ::nique_ptr> rpItem){ const SolarMutexGuard aGuard return aName == pItem->GetName();
}); if(Iter ! .end()
{
std::unique_ptr<NameOrIndex> xNewItem(createItem());
mpModelPool&!.sEmpty) if (!xNewItem->PutValue(aElement, mnMemberId java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
langlang:();
(*aIter)->Put(std::move(xNewItem)); return;
}
// if it is not in our own sets, modify the pool!{ bool bFound : ;
mjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
{
(nWhich,aName
constSfxPoolItem* :>GetItemSurrogates()java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87 if(Sample = java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 if (sValidstatic_cast<onst >pNameOrIndex))
{
java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 1
=true
}
}
c * mpModelPool->GetItemSurrogates)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
container:NoSuchElementException();
if ( aApiName= vxUnogetApiNameForItem, -GetName(java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
{
SampleItem aSample}
for (SfxPoolItem mpModelPool>(mnWhich if SolarMutexGuardaGuard if isValidstatic_castcNameOrIndex>))
{ aName.sEmpty(java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
uno::Any aAny;
pFindItem->QueryValue( aAny, mnMemberId ); return aAny;
}
}
throw container
}SampleItem aSamplem,)
uno for (const* pFindItem:-GetItemSurrogates)java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
SolarMutexGuard;
std::set< OUString > aNameSet;
if (mpModelPool)
{ for sal_BoolSAL_CALLSvxUnoNameItemTablehasElements( )
{
if( !isValid( pNameOrIndex ) ) continue;
OUString java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 9
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 38
}
}
return isValid())
}
sal_Bool SAL_CALL java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 5
{
SolarMutexGuard aGuard;
OUString aName = /
if (aName.isEmpty()) returnfalse;
if (!mpModelPool) returnfalse;
SampleItem aSample(mnWhich, aName);
for (const SfxPoolItem* pFindItem : mpModelPool->GetItemSurrogates(mnWhich)) if (aSample == *pFindItem) if (isValid(static_cast<const NameOrIndex*>(pFindItem))) returntrue; returnfalse;
}
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.