20#include <osl/diagnose.h>
28 : aRecordPerSet( true )
29 , aRecordAbsolute( false )
32 , aReadOnlyDoc ( true )
38 , aRecordPerSet( true )
39 , aRecordAbsolute( false )
42 , aReadOnlyDoc ( true )
219 sal_uInt32 nTokPos = rInStm.
Tell();
249 OSL_FAIL(
"Illegal definition!");
250 rInStm.
Seek( nTokPos );
259 rInStm.
Seek( nTokPos );
268 sal_uInt16 nListCount =
static_cast<sal_uInt16
>(rList.size());
273 else if ( nListCount == 1 )
274 nPos = rList[ 0 ]->GetSlotId().GetValue() >=
nId ? 0 : 1;
277 sal_uInt16 nMid = 0, nLow = 0;
278 sal_uInt16 nHigh = nListCount - 1;
280 while ( !bFound && nLow <= nHigh )
282 nMid = (nLow + nHigh) >> 1;
283 DBG_ASSERT( nMid < nListCount,
"bsearch is buggy" );
291 else if ( nDiff > 0 )
302 nPos = bFound ? nMid : nLow;
309 "Successor has lower SlotId" );
312 "Predecessor has higher SlotId" );
315 "Successor has lower SlotId" );
317 if (
nPos < rList.size() )
319 SvSlotElementList::iterator it = rList.begin();
320 std::advance( it,
nPos );
332 return "SfxSlotMode::" + pEntry->
GetName().toAsciiUpperCase();
336 std::vector<OString> & rList,
340 if ( !aMethodName.isEmpty() &&
341 aMethodName !=
"NoExec" )
344 for(
size_t n = 0;
n < rList.size();
n++ )
346 if (rList[
n] == aMethodName)
355 rList.push_back( aMethodName );
365 if (aMethodName.isEmpty() || aMethodName ==
"NoState")
369 for (
size_t n=0;
n < rList.size();
n++ )
371 if (rList[
n] == aMethodName)
380 rList.push_back( aMethodName );
390 std::string_view rSlotId,
416 SvMetaSlot* pEle = ( ++
i < rSlotList.size() ) ? rSlotList[
i ] :
nullptr;
425 pEle = ( ++
i < rSlotList.size() ) ? rSlotList[
i ] :
nullptr;
434 pEle = rSlotList.empty() ? nullptr : rSlotList[
i ];
440 pEle = ( ++
i < rSlotList.size() ) ? rSlotList[
i ] :
nullptr;
521 pT = pRT ? pRT : rBase.
FindType(
"SfxVoidItem" );
582 for(
size_t n = 0;
n < rList.size();
n++ )
597 return static_cast<sal_uInt16
>(rList.size());
609 sal_uInt16 nSCount = 0;
613 nSCount =
static_cast<sal_uInt16
>(pType->
GetAttrCount());
616 WriteSlot( rShellName,
nCount, slotId, rSlotList, nStart, rBase, rOutStm );
bool ReadStringSvIdl(SvStringHashEntry const *pName, SvTokenStream &rInStm, OString &aRetString)
bool ReadSvIdl(SvStringHashEntry const *pName, SvTokenStream &rInStm)
void ReadSvIdl(SvStringHashEntry const *pName, SvTokenStream &rInStm)
const OString & getString() const
sal_uInt32 GetValue() const
SvMetaAttribute * FindKnownAttr(const SvIdentifier &)
SvMetaAttribute * ReadKnownAttr(SvTokenStream &rInStm, SvMetaType *pType)
SvRefMemberList< SvMetaType * > aUsedTypes
SvMetaType * FindType(std::string_view rName)
void insert(typename base_t::iterator it, T p)
SvStream & WriteOString(std::string_view rStr)
SvStream & WriteChar(char nChar)
const OString & GetName() const
void Seek(sal_uInt32 nPos)
#define DBG_ASSERT(sCon, aError)
static OString MakeSlotName(SvStringHashEntry const *pEntry)
TOOLS_DLLPUBLIC SvStream & endl(SvStream &rStr)