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:
Collaboration diagram for ScStyleSheet:

Public Types

enum  Usage {

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::optional< 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


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
SfxStyleFamily nFamily
OUString aName
OUString aParent
OUString aFollow
OUString aHelpFile
SfxStyleSearchBits nMask
sal_uLong nHelpId
bool bMySet
bool bHidden

Detailed Description

Definition at line 28 of file stlsheet.hxx.

Member Enumeration Documentation

enum ScStyleSheet::Usage

Definition at line 34 of file stlsheet.hxx.

Constructor & Destructor Documentation

ScStyleSheet::ScStyleSheet ( const ScStyleSheet rStyle)

Definition at line 58 of file stlsheet.cxx.

References UNKNOWN.

ScStyleSheet::~ScStyleSheet ( )

Definition at line 64 of file stlsheet.cxx.

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

Definition at line 48 of file stlsheet.cxx.

References UNKNOWN.

Member Function Documentation

SfxItemSet & ScStyleSheet::GetItemSet ( )

Reimplemented from SfxStyleSheetBase.

Definition at line 128 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(), ScGlobal::eLnge, SfxItemPool::GetDefaultItem(), SvxPaperInfo::GetDefaultPaperSize(), ScStyleSheetPool::GetDocument(), SfxStyleSheetBase::GetFamily(), ScDocument::GetFormatTable(), SfxStyleSheetBasePool::GetPool(), SfxStyleSheetBase::GetPool(), SvNumberFormatter::GetStandardFormat(), HFDIST_CM, ScGlobal::IsSystemRTL(), o3tl::mm100, SfxStyleSheetBase::nHelpId, SfxStyleSheetBase::pSet, SfxItemSet::Put(), SvxBoxInfoItem::SetDist(), SvxPageItem::SetLandscape(), SfxItemPool::SetPoolDefaultItem(), SvxBoxInfoItem::SetTable(), SvxBoxInfoItem::SetValid(), SfxPoolItem::SetWhich(), o3tl::twip, and TWO_CM.

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().

ScStyleSheet::Usage ScStyleSheet::GetUsage ( ) const

Definition at line 53 of file stlsheet.hxx.

Referenced by ScDocument::IsStyleSheetUsed().

bool ScStyleSheet::HasFollowSupport ( ) const

Reimplemented from SfxStyleSheetBase.

Definition at line 68 of file stlsheet.cxx.

bool ScStyleSheet::HasParentSupport ( ) const

Reimplemented from SfxStyleSheetBase.

Definition at line 73 of file stlsheet.cxx.

References SfxStyleSheetBase::GetFamily().

virtual bool ScStyleSheet::isScStyleSheet ( ) const

Fix for expensive dynamic_cast.

Reimplemented from SfxStyleSheetBase.

Definition at line 56 of file stlsheet.hxx.

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

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 

Reimplemented from SfxStyleSheetBase.

Definition at line 281 of file stlsheet.cxx.

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

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

Definition at line 52 of file stlsheet.hxx.

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

Friends And Related Function Documentation

friend class ScStyleSheetPool

Definition at line 30 of file stlsheet.hxx.

Member Data Documentation

ScStyleSheet::Usage ScStyleSheet::eUsage

Definition at line 67 of file stlsheet.hxx.

Referenced by IsUsed().

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