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

#include <stlsheet.hxx>

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

Public Types

enum  Usage {
  Usage::UNKNOWN,
  Usage::USED,
  Usage::NOTUSED
}
 

Public Member Functions

 ScStyleSheet (const ScStyleSheet &rStyle)
 
virtual bool SetParent (const OUString &rParentName) override
 
SC_DLLPUBLIC void ResetParent ()
 
virtual SC_DLLPUBLIC SfxItemSetGetItemSet () override
 
virtual bool IsUsed () const override
 
virtual bool HasFollowSupport () const override
 
virtual bool HasParentSupport () const override
 
virtual bool SetName (const OUString &rNewName, bool bReindexNow=true) override
 
void SetUsage (ScStyleSheet::Usage eUse) const
 
ScStyleSheet::Usage GetUsage () const
 
virtual bool isScStyleSheet () const override
 Fix for expensive dynamic_cast. More...
 
- Public Member Functions inherited from SfxStyleSheet
 SfxStyleSheet (const OUString &, const SfxStyleSheetBasePool &, SfxStyleFamily, SfxStyleSearchBits)
 
 SfxStyleSheet (const SfxStyleSheet &)
 
virtual bool isUsedByModel () const override
 
- Public Member Functions inherited from SfxStyleSheetBase
const OUString & GetName () const
 
virtual const OUString & GetParent () const
 
virtual const OUString & GetFollow () const
 
virtual bool SetFollow (const OUString &)
 
virtual bool HasClearParentSupport () const
 
virtual OUString GetDescription (MapUnit eMetric)
 
virtual OUString GetUsedBy ()
 
SfxStyleSheetBasePoolGetPool ()
 
SfxStyleFamily GetFamily () const
 
SfxStyleSearchBits GetMask () const
 
void SetMask (SfxStyleSearchBits mask)
 
bool IsUserDefined () const
 
virtual bool IsHidden () const
 
virtual void SetHidden (bool bValue)
 
virtual sal_uLong GetHelpId (OUString &rFile)
 
virtual void SetHelpId (const OUString &r, sal_uLong nId)
 
virtual std::unique_ptr< SfxItemSetGetItemSetForPreview ()
 
- 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
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
- 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 ~ScStyleSheet () override
 
 ScStyleSheet (const OUString &rName, const ScStyleSheetPool &rPool, SfxStyleFamily eFamily, SfxStyleSearchBits nMask)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 

Private Attributes

ScStyleSheet::Usage eUsage
 

Friends

class ScStyleSheetPool
 

Additional Inherited Members

- Protected Member Functions inherited from SfxStyleSheet
virtual ~SfxStyleSheet () override
 
- Protected Member Functions inherited from SfxStyleSheetBase
 SfxStyleSheetBase (const OUString &, SfxStyleSheetBasePool *, SfxStyleFamily eFam, SfxStyleSearchBits mask)
 
 SfxStyleSheetBase (const SfxStyleSheetBase &)
 
virtual ~SfxStyleSheetBase () override
 
- Protected Member Functions inherited from SfxBroadcaster
void Forward (SfxBroadcaster &rBC, const SfxHint &rHint)
 
- Protected Member Functions inherited from svl::StyleSheetUser
 ~StyleSheetUser ()
 
- Protected Attributes inherited from SfxStyleSheetBase
SfxStyleSheetBasePoolm_pPool
 
SfxStyleFamily nFamily
 
OUString aName
 
OUString aParent
 
OUString aFollow
 
OUString aHelpFile
 
SfxItemSetpSet
 
SfxStyleSearchBits nMask
 
sal_uLong nHelpId
 
bool bMySet
 
bool bHidden
 

Detailed Description

Definition at line 29 of file stlsheet.hxx.

Member Enumeration Documentation

enum ScStyleSheet::Usage
strong
Enumerator
UNKNOWN 
USED 
NOTUSED 

Definition at line 35 of file stlsheet.hxx.

Constructor & Destructor Documentation

ScStyleSheet::ScStyleSheet ( const ScStyleSheet rStyle)

Definition at line 56 of file stlsheet.cxx.

References UNKNOWN.

ScStyleSheet::~ScStyleSheet ( )
overrideprivatevirtual

Definition at line 62 of file stlsheet.cxx.

ScStyleSheet::ScStyleSheet ( const OUString &  rName,
const ScStyleSheetPool rPool,
SfxStyleFamily  eFamily,
SfxStyleSearchBits  nMask 
)
private

Definition at line 46 of file stlsheet.cxx.

References UNKNOWN.

Member Function Documentation

SfxItemSet & ScStyleSheet::GetItemSet ( )
overridevirtual
ScStyleSheet::Usage ScStyleSheet::GetUsage ( ) const
inline

Definition at line 54 of file stlsheet.hxx.

Referenced by ScDocument::IsStyleSheetUsed().

bool ScStyleSheet::HasFollowSupport ( ) const
overridevirtual

Reimplemented from SfxStyleSheetBase.

Definition at line 66 of file stlsheet.cxx.

bool ScStyleSheet::HasParentSupport ( ) const
overridevirtual

Reimplemented from SfxStyleSheetBase.

Definition at line 71 of file stlsheet.cxx.

References SfxStyleSheetBase::GetFamily().

virtual bool ScStyleSheet::isScStyleSheet ( ) const
inlineoverridevirtual

Fix for expensive dynamic_cast.

Reimplemented from SfxStyleSheetBase.

Definition at line 57 of file stlsheet.hxx.

bool ScStyleSheet::IsUsed ( ) const
overridevirtual
void ScStyleSheet::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

Reimplemented from SfxStyleSheet.

Definition at line 268 of file stlsheet.cxx.

References SfxHint::GetId(), GetItemSet(), and SfxItemSet::SetParent().

void ScStyleSheet::ResetParent ( )
bool ScStyleSheet::SetName ( const OUString &  rNewName,
bool  bReindexNow = true 
)
overridevirtual

Reimplemented from SfxStyleSheetBase.

Definition at line 281 of file stlsheet.cxx.

References ScResId(), SfxStyleSheetBase::SetName(), and STRING_STANDARD.

bool ScStyleSheet::SetParent ( const OUString &  rParentName)
overridevirtual
void ScStyleSheet::SetUsage ( ScStyleSheet::Usage  eUse) const
inline

Definition at line 53 of file stlsheet.hxx.

Referenced by ScAttrArray::IsStyleSheetUsed(), and ScDocument::IsStyleSheetUsed().

Friends And Related Function Documentation

friend class ScStyleSheetPool
friend

Definition at line 31 of file stlsheet.hxx.

Member Data Documentation

ScStyleSheet::Usage ScStyleSheet::eUsage
mutableprivate

Definition at line 68 of file stlsheet.hxx.

Referenced by IsUsed().


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