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

#include <stlpool.hxx>

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

Public Member Functions

 ScStyleSheetPool (const SfxItemPool &rPool, ScDocument *pDocument)
 
void SetDocument (ScDocument *pDocument)
 
ScDocumentGetDocument () const
 
virtual void Remove (SfxStyleSheetBase *pStyle) override
 
void SetActualStyleSheet (SfxStyleSheetBase *pActStyleSheet)
 
SfxStyleSheetBaseGetActualStyleSheet ()
 
void CreateStandardStyles ()
 
void CopyStdStylesFrom (ScStyleSheetPool *pSrcPool)
 
void CopyStyleFrom (ScStyleSheetPool *pSrcPool, const OUString &rName, SfxStyleFamily eFamily)
 
bool HasStandardStyles () const
 
ScStyleSheetFindCaseIns (const OUString &rName, SfxStyleFamily eFam)
 
virtual SfxStyleSheetBaseMake (const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
 
void setAllParaStandard ()
 
- Public Member Functions inherited from SfxStyleSheetPool
 SfxStyleSheetPool (SfxItemPool const &)
 
- Public Member Functions inherited from SfxStyleSheetBasePool
 SfxStyleSheetBasePool (SfxItemPool &)
 
 SfxStyleSheetBasePool (const SfxStyleSheetBasePool &)
 
SfxItemPoolGetPool ()
 
const SfxItemPoolGetPool () const
 
virtual std::unique_ptr< SfxStyleSheetIteratorCreateIterator (SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
 
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)
 
virtual bool SetParent (SfxStyleFamily eFam, const OUString &rStyle, const OUString &rParent)
 
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
 
size_t GetSizeOfVector () const
 
SfxListenerGetListener (size_t nNo) const
 

Private Member Functions

virtual ~ScStyleSheetPool () override
 
virtual SfxStyleSheetBaseCreate (const OUString &rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override
 
virtual SfxStyleSheetBaseCreate (const SfxStyleSheetBase &rStyle) override
 

Private Attributes

SfxStyleSheetBasepActualStyleSheet
 
ScDocumentpDoc
 
bool bHasStandardStyles
 

Additional Inherited Members

- Protected Member Functions inherited from SfxStyleSheetBasePool
SfxStyleSheetIteratorGetCachedIterator ()
 
void ChangeParent (const OUString &rOld, const OUString &rNew, SfxStyleFamily eFamily, bool bVirtual=true)
 
virtual ~SfxStyleSheetBasePool () override
 
void StoreStyleSheet (const rtl::Reference< SfxStyleSheetBase > &)
 
const svl::IndexedStyleSheetsGetIndexedStyleSheets () const
 
SfxStyleSheetBaseGetStyleSheetByPositionInIndex (unsigned pos)
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Attributes inherited from SfxStyleSheetBasePool
SfxItemPoolrPool
 

Detailed Description

Definition at line 29 of file stlpool.hxx.

Constructor & Destructor Documentation

ScStyleSheetPool::ScStyleSheetPool ( const SfxItemPool rPool,
ScDocument pDocument 
)

Definition at line 54 of file stlpool.cxx.

ScStyleSheetPool::~ScStyleSheetPool ( )
overrideprivatevirtual

Definition at line 63 of file stlpool.cxx.

Member Function Documentation

void ScStyleSheetPool::CopyStdStylesFrom ( ScStyleSheetPool pSrcPool)

Definition at line 189 of file stlpool.cxx.

References CopyStyleFrom(), and SCSTR.

void ScStyleSheetPool::CopyStyleFrom ( ScStyleSheetPool pSrcPool,
const OUString &  rName,
SfxStyleFamily  eFamily 
)
SfxStyleSheetBase * ScStyleSheetPool::Create ( const OUString &  rName,
SfxStyleFamily  eFamily,
SfxStyleSearchBits  nMask 
)
overrideprivatevirtual

Reimplemented from SfxStyleSheetPool.

Definition at line 102 of file stlpool.cxx.

References ScResId(), and ScStyleSheet::SetParent().

SfxStyleSheetBase * ScStyleSheetPool::Create ( const SfxStyleSheetBase rStyle)
overrideprivatevirtual

Reimplemented from SfxStyleSheetBasePool.

Definition at line 113 of file stlpool.cxx.

References SfxStyleSheetBase::isScStyleSheet().

void ScStyleSheetPool::CreateStandardStyles ( )
ScStyleSheet * ScStyleSheetPool::FindCaseIns ( const OUString &  rName,
SfxStyleFamily  eFam 
)
SfxStyleSheetBase* ScStyleSheetPool::GetActualStyleSheet ( )
inline

Definition at line 43 of file stlpool.hxx.

Referenced by ScGridWindow::MouseButtonUp().

ScDocument* ScStyleSheetPool::GetDocument ( ) const
inline

Definition at line 36 of file stlpool.hxx.

Referenced by ScStyleSheet::GetItemSet().

bool ScStyleSheetPool::HasStandardStyles ( ) const
inline

Definition at line 52 of file stlpool.hxx.

Referenced by ScOrcusStyles::ScOrcusStyles().

SfxStyleSheetBase & ScStyleSheetPool::Make ( const OUString &  rName,
SfxStyleFamily  eFam,
SfxStyleSearchBits  nMask = SfxStyleSearchBits::All 
)
overridevirtual
void ScStyleSheetPool::Remove ( SfxStyleSheetBase pStyle)
overridevirtual
void ScStyleSheetPool::SetActualStyleSheet ( SfxStyleSheetBase pActStyleSheet)
inline

Definition at line 40 of file stlpool.hxx.

void ScStyleSheetPool::setAllParaStandard ( )
void ScStyleSheetPool::SetDocument ( ScDocument pDocument)

Definition at line 67 of file stlpool.cxx.

References pDoc.

Member Data Documentation

bool ScStyleSheetPool::bHasStandardStyles
private

Definition at line 73 of file stlpool.hxx.

Referenced by CreateStandardStyles().

SfxStyleSheetBase* ScStyleSheetPool::pActualStyleSheet
private

Definition at line 71 of file stlpool.hxx.

ScDocument* ScStyleSheetPool::pDoc
private

Definition at line 72 of file stlpool.hxx.

Referenced by CopyStyleFrom(), CreateStandardStyles(), and SetDocument().


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