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 CopyUsedGraphicStylesFrom (SfxStyleSheetBasePool *pSrcPool)
 
void CopyStyleFrom (SfxStyleSheetBasePool *pSrcPool, const OUString &rName, SfxStyleFamily eFamily, bool bNewStyleHierarchy=false)
 
bool HasStandardStyles () const
 
ScStyleSheetFindCaseIns (const OUString &rName, SfxStyleFamily eFam)
 
ScStyleSheetFindAutoStyle (const OUString &rName)
 
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)
 
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 &)
 
- 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 ~ScStyleSheetPool () override
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const SfxStyleSheetBase &rStyle) override
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits mask) override
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits)
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const SfxStyleSheetBase &)
 

Private Attributes

SfxStyleSheetBasepActualStyleSheet
 
ScDocumentpDoc
 
bool bHasStandardStyles
 

Additional Inherited Members

virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits mask) override
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const OUString &, SfxStyleFamily, SfxStyleSearchBits)
 
virtual rtl::Reference< SfxStyleSheetBaseCreate (const SfxStyleSheetBase &)
 
- Protected Member Functions inherited from SfxStyleSheetBasePool
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
 
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 28 of file stlpool.hxx.

Constructor & Destructor Documentation

◆ ScStyleSheetPool()

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

Definition at line 54 of file stlpool.cxx.

◆ ~ScStyleSheetPool()

ScStyleSheetPool::~ScStyleSheetPool ( )
overrideprivatevirtual

Definition at line 63 of file stlpool.cxx.

Member Function Documentation

◆ CopyStdStylesFrom()

void ScStyleSheetPool::CopyStdStylesFrom ( ScStyleSheetPool pSrcPool)

Definition at line 218 of file stlpool.cxx.

References CopyStyleFrom(), and ScResId().

◆ CopyStyleFrom()

void ScStyleSheetPool::CopyStyleFrom ( SfxStyleSheetBasePool pSrcPool,
const OUString &  rName,
SfxStyleFamily  eFamily,
bool  bNewStyleHierarchy = false 
)

◆ CopyUsedGraphicStylesFrom()

void ScStyleSheetPool::CopyUsedGraphicStylesFrom ( SfxStyleSheetBasePool pSrcPool)

◆ Create() [1/5]

virtual rtl::Reference< SfxStyleSheetBase > SfxStyleSheetPool::Create ( const OUString &  ,
SfxStyleFamily  ,
SfxStyleSearchBits  mask 
)
privatevirtual

Reimplemented from SfxStyleSheetPool.

◆ Create() [2/5]

virtual rtl::Reference< SfxStyleSheetBase > SfxStyleSheetPool::Create ( const OUString &  ,
SfxStyleFamily  ,
SfxStyleSearchBits   
)
privatevirtual

Reimplemented from SfxStyleSheetPool.

◆ Create() [3/5]

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

Reimplemented from SfxStyleSheetPool.

Definition at line 99 of file stlpool.cxx.

References ScResId().

◆ Create() [4/5]

virtual rtl::Reference< SfxStyleSheetBase > SfxStyleSheetPool::Create ( const SfxStyleSheetBase )
privatevirtual

Reimplemented from SfxStyleSheetPool.

◆ Create() [5/5]

rtl::Reference< SfxStyleSheetBase > ScStyleSheetPool::Create ( const SfxStyleSheetBase rStyle)
overrideprivatevirtual

Reimplemented from SfxStyleSheetPool.

Definition at line 110 of file stlpool.cxx.

References SfxStyleSheetBase::isScStyleSheet().

◆ CreateStandardStyles()

void ScStyleSheetPool::CreateStandardStyles ( )

◆ FindAutoStyle()

ScStyleSheet * ScStyleSheetPool::FindAutoStyle ( const OUString &  rName)

Definition at line 463 of file stlpool.cxx.

References SfxStyleSheetBasePool::Find(), FindCaseIns(), and ScResId().

Referenced by ScDocShell::DoAutoStyle().

◆ FindCaseIns()

ScStyleSheet * ScStyleSheetPool::FindCaseIns ( const OUString &  rName,
SfxStyleFamily  eFam 
)

◆ GetActualStyleSheet()

SfxStyleSheetBase * ScStyleSheetPool::GetActualStyleSheet ( )
inline

Definition at line 42 of file stlpool.hxx.

Referenced by FuSelection::MouseButtonUp(), and ScGridWindow::MouseButtonUp().

◆ GetDocument()

ScDocument * ScStyleSheetPool::GetDocument ( ) const
inline

Definition at line 35 of file stlpool.hxx.

Referenced by ScStyleSheet::GetItemSet().

◆ HasStandardStyles()

bool ScStyleSheetPool::HasStandardStyles ( ) const
inline

Definition at line 53 of file stlpool.hxx.

Referenced by ScOrcusStyles::ScOrcusStyles().

◆ Make()

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

◆ Remove()

void ScStyleSheetPool::Remove ( SfxStyleSheetBase pStyle)
overridevirtual

◆ SetActualStyleSheet()

void ScStyleSheetPool::SetActualStyleSheet ( SfxStyleSheetBase pActStyleSheet)
inline

Definition at line 39 of file stlpool.hxx.

◆ setAllParaStandard()

void ScStyleSheetPool::setAllParaStandard ( )

◆ SetDocument()

void ScStyleSheetPool::SetDocument ( ScDocument pDocument)

Definition at line 67 of file stlpool.cxx.

References pDoc.

Member Data Documentation

◆ bHasStandardStyles

bool ScStyleSheetPool::bHasStandardStyles
private

Definition at line 76 of file stlpool.hxx.

Referenced by CreateStandardStyles().

◆ pActualStyleSheet

SfxStyleSheetBase* ScStyleSheetPool::pActualStyleSheet
private

Definition at line 74 of file stlpool.hxx.

◆ pDoc

ScDocument* ScStyleSheetPool::pDoc
private

Definition at line 75 of file stlpool.hxx.

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


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