LibreOffice Module svl (master) 1
Public Member Functions | Private Attributes | List of all members
StylePoolImpl Class Reference

class StylePoolImpl organized a tree-structure where every node represents a SfxItemSet. More...

Public Member Functions

 StylePoolImpl (SfxItemSet const *pIgnorableItems)
 
std::shared_ptr< SfxItemSetinsertItemSet (const SfxItemSet &rSet, const OUString *pParentName=nullptr)
 
std::unique_ptr< IStylePoolIteratorAccesscreateIterator (bool bSkipUnusedItemSets, bool bSkipIgnorableItems)
 

Private Attributes

std::map< const SfxItemSet *, NodemaRoot
 
std::map< const SfxItemSet *, OUString > maParentNames
 Names of maRoot keys. More...
 
std::unique_ptr< SfxItemSetmpIgnorableItems
 
sal_Int32 mnCount
 

Detailed Description

class StylePoolImpl organized a tree-structure where every node represents a SfxItemSet.

The insertItemSet method adds a SfxItemSet into the tree if necessary and returns a shared_ptr to a copy of the SfxItemSet. The aRoot-Node represents an empty SfxItemSet.

Definition at line 338 of file stylepool.cxx.

Constructor & Destructor Documentation

◆ StylePoolImpl()

StylePoolImpl::StylePoolImpl ( SfxItemSet const *  pIgnorableItems)
inlineexplicit

Definition at line 351 of file stylepool.cxx.

References Clone(), SfxItemSet::Count(), DBG_ASSERT, DEBUG, and mpIgnorableItems.

Member Function Documentation

◆ createIterator()

std::unique_ptr< IStylePoolIteratorAccess > StylePoolImpl::createIterator ( bool  bSkipUnusedItemSets,
bool  bSkipIgnorableItems 
)

Definition at line 443 of file stylepool.cxx.

References maParentNames, and maRoot.

Referenced by insertItemSet().

◆ insertItemSet()

std::shared_ptr< SfxItemSet > StylePoolImpl::insertItemSet ( const SfxItemSet rSet,
const OUString *  pParentName = nullptr 
)

Member Data Documentation

◆ maParentNames

std::map< const SfxItemSet*, OUString> StylePoolImpl::maParentNames
private

Names of maRoot keys.

Definition at line 343 of file stylepool.cxx.

Referenced by createIterator(), and insertItemSet().

◆ maRoot

std::map< const SfxItemSet*, Node > StylePoolImpl::maRoot
private

Definition at line 341 of file stylepool.cxx.

Referenced by createIterator(), and insertItemSet().

◆ mnCount

sal_Int32 StylePoolImpl::mnCount
private

Definition at line 347 of file stylepool.cxx.

Referenced by insertItemSet().

◆ mpIgnorableItems

std::unique_ptr<SfxItemSet> StylePoolImpl::mpIgnorableItems
private

Definition at line 345 of file stylepool.cxx.

Referenced by insertItemSet(), and StylePoolImpl().


The documentation for this class was generated from the following file: