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

#include <docstyle.hxx>

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

Public Member Functions

 SwDocStyleSheetPool (SwDoc &, bool bOrganizer)
 
virtual SfxStyleSheetBase & Make (const OUString &, SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
 
virtual SfxStyleSheetBase * Find (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All) override
 
virtual void Remove (SfxStyleSheetBase *pStyle) override
 
bool IsOrganizerMode () const
 
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator (SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
 
SwDoc & GetDoc () const
 
SfxStyleSheetPool * GetEEStyleSheetPool () const
 
void dispose ()
 
void InvalidateIterator ()
 
- Public Member Functions inherited from SfxStyleSheetBasePool
 SfxStyleSheetBasePool (SfxItemPool &)
 
 SfxStyleSheetBasePool (const SfxStyleSheetBasePool &)
 
SfxItemPool & GetPool ()
 
const SfxItemPool & GetPool () const
 
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator (SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
 
virtual SfxStyleSheetBase & Make (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
 
virtual void Remove (SfxStyleSheetBase *)
 
void Insert (SfxStyleSheetBase *)
 
void Clear ()
 
SfxStyleSheetBasePool & operator= (const SfxStyleSheetBasePool &)
 
SfxStyleSheetBasePool & operator+= (const SfxStyleSheetBasePool &)
 
SfxStyleSheetBase * First (SfxStyleFamily eFamily, SfxStyleSearchBits eMask=SfxStyleSearchBits::All)
 
SfxStyleSheetBase * Next ()
 
virtual SfxStyleSheetBase * Find (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
 
void Reindex ()
 
void Add (const SfxStyleSheetBase &)
 
- Public Member Functions inherited from SfxBroadcaster
 SfxBroadcaster ()
 
 SfxBroadcaster (const SfxBroadcaster &rBC)
 
virtual ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE
 
void Broadcast (const SfxHint &rHint)
 
bool HasListeners () const
 
size_t GetListenerCount () const
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 

Private Member Functions

virtual rtl::Reference< SfxStyleSheetBase > Create (const OUString &, SfxStyleFamily, SfxStyleSearchBits nMask) override
 
virtual rtl::Reference< SfxStyleSheetBase > Create (const SfxStyleSheetBase &) override
 
virtual ~SwDocStyleSheetPool () override
 
 SwDocStyleSheetPool (const SwDocStyleSheetPool &)=delete
 
virtual SfxStyleSheetBase * Find (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
 

Private Attributes

rtl::Reference< SwDocStyleSheet > mxStyleSheet
 
rtl::Reference< SfxStyleSheetPool > mxEEStyleSheetPool
 
SwDoc & m_rDoc
 
bool m_bOrganizer: 1
 Organizer. More...
 

Additional Inherited Members

- Protected Member Functions inherited from SfxStyleSheetBasePool
SfxStyleSheetIterator * GetCachedIterator ()
 
void ChangeParent (std::u16string_view rOld, const OUString &rNew, SfxStyleFamily eFamily, bool bVirtual=true)
 
virtual rtl::Reference< SfxStyleSheetBase > Create (const OUString &, SfxStyleFamily, SfxStyleSearchBits)
 
virtual rtl::Reference< SfxStyleSheetBase > Create (const SfxStyleSheetBase &)
 
virtual ~SfxStyleSheetBasePool () override
 
void StoreStyleSheet (const rtl::Reference< SfxStyleSheetBase > &)
 
const svl::IndexedStyleSheets & GetIndexedStyleSheets () const
 
SfxStyleSheetBase * GetStyleSheetByPositionInIndex (unsigned pos)
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Attributes inherited from SfxStyleSheetBasePool
SfxItemPool & rPool
 

Detailed Description

Definition at line 208 of file docstyle.hxx.

Constructor & Destructor Documentation

◆ SwDocStyleSheetPool() [1/2]

SwDocStyleSheetPool::SwDocStyleSheetPool ( SwDoc &  rDocument,
bool  bOrganizer 
)

Definition at line 2603 of file docstyle.cxx.

References m_bOrganizer.

◆ ~SwDocStyleSheetPool()

SwDocStyleSheetPool::~SwDocStyleSheetPool ( )
overrideprivatevirtual

Definition at line 2612 of file docstyle.cxx.

◆ SwDocStyleSheetPool() [2/2]

SwDocStyleSheetPool::SwDocStyleSheetPool ( const SwDocStyleSheetPool &  )
privatedelete

Member Function Documentation

◆ Create() [1/2]

rtl::Reference< SfxStyleSheetBase > SwDocStyleSheetPool::Create ( const OUString &  ,
SfxStyleFamily  ,
SfxStyleSearchBits  nMask 
)
overrideprivatevirtual

Reimplemented from SfxStyleSheetBasePool.

Definition at line 2637 of file docstyle.cxx.

◆ Create() [2/2]

rtl::Reference< SfxStyleSheetBase > SwDocStyleSheetPool::Create ( const SfxStyleSheetBase &  )
overrideprivatevirtual

Reimplemented from SfxStyleSheetBasePool.

Definition at line 2631 of file docstyle.cxx.

◆ CreateIterator()

std::unique_ptr< SfxStyleSheetIterator > SwDocStyleSheetPool::CreateIterator ( SfxStyleFamily  eFam,
SfxStyleSearchBits  nMask = SfxStyleSearchBits::All 
)
overridevirtual

Reimplemented from SfxStyleSheetBasePool.

Definition at line 2644 of file docstyle.cxx.

◆ dispose()

void SwDocStyleSheetPool::dispose ( void  )

Definition at line 2649 of file docstyle.cxx.

References mxEEStyleSheetPool, and mxStyleSheet.

◆ Find() [1/2]

virtual SfxStyleSheetBase * SfxStyleSheetBasePool::Find ( const OUString &  ,
SfxStyleFamily  eFam,
SfxStyleSearchBits  n = SfxStyleSearchBits::All 
)
privatevirtual

Reimplemented from SfxStyleSheetBasePool.

◆ Find() [2/2]

SfxStyleSheetBase * SwDocStyleSheetPool::Find ( const OUString &  rName,
SfxStyleFamily  eFam,
SfxStyleSearchBits  n = SfxStyleSearchBits::All 
)
overridevirtual

◆ GetDoc()

SwDoc & SwDocStyleSheetPool::GetDoc ( ) const
inline

Definition at line 235 of file docstyle.hxx.

References m_rDoc.

◆ GetEEStyleSheetPool()

SfxStyleSheetPool * SwDocStyleSheetPool::GetEEStyleSheetPool ( ) const
inline

◆ InvalidateIterator()

void SwDocStyleSheetPool::InvalidateIterator ( )

◆ IsOrganizerMode()

bool SwDocStyleSheetPool::IsOrganizerMode ( ) const
inline

Definition at line 231 of file docstyle.hxx.

References m_bOrganizer.

◆ Make()

SfxStyleSheetBase & SwDocStyleSheetPool::Make ( const OUString &  rName,
SfxStyleFamily  eFam,
SfxStyleSearchBits  nMask = SfxStyleSearchBits::All 
)
overridevirtual

Reimplemented from SfxStyleSheetBasePool.

Definition at line 2616 of file docstyle.cxx.

References mxStyleSheet.

◆ Remove()

void SwDocStyleSheetPool::Remove ( SfxStyleSheetBase *  pStyle)
overridevirtual

Member Data Documentation

◆ m_bOrganizer

bool SwDocStyleSheetPool::m_bOrganizer
private

Organizer.

Definition at line 213 of file docstyle.hxx.

Referenced by IsOrganizerMode(), and SwDocStyleSheetPool().

◆ m_rDoc

SwDoc& SwDocStyleSheetPool::m_rDoc
private

Definition at line 212 of file docstyle.hxx.

Referenced by Find(), GetDoc(), and Remove().

◆ mxEEStyleSheetPool

rtl::Reference< SfxStyleSheetPool > SwDocStyleSheetPool::mxEEStyleSheetPool
private

Definition at line 211 of file docstyle.hxx.

Referenced by dispose(), and GetEEStyleSheetPool().

◆ mxStyleSheet

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

Definition at line 210 of file docstyle.hxx.

Referenced by dispose(), Find(), and Make().


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