diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itemset.cxx | 18 | ||||
-rw-r--r-- | svl/source/misc/ownlist.cxx | 68 |
2 files changed, 0 insertions, 86 deletions
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx index 09c5004c2322..809cfa5925bd 100644 --- a/svl/source/items/itemset.cxx +++ b/svl/source/items/itemset.cxx @@ -350,24 +350,6 @@ void SfxItemSet::ClearInvalidItems( bool bHardDefault ) } } -void SfxItemSet::InvalidateDefaultItems() -{ - sal_uInt16* pPtr = m_pWhichRanges; - SfxItemArray ppFnd = m_pItems; - - while( *pPtr ) - { - for ( sal_uInt16 nWhich = *pPtr; nWhich <= *(pPtr+1); ++nWhich, ++ppFnd ) - if (*ppFnd && *ppFnd != reinterpret_cast<SfxPoolItem *>(-1) - && **ppFnd == m_pPool->GetDefaultItem(nWhich)) - { - m_pPool->Remove( **ppFnd ); - *ppFnd = reinterpret_cast<SfxPoolItem*>(-1); - } - pPtr += 2; - } -} - void SfxItemSet::InvalidateAllItems() { assert( !m_nCount && "There are still Items set" ); diff --git a/svl/source/misc/ownlist.cxx b/svl/source/misc/ownlist.cxx index b06cfc935fc7..11449fb8c2a4 100644 --- a/svl/source/misc/ownlist.cxx +++ b/svl/source/misc/ownlist.cxx @@ -25,74 +25,6 @@ using namespace com::sun::star; -static OUString parseString(const OUString & rCmd, sal_Int32 * pIndex) -{ - OUString result; - - if(rCmd[*pIndex] == '\"') { - (*pIndex) ++; - - sal_Int32 begin = *pIndex; - - while(*pIndex < rCmd.getLength() && rCmd[(*pIndex) ++] != '\"') ; - - result = rCmd.copy(begin, *pIndex - begin - 1); - } - - return result; -} - -static OUString parseWord(const OUString & rCmd, sal_Int32 * pIndex) -{ - sal_Int32 begin = *pIndex; - - while(*pIndex < rCmd.getLength() - && !isspace(sal::static_int_cast<int>(rCmd[*pIndex])) - && rCmd[*pIndex] != '=') - (*pIndex) ++; - - return rCmd.copy(begin, *pIndex - begin); -} - -static void eatSpace(const OUString & rCmd, sal_Int32 * pIndex) -{ - while(*pIndex < rCmd.getLength() && isspace(sal::static_int_cast<int>(rCmd[*pIndex]))) - (*pIndex) ++; -} - -/** - * Text is parsed and the single commands are added to the list. - * -*/ -void SvCommandList::AppendCommands -( - const OUString & rCmd, /* This text is translated to commands */ - sal_Int32 * pEaten /* Count of chars that have been read */ -) -{ - sal_Int32 index = 0; - while(index < rCmd.getLength()) - { - - eatSpace(rCmd, &index); - OUString name = (rCmd[index] == '\"') ? parseString(rCmd, &index) : parseWord(rCmd, &index); - - eatSpace(rCmd, &index); - OUString value; - if(index < rCmd.getLength() && rCmd[index] == '=') - { - index ++; - - eatSpace(rCmd, &index); - value = (rCmd[index] == '\"') ? parseString(rCmd, &index) : parseWord(rCmd, &index); - } - - aCommandList.push_back( SvCommand(name, value)); - } - - *pEaten = index; -} - /** * An object of the type SvCommand is created and the list is * attached. |