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 class  Usage {
  UNKNOWN ,
  USED ,
  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 void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
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
 
virtual bool SetFollow (const OUString &)
 
virtual bool HasFollowSupport () const
 
virtual bool HasParentSupport () const
 
virtual bool HasClearParentSupport () const
 
virtual bool IsUsed () 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 SfxItemSetGetItemSet ()
 
virtual std::optional< SfxItemSetGetItemSetForPreview ()
 
virtual bool isScStyleSheet () const
 
- 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
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 
- 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 ~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 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 28 of file stlsheet.hxx.

Member Enumeration Documentation

◆ Usage

enum class ScStyleSheet::Usage
strong
Enumerator
UNKNOWN 
USED 
NOTUSED 

Definition at line 34 of file stlsheet.hxx.

Constructor & Destructor Documentation

◆ ScStyleSheet() [1/2]

ScStyleSheet::ScStyleSheet ( const ScStyleSheet rStyle)

Definition at line 62 of file stlsheet.cxx.

References UNKNOWN.

◆ ~ScStyleSheet()

ScStyleSheet::~ScStyleSheet ( )
overrideprivatevirtual

Definition at line 68 of file stlsheet.cxx.

◆ ScStyleSheet() [2/2]

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

Definition at line 52 of file stlsheet.cxx.

References UNKNOWN.

Member Function Documentation

◆ GetItemSet()

SfxItemSet & ScStyleSheet::GetItemSet ( )
overridevirtual

Reimplemented from SfxStyleSheetBase.

Definition at line 133 of file stlsheet.cxx.

References ATTR_BACKGROUND(), ATTR_BORDER(), ATTR_BORDER_INNER(), ATTR_LRSPACE(), ATTR_PAGE(), ATTR_PAGE_FOOTERSET(), ATTR_PAGE_HEADERSET(), ATTR_PAGE_SCALE(), ATTR_PAGE_SCALETO(), ATTR_PAGE_SCALETOPAGES(), ATTR_PAGE_SIZE(), ATTR_SHADOW(), ATTR_ULSPACE(), ATTR_USERDEF(), ATTR_VALUE_FORMAT(), ATTR_WRITINGDIR(), SfxStyleSheetBase::bMySet, o3tl::convert(), SfxItemSet::Count(), EE_CHAR_END(), EE_PARA_START(), ScGlobal::eLnge, SfxItemPool::GetDefaultItem(), SvxPaperInfo::GetDefaultPaperSize(), ScStyleSheetPool::GetDocument(), SfxStyleSheetBase::GetFamily(), ScDocument::GetFormatTable(), SfxStyleSheetBase::GetPool(), SfxStyleSheetBasePool::GetPool(), SfxItemPool::GetSecondaryPool(), SvNumberFormatter::GetStandardFormat(), HFDIST_CM, ScGlobal::IsSystemRTL(), o3tl::mm100, SfxStyleSheetBase::nHelpId, SfxStyleSheetBase::pSet, SfxItemSet::Put(), SDRATTR_3D_FIRST(), SDRATTR_3D_LAST(), SDRATTR_EDGE_FIRST(), SDRATTR_MEASURE_LAST(), SDRATTR_SHADOW_FIRST(), SDRATTR_SHADOW_LAST(), SDRATTR_TEXT_MINFRAMEHEIGHT(), SDRATTR_TEXT_WORDWRAP(), SvxBoxInfoItem::SetDist(), SvxPageItem::SetLandscape(), SfxItemPool::SetPoolDefaultItem(), SvxBoxInfoItem::SetTable(), SvxBoxInfoItem::SetValid(), o3tl::twip, TWO_CM, XATTR_FILL_FIRST(), XATTR_FILL_LAST(), XATTR_LINE_FIRST(), and XATTR_LINE_LAST().

Referenced by oox::xls::CellStyle::createCellStyle(), oox::xls::StylesBuffer::createDxfStyle(), oox::xls::StylesBuffer::createExtDxfStyle(), ScStyleSheetPool::CreateStandardStyles(), XclImpStyle::CreateStyleSheet(), XclImpPageSettings::Finalize(), oox::xls::ColorFilter::finalizeImport(), Notify(), XclImpCondFormat::ReadCF(), ResetParent(), ScHTMLImport::ScHTMLImport(), SetParent(), ScPatternAttr::SetStyleSheet(), and ScPatternAttr::UpdateStyleSheet().

◆ GetUsage()

ScStyleSheet::Usage ScStyleSheet::GetUsage ( ) const
inline

Definition at line 53 of file stlsheet.hxx.

Referenced by ScDocument::IsStyleSheetUsed().

◆ HasFollowSupport()

bool ScStyleSheet::HasFollowSupport ( ) const
overridevirtual

Reimplemented from SfxStyleSheetBase.

Definition at line 72 of file stlsheet.cxx.

◆ HasParentSupport()

bool ScStyleSheet::HasParentSupport ( ) const
overridevirtual

Reimplemented from SfxStyleSheetBase.

Definition at line 77 of file stlsheet.cxx.

References SfxStyleSheetBase::GetFamily().

◆ isScStyleSheet()

virtual bool ScStyleSheet::isScStyleSheet ( ) const
inlineoverridevirtual

Fix for expensive dynamic_cast.

Reimplemented from SfxStyleSheetBase.

Definition at line 56 of file stlsheet.hxx.

◆ IsUsed()

bool ScStyleSheet::IsUsed ( ) const
overridevirtual

◆ Notify()

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

◆ ResetParent()

void ScStyleSheet::ResetParent ( )

◆ SetName()

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

Reimplemented from SfxStyleSheetBase.

Definition at line 334 of file stlsheet.cxx.

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

◆ SetParent()

bool ScStyleSheet::SetParent ( const OUString &  rParentName)
overridevirtual

◆ SetUsage()

void ScStyleSheet::SetUsage ( ScStyleSheet::Usage  eUse) const
inline

Definition at line 52 of file stlsheet.hxx.

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

Friends And Related Function Documentation

◆ ScStyleSheetPool

friend class ScStyleSheetPool
friend

Definition at line 30 of file stlsheet.hxx.

Member Data Documentation

◆ eUsage

ScStyleSheet::Usage ScStyleSheet::eUsage
mutableprivate

Definition at line 67 of file stlsheet.hxx.

Referenced by IsUsed().


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