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

#include <style.hxx>

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

Public Member Functions

 SfxStyleSheetBasePool (SfxItemPool &)
 
 SfxStyleSheetBasePool (const SfxStyleSheetBasePool &)
 
SfxItemPoolGetPool ()
 
const SfxItemPoolGetPool () const
 
virtual std::unique_ptr< SfxStyleSheetIteratorCreateIterator (SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
 
virtual SfxStyleSheetBaseMake (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
 
virtual void Remove (SfxStyleSheetBase *)
 
void Insert (SfxStyleSheetBase *)
 
void Clear ()
 
SfxStyleSheetBasePooloperator= (const SfxStyleSheetBasePool &)
 
SfxStyleSheetBasePooloperator+= (const SfxStyleSheetBasePool &)
 
SfxStyleSheetBaseFirst (SfxStyleFamily eFamily, SfxStyleSearchBits eMask=SfxStyleSearchBits::All)
 
SfxStyleSheetBaseNext ()
 
virtual SfxStyleSheetBaseFind (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
 
void Reindex ()
 
void Add (const SfxStyleSheetBase &)
 Add a style sheet. More...
 
- 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
 Get the number of listeners which are registered at this broadcaster. More...
 
void ForAllListeners (std::function< bool(SfxListener *)> f) const
 Iterate over all the listeners and call the passed function. More...
 

Protected Member Functions

SfxStyleSheetIteratorGetCachedIterator ()
 
void ChangeParent (std::u16string_view rOld, const OUString &rNew, SfxStyleFamily eFamily, bool bVirtual=true)
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits)
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const SfxStyleSheetBase &)
 
virtual ~SfxStyleSheetBasePool () override
 
void StoreStyleSheet (const rtl::Reference< SfxStyleSheetBase > &)
 
const svl::IndexedStyleSheetsGetIndexedStyleSheets () const
 Obtain the indexed style sheets. More...
 
SfxStyleSheetBaseGetStyleSheetByPositionInIndex (unsigned pos)
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 

Protected Attributes

SfxItemPoolrPool
 

Private Member Functions

SfxStyleSheetIteratorGetIterator_Impl (SfxStyleFamily eFamily, SfxStyleSearchBits eMask)
 

Private Attributes

std::unique_ptr< SfxStyleSheetBasePool_ImplpImpl
 

Friends

class SfxStyleSheetIterator
 
class SfxStyleSheetBase
 

Detailed Description

Definition at line 225 of file style.hxx.

Constructor & Destructor Documentation

◆ ~SfxStyleSheetBasePool()

SfxStyleSheetBasePool::~SfxStyleSheetBasePool ( )
overrideprotectedvirtual

Definition at line 578 of file style.cxx.

References aDbgStyleSheetReferences, SfxBroadcaster::Broadcast(), Clear(), and Dying.

◆ SfxStyleSheetBasePool() [1/2]

SfxStyleSheetBasePool::SfxStyleSheetBasePool ( SfxItemPool r)

Definition at line 556 of file style.cxx.

References aDbgStyleSheetReferences.

◆ SfxStyleSheetBasePool() [2/2]

SfxStyleSheetBasePool::SfxStyleSheetBasePool ( const SfxStyleSheetBasePool r)

Definition at line 565 of file style.cxx.

References aDbgStyleSheetReferences.

Member Function Documentation

◆ Add()

void SfxStyleSheetBasePool::Add ( const SfxStyleSheetBase rSheet)

Add a style sheet.

Helper function: If a template with this name exists it is created anew.

Not an actual public function. Do not call it from non-subclasses.

All templates that have this template as a parent are reconnected.

Definition at line 633 of file style.cxx.

References All, SfxBroadcaster::Broadcast(), Create(), SfxStyleSheetIterator::Find(), SfxStyleSheetBase::GetFamily(), SfxStyleSheetBase::GetName(), pImpl, Remove(), and StyleSheetChanged.

◆ ChangeParent()

void SfxStyleSheetBasePool::ChangeParent ( std::u16string_view  rOld,
const OUString &  rNew,
SfxStyleFamily  eFamily,
bool  bVirtual = true 
)
protected

Definition at line 781 of file style.cxx.

References First(), Next(), and p.

Referenced by Remove(), and SfxStyleSheetBase::SetName().

◆ Clear()

void SfxStyleSheetBasePool::Clear ( )

Definition at line 775 of file style.cxx.

References cleanup(), and pImpl.

Referenced by operator=(), and ~SfxStyleSheetBasePool().

◆ Create() [1/2]

rtl::Reference< SfxStyleSheetBase > SfxStyleSheetBasePool::Create ( const OUString &  rName,
SfxStyleFamily  eFam,
SfxStyleSearchBits  mask 
)
protectedvirtual

Reimplemented in SfxStyleSheetPool, and SfxStyleSheetPool.

Definition at line 597 of file style.cxx.

References SfxStyleSheetBase.

Referenced by Add(), and Make().

◆ Create() [2/2]

rtl::Reference< SfxStyleSheetBase > SfxStyleSheetBasePool::Create ( const SfxStyleSheetBase r)
protectedvirtual

Reimplemented in SfxStyleSheetPool.

Definition at line 607 of file style.cxx.

References SfxStyleSheetBase.

◆ CreateIterator()

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

Definition at line 588 of file style.cxx.

Referenced by GetIterator_Impl().

◆ Find()

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

◆ First()

SfxStyleSheetBase * SfxStyleSheetBasePool::First ( SfxStyleFamily  eFamily,
SfxStyleSearchBits  eMask = SfxStyleSearchBits::All 
)

Definition at line 688 of file style.cxx.

References SfxStyleSheetIterator::First(), and GetIterator_Impl().

Referenced by ChangeParent().

◆ GetCachedIterator()

SfxStyleSheetIterator * SfxStyleSheetBasePool::GetCachedIterator ( )
protected

Definition at line 544 of file style.cxx.

References pImpl.

◆ GetIndexedStyleSheets()

const svl::IndexedStyleSheets & SfxStyleSheetBasePool::GetIndexedStyleSheets ( ) const
protected

Obtain the indexed style sheets.

Definition at line 894 of file style.cxx.

References pImpl.

◆ GetIterator_Impl()

SfxStyleSheetIterator & SfxStyleSheetBasePool::GetIterator_Impl ( SfxStyleFamily  eFamily,
SfxStyleSearchBits  eMask 
)
private

Definition at line 549 of file style.cxx.

References CreateIterator(), and pImpl.

Referenced by First().

◆ GetPool() [1/2]

SfxItemPool & SfxStyleSheetBasePool::GetPool ( )
inline

Definition at line 256 of file style.hxx.

Referenced by SfxStyleSheetBase::GetDescription(), and SfxStyleSheetBase::GetItemSet().

◆ GetPool() [2/2]

const SfxItemPool & SfxStyleSheetBasePool::GetPool ( ) const
inline

Definition at line 257 of file style.hxx.

◆ GetStyleSheetByPositionInIndex()

SfxStyleSheetBase * SfxStyleSheetBasePool::GetStyleSheetByPositionInIndex ( unsigned  pos)
protected

Definition at line 900 of file style.cxx.

References pImpl, and pos.

◆ Insert()

void SfxStyleSheetBasePool::Insert ( SfxStyleSheetBase p)

◆ Make()

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

◆ Next()

SfxStyleSheetBase * SfxStyleSheetBasePool::Next ( void  )

Definition at line 693 of file style.cxx.

References pImpl.

Referenced by ChangeParent().

◆ operator+=()

SfxStyleSheetBasePool & SfxStyleSheetBasePool::operator+= ( const SfxStyleSheetBasePool r)

Definition at line 670 of file style.cxx.

References pImpl.

◆ operator=()

SfxStyleSheetBasePool & SfxStyleSheetBasePool::operator= ( const SfxStyleSheetBasePool r)

Definition at line 645 of file style.cxx.

References Clear().

◆ Reindex()

void SfxStyleSheetBasePool::Reindex ( )

Definition at line 888 of file style.cxx.

References pImpl.

Referenced by SfxStyleSheetBase::SetName().

◆ Remove()

void SfxStyleSheetBasePool::Remove ( SfxStyleSheetBase p)
virtual

Definition at line 699 of file style.cxx.

References SfxBroadcaster::Broadcast(), ChangeParent(), p, pImpl, and StyleSheetErased.

Referenced by Add().

◆ StoreStyleSheet()

void SfxStyleSheetBasePool::StoreStyleSheet ( const rtl::Reference< SfxStyleSheetBase > &  xStyle)
protected

Definition at line 882 of file style.cxx.

References pImpl.

Referenced by Insert(), and Make().

Friends And Related Function Documentation

◆ SfxStyleSheetBase

friend class SfxStyleSheetBase
friend

Definition at line 228 of file style.hxx.

Referenced by Create().

◆ SfxStyleSheetIterator

friend class SfxStyleSheetIterator
friend

Definition at line 227 of file style.hxx.

Member Data Documentation

◆ pImpl

std::unique_ptr<SfxStyleSheetBasePool_Impl> SfxStyleSheetBasePool::pImpl
private

◆ rPool

SfxItemPool& SfxStyleSheetBasePool::rPool
protected

Definition at line 236 of file style.hxx.


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