LibreOffice Module sw (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
SwStyleSheetIterator Class Referencefinal

#include <docstyle.hxx>

Inheritance diagram for SwStyleSheetIterator:
[legend]
Collaboration diagram for SwStyleSheetIterator:
[legend]

Classes

class  SwPoolFormatList
 

Public Member Functions

 SwStyleSheetIterator (SwDocStyleSheetPool &rBase, SfxStyleFamily eFam, SfxStyleSearchBits n)
 
virtual ~SwStyleSheetIterator () override
 
virtual sal_Int32 Count () override
 
virtual SfxStyleSheetBaseoperator[] (sal_Int32 nIdx) override
 
virtual SfxStyleSheetBaseFirst () override
 
virtual SfxStyleSheetBaseNext () override
 
virtual SfxStyleSheetBaseFind (const OUString &rStr) override
 
virtual void Notify (SfxBroadcaster &, const SfxHint &) override
 
void InvalidateIterator ()
 
- Public Member Functions inherited from SfxStyleSheetIterator
 SfxStyleSheetIterator (const SfxStyleSheetBasePool *pBase, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
 
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
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Member Functions

bool IsUsedInComments (const OUString &rName) const
 
void AppendStyleList (const std::vector< OUString > &rLst, bool bUsed, bool bTestHidden, bool bOnlyHidden, SwGetPoolIdFromName nSection, SfxStyleFamily eFamily)
 

Private Attributes

rtl::Reference< SwDocStyleSheetmxIterSheet
 
rtl::Reference< SwDocStyleSheetmxStyleSheet
 
SwPoolFormatList m_aLst
 
sal_uInt32 m_nLastPos
 
bool m_bFirstCalled
 

Additional Inherited Members

- Protected Attributes inherited from SfxStyleSheetIterator
const SfxStyleSheetBasePoolpBasePool
 
SfxStyleFamily nSearchFamily
 
SfxStyleSearchBits nMask
 

Detailed Description

Definition at line 158 of file docstyle.hxx.

Constructor & Destructor Documentation

◆ SwStyleSheetIterator()

SwStyleSheetIterator::SwStyleSheetIterator ( SwDocStyleSheetPool rBase,
SfxStyleFamily  eFam,
SfxStyleSearchBits  n 
)

Definition at line 2795 of file docstyle.cxx.

References m_bFirstCalled, m_nLastPos, n, and SfxListener::StartListening().

◆ ~SwStyleSheetIterator()

SwStyleSheetIterator::~SwStyleSheetIterator ( )
overridevirtual

Definition at line 2806 of file docstyle.cxx.

References SfxListener::EndListening(), and mxIterSheet.

Member Function Documentation

◆ AppendStyleList()

void SwStyleSheetIterator::AppendStyleList ( const std::vector< OUString > &  rLst,
bool  bUsed,
bool  bTestHidden,
bool  bOnlyHidden,
SwGetPoolIdFromName  nSection,
SfxStyleFamily  eFamily 
)
private

◆ Count()

sal_Int32 SwStyleSheetIterator::Count ( )
overridevirtual

Reimplemented from SfxStyleSheetIterator.

Definition at line 2811 of file docstyle.cxx.

References First(), m_aLst, m_bFirstCalled, and SwStyleSheetIterator::SwPoolFormatList::size().

◆ Find()

SfxStyleSheetBase * SwStyleSheetIterator::Find ( const OUString &  rStr)
overridevirtual

◆ First()

SfxStyleSheetBase * SwStyleSheetIterator::First ( )
overridevirtual

Reimplemented from SfxStyleSheetIterator.

Definition at line 2832 of file docstyle.cxx.

References SwStyleSheetIterator::SwPoolFormatList::Append(), AppendStyleList(), ChrFmt, SwStyleSheetIterator::SwPoolFormatList::clear(), COLL_DOC_BITS, COLL_EXTRA_BITS, COLL_GET_RANGE_BITS, COLL_HTML_BITS, COLL_LISTS_BITS, COLL_REGISTER_BITS, COLL_TEXT_BITS, SwStyleSheetIterator::SwPoolFormatList::empty(), SwStyleNameMapper::FillProgName(), FrmFmt, IDocumentSettingAccess::get(), SwTableAutoFormat::GetBoxFormat(), SwDoc::GetCellStyles(), SwDoc::GetCharFormats(), SwStyleNameMapper::GetChrFormatUINameArray(), SwDoc::GetDfltCharFormat(), SwStyleNameMapper::GetDocUINameArray(), SwStyleNameMapper::GetExtraUINameArray(), SwDoc::GetFrameFormats(), SwStyleNameMapper::GetFrameFormatUINameArray(), SwStyleNameMapper::GetHTMLChrFormatUINameArray(), SwStyleNameMapper::GetHTMLUINameArray(), SwDoc::getIDocumentSettingAccess(), SwDoc::getIDocumentStylePoolAccess(), SwStyleNameMapper::GetListsUINameArray(), SwFormat::GetName(), SwNumRule::GetName(), SwPageDesc::GetName(), SwTableAutoFormat::GetName(), SwDoc::GetNumRuleTable(), SwStyleNameMapper::GetNumRuleUINameArray(), SwDoc::GetPageDesc(), SwDoc::GetPageDescCnt(), SwStyleNameMapper::GetPageDescUINameArray(), SwFormat::GetPoolFormatId(), SwNumRule::GetPoolFormatId(), SwPageDesc::GetPoolFormatId(), SwStyleNameMapper::GetRegisterUINameArray(), SwDoc::GetTableStyles(), SwTableAutoFormat::GetTableTemplateCellSubName(), SwTableAutoFormat::GetTableTemplateMap(), SwDoc::GetTextFormatColls(), SwStyleNameMapper::GetTextUINameArray(), SwStyleNameMapper::GetUIName(), SwDoc::HasTableStyles(), HTML_MODE, i, SwFormat::IsAuto(), SwNumRule::IsAutoRule(), SwFormat::IsDefault(), SwFormat::IsHidden(), SwNumRule::IsHidden(), SwPageDesc::IsHidden(), SwTableAutoFormat::IsHidden(), IDocumentStylePoolAccess::IsPoolTextCollUsed(), IsPoolUserFormat(), SwDoc::IsUsed(), IsUsedInComments(), SwTableAutoFormat::IsUserDefined(), m_aLst, m_bFirstCalled, m_nLastPos, mxIterSheet, nCount, Next(), nId, SfxStyleSheetIterator::nMask, SfxStyleSheetIterator::nSearchFamily, NumRule, PageDesc, SfxStyleSheetIterator::pBasePool, RES_CONDTXTFMTCOLL(), RES_POOLCHR_BEGIN, RES_POOLCHR_ENDNOTE, RES_POOLCHR_FOOTNOTE, RES_POOLCHR_HTML_BEGIN, RES_POOLCHR_HTML_END, RES_POOLCHR_INET_NORMAL, RES_POOLCHR_INET_VISIT, RES_POOLCOLL_ENDNOTE, RES_POOLCOLL_FOOTNOTE, RES_POOLCOLL_HEADLINE1, RES_POOLCOLL_HEADLINE2, RES_POOLCOLL_HEADLINE3, RES_POOLCOLL_HEADLINE4, RES_POOLCOLL_HEADLINE5, RES_POOLCOLL_HEADLINE6, RES_POOLCOLL_HEADLINE_BASE, RES_POOLCOLL_SEND_ADDRESS, RES_POOLCOLL_STANDARD, RES_POOLCOLL_TABLE, RES_POOLCOLL_TABLE_HDLN, RES_POOLCOLL_TEXT, RES_POOLCOLL_TEXT_BEGIN, SAL_MAX_UINT32, SfxStyleSheetIterator::SearchUsed(), SwCharFormats::size(), SwVectorModifyBase< Value >::size(), SwTableAutoFormatTable::size(), SwCellStyleTable::size(), SwResId(), TabStyle, TxtColl, USER_FMT, and SwFormat::Which().

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

◆ InvalidateIterator()

void SwStyleSheetIterator::InvalidateIterator ( )

◆ IsUsedInComments()

bool SwStyleSheetIterator::IsUsedInComments ( const OUString &  rName) const
private

◆ Next()

SfxStyleSheetBase * SwStyleSheetIterator::Next ( void  )
overridevirtual

◆ Notify()

void SwStyleSheetIterator::Notify ( SfxBroadcaster ,
const SfxHint rHint 
)
overridevirtual

◆ operator[]()

SfxStyleSheetBase * SwStyleSheetIterator::operator[] ( sal_Int32  nIdx)
overridevirtual

Reimplemented from SfxStyleSheetIterator.

Definition at line 2819 of file docstyle.cxx.

References SwDocStyleSheet::FillOnlyName, First(), m_aLst, m_bFirstCalled, and mxStyleSheet.

Member Data Documentation

◆ m_aLst

SwPoolFormatList SwStyleSheetIterator::m_aLst
private

◆ m_bFirstCalled

bool SwStyleSheetIterator::m_bFirstCalled
private

◆ m_nLastPos

sal_uInt32 SwStyleSheetIterator::m_nLastPos
private

Definition at line 181 of file docstyle.hxx.

Referenced by Find(), First(), InvalidateIterator(), Next(), and SwStyleSheetIterator().

◆ mxIterSheet

rtl::Reference< SwDocStyleSheet > SwStyleSheetIterator::mxIterSheet
private

Definition at line 178 of file docstyle.hxx.

Referenced by First(), Next(), and ~SwStyleSheetIterator().

◆ mxStyleSheet

rtl::Reference< SwDocStyleSheet > SwStyleSheetIterator::mxStyleSheet
private

Definition at line 179 of file docstyle.hxx.

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


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