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

#include <style.hxx>

Collaboration diagram for SfxStyleSheetIterator:
[legend]

Public Member Functions

 SfxStyleSheetIterator (const SfxStyleSheetBasePool *pBase, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
 Constructor. More...
 
SfxStyleSearchBits GetSearchMask () const
 
SfxStyleFamily GetSearchFamily () const
 
virtual sal_Int32 Count ()
 
virtual SfxStyleSheetBaseoperator[] (sal_Int32 nIdx)
 
virtual SfxStyleSheetBaseFirst ()
 
virtual SfxStyleSheetBaseNext ()
 
virtual SfxStyleSheetBaseFind (const OUString &rStr)
 
virtual ~SfxStyleSheetIterator ()
 
bool SearchUsed () const
 

Protected Attributes

const SfxStyleSheetBasePoolpBasePool
 
SfxStyleFamily nSearchFamily
 
SfxStyleSearchBits nMask
 

Private Member Functions

SVL_DLLPRIVATE bool IsTrivialSearch () const
 

Private Attributes

SfxStyleSheetBasepCurrentStyle
 
sal_Int32 mnCurrentPosition
 
bool bSearchUsed
 

Friends

class SfxStyleSheetBasePool
 

Detailed Description

Definition at line 187 of file style.hxx.

Constructor & Destructor Documentation

◆ SfxStyleSheetIterator()

SfxStyleSheetIterator::SfxStyleSheetIterator ( const SfxStyleSheetBasePool pBase,
SfxStyleFamily  eFam,
SfxStyleSearchBits  n = SfxStyleSearchBits::All 
)

Constructor.

The iterator will only iterate over style sheets which have the family eFam

Definition at line 388 of file style.cxx.

References AllVisible, bSearchUsed, n, nMask, nSearchFamily, and Used.

◆ ~SfxStyleSheetIterator()

SfxStyleSheetIterator::~SfxStyleSheetIterator ( )
virtual

Definition at line 405 of file style.cxx.

Member Function Documentation

◆ Count()

sal_Int32 SfxStyleSheetIterator::Count ( )
virtual

Definition at line 409 of file style.cxx.

References All, IsTrivialSearch(), n, nMask, nSearchFamily, pBasePool, and SfxStyleSheetBasePool::pImpl.

Referenced by First().

◆ Find()

SfxStyleSheetBase * SfxStyleSheetIterator::Find ( const OUString &  rStr)
virtual

◆ First()

SfxStyleSheetBase * SfxStyleSheetIterator::First ( )
virtual

Definition at line 465 of file style.cxx.

References Count(), and operator[]().

Referenced by SfxStyleSheetBasePool::First().

◆ GetSearchFamily()

SfxStyleFamily SfxStyleSheetIterator::GetSearchFamily ( ) const

Definition at line 346 of file style.cxx.

References nSearchFamily.

Referenced by IsTrivialSearch().

◆ GetSearchMask()

SfxStyleSearchBits SfxStyleSheetIterator::GetSearchMask ( ) const

Definition at line 535 of file style.cxx.

References bSearchUsed, nMask, and Used.

◆ IsTrivialSearch()

bool SfxStyleSheetIterator::IsTrivialSearch ( ) const
inlineprivate

Definition at line 351 of file style.cxx.

References All, AllVisible, GetSearchFamily(), and nMask.

Referenced by Count(), Next(), and operator[]().

◆ Next()

SfxStyleSheetBase * SfxStyleSheetIterator::Next ( void  )
virtual

◆ operator[]()

SfxStyleSheetBase * SfxStyleSheetIterator::operator[] ( sal_Int32  nIdx)
virtual

Definition at line 428 of file style.cxx.

References All, IsTrivialSearch(), mnCurrentPosition, nMask, nSearchFamily, pBasePool, and SfxStyleSheetBasePool::pImpl.

Referenced by First().

◆ SearchUsed()

bool SfxStyleSheetIterator::SearchUsed ( ) const
inline

Definition at line 204 of file style.hxx.

Friends And Related Function Documentation

◆ SfxStyleSheetBasePool

friend class SfxStyleSheetBasePool
friend

Definition at line 220 of file style.hxx.

Member Data Documentation

◆ bSearchUsed

bool SfxStyleSheetIterator::bSearchUsed
private

Definition at line 218 of file style.hxx.

Referenced by GetSearchMask(), and SfxStyleSheetIterator().

◆ mnCurrentPosition

sal_Int32 SfxStyleSheetIterator::mnCurrentPosition
private

Definition at line 217 of file style.hxx.

Referenced by Find(), Next(), and operator[]().

◆ nMask

SfxStyleSearchBits SfxStyleSheetIterator::nMask
protected

◆ nSearchFamily

SfxStyleFamily SfxStyleSheetIterator::nSearchFamily
protected

Definition at line 209 of file style.hxx.

Referenced by Count(), GetSearchFamily(), Next(), operator[](), and SfxStyleSheetIterator().

◆ pBasePool

const SfxStyleSheetBasePool* SfxStyleSheetIterator::pBasePool
protected

Definition at line 208 of file style.hxx.

Referenced by Count(), Find(), Next(), and operator[]().

◆ pCurrentStyle

SfxStyleSheetBase* SfxStyleSheetIterator::pCurrentStyle
private

Definition at line 216 of file style.hxx.

Referenced by Find(), and Next().


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