LibreOffice Module svl (master) 1
Public Member Functions | Protected Member Functions | List of all members
SfxStyleSheet Class Reference

#include <style.hxx>

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

Public Member Functions

 SfxStyleSheet (const OUString &, const SfxStyleSheetBasePool &, SfxStyleFamily, SfxStyleSearchBits)
 
 SfxStyleSheet (const SfxStyleSheet &)
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 Notify all listeners. More...
 
virtual bool isUsedByModel () const override
 
virtual bool SetParent (const OUString &) override
 
- Public Member Functions inherited from SfxStyleSheetBase
const OUString & GetName () const
 
virtual bool SetName (const OUString &rNewName, bool bReindexNow=true)
 
virtual const OUString & GetParent () const
 
virtual bool SetParent (const OUString &)
 
virtual const OUString & GetFollow () const
 Change follow. More...
 
virtual bool SetFollow (const OUString &)
 
virtual bool HasFollowSupport () const
 Next style possible? Default: Yes. More...
 
virtual bool HasParentSupport () const
 Base template possible? Default: Yes. More...
 
virtual bool HasClearParentSupport () const
 Setting base template to NULL possible? Default: No. More...
 
virtual bool IsUsed () const
 By default all stylesheets are set to used. More...
 
virtual OUString GetDescription (MapUnit eMetric)
 Return set attributes. More...
 
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)
 Set help file and ID and return it. More...
 
virtual void SetHelpId (const OUString &r, sal_uLong nId)
 
virtual SfxItemSetGetItemSet ()
 Set Itemset The default implementation creates a new set. More...
 
virtual std::optional< SfxItemSetGetItemSetForPreview ()
 Due to writer's usual lack of sanity this is a separate function for preview only; it shall not create the style in case it does not exist. More...
 
virtual bool isScStyleSheet () const
 Fix for expensive dynamic_cast. More...
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 Registers a specific SfxBroadcaster. More...
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 Used to avoid cost of dynamic_cast in SdrViewIter::ImpFindView. 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

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)
 

Additional Inherited Members

- 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 284 of file style.hxx.

Constructor & Destructor Documentation

◆ SfxStyleSheet() [1/2]

SfxStyleSheet::SfxStyleSheet ( const OUString &  rName,
const SfxStyleSheetBasePool r_Pool,
SfxStyleFamily  eFam,
SfxStyleSearchBits  mask 
)

Definition at line 798 of file style.cxx.

◆ SfxStyleSheet() [2/2]

SfxStyleSheet::SfxStyleSheet ( const SfxStyleSheet rStyle)

Definition at line 806 of file style.cxx.

◆ ~SfxStyleSheet()

SfxStyleSheet::~SfxStyleSheet ( )
overrideprotectedvirtual

Definition at line 814 of file style.cxx.

References SfxBroadcaster::Broadcast(), and StyleSheetInDestruction.

Member Function Documentation

◆ isUsedByModel()

bool SfxStyleSheet::isUsedByModel ( ) const
overridevirtual

Definition at line 854 of file style.cxx.

References SfxStyleSheetBase::IsUsed().

◆ Notify()

void SfxStyleSheet::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Notify all listeners.

Reimplemented from SfxListener.

Definition at line 849 of file style.cxx.

References SfxBroadcaster::Forward().

◆ SetParent()

bool SfxStyleSheet::SetParent ( const OUString &  rName)
overridevirtual

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