LibreOffice Module sc (master)
1
|
#include <stlsheet.hxx>
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 SfxItemSet & | GetItemSet () 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... | |
![]() | |
SfxStyleSheet (const OUString &, const SfxStyleSheetBasePool &, SfxStyleFamily, SfxStyleSearchBits) | |
SfxStyleSheet (const SfxStyleSheet &) | |
virtual bool | isUsedByModel () const override |
![]() | |
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 () |
SfxStyleSheetBasePool * | GetPool () |
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< SfxItemSet > | GetItemSetForPreview () |
![]() | |
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 |
SfxBroadcaster * | GetBroadcasterJOE (sal_uInt16 nNo) const |
void | RemoveBroadcaster_Impl (SfxBroadcaster &rBC) |
![]() | |
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 |
SfxListener * | GetListener (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 | |
![]() | |
virtual | ~SfxStyleSheet () override |
![]() | |
SfxStyleSheetBase (const OUString &, SfxStyleSheetBasePool *, SfxStyleFamily eFam, SfxStyleSearchBits mask) | |
SfxStyleSheetBase (const SfxStyleSheetBase &) | |
virtual | ~SfxStyleSheetBase () override |
![]() | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
![]() | |
~StyleSheetUser () | |
![]() | |
SfxStyleSheetBasePool * | m_pPool |
SfxStyleFamily | nFamily |
OUString | aName |
OUString | aParent |
OUString | aFollow |
OUString | aHelpFile |
SfxItemSet * | pSet |
SfxStyleSearchBits | nMask |
sal_uLong | nHelpId |
bool | bMySet |
bool | bHidden |
Definition at line 29 of file stlsheet.hxx.
|
strong |
Enumerator | |
---|---|
UNKNOWN | |
USED | |
NOTUSED |
Definition at line 35 of file stlsheet.hxx.
ScStyleSheet::ScStyleSheet | ( | const ScStyleSheet & | rStyle | ) |
Definition at line 56 of file stlsheet.cxx.
References UNKNOWN.
|
overrideprivatevirtual |
Definition at line 62 of file stlsheet.cxx.
|
private |
Definition at line 46 of file stlsheet.cxx.
References UNKNOWN.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 126 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, SfxItemSet::Count(), ScGlobal::eLnge, SfxItemPool::GetDefaultItem(), SvxPaperInfo::GetDefaultPaperSize(), ScStyleSheetPool::GetDocument(), SfxStyleSheetBase::GetFamily(), ScDocument::GetFormatTable(), SfxStyleSheetBasePool::GetPool(), SfxStyleSheetBase::GetPool(), SvNumberFormatter::GetStandardFormat(), HFDIST_CM, HMM_PER_TWIPS, ScGlobal::IsSystemRTL(), SfxStyleSheetBase::nHelpId, SfxStyleSheetBase::pSet, SfxItemSet::Put(), SvxBoxInfoItem::SetDist(), SvxPageItem::SetLandscape(), SfxItemPool::SetPoolDefaultItem(), SvxBoxInfoItem::SetTable(), SvxBoxInfoItem::SetValid(), SfxPoolItem::SetWhich(), and TWO_CM.
Referenced by oox::xls::CellStyle::createCellStyle(), oox::xls::StylesBuffer::createDxfStyle(), oox::xls::StylesBuffer::createExtDxfStyle(), ScStyleSheetPool::CreateStandardStyles(), XclImpStyle::CreateStyleSheet(), XclImpPageSettings::Finalize(), Notify(), XclImpCondFormat::ReadCF(), ResetParent(), ScHTMLImport::ScHTMLImport(), SetParent(), ScPatternAttr::SetStyleSheet(), and ScPatternAttr::UpdateStyleSheet().
|
inline |
Definition at line 54 of file stlsheet.hxx.
Referenced by ScDocument::IsStyleSheetUsed().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 66 of file stlsheet.cxx.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 71 of file stlsheet.cxx.
References SfxStyleSheetBase::GetFamily().
|
inlineoverridevirtual |
Fix for expensive dynamic_cast.
Reimplemented from SfxStyleSheetBase.
Definition at line 57 of file stlsheet.hxx.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 251 of file stlsheet.cxx.
References eUsage, SfxStyleSheetBase::GetFamily(), ScDocument::IsStyleSheetUsed(), SfxStyleSheetBase::m_pPool, NOTUSED, and USED.
|
overrideprivatevirtual |
Reimplemented from SfxStyleSheet.
Definition at line 268 of file stlsheet.cxx.
References SfxHint::GetId(), GetItemSet(), and SfxItemSet::SetParent().
void ScStyleSheet::ResetParent | ( | ) |
Definition at line 121 of file stlsheet.cxx.
References GetItemSet(), and SfxItemSet::SetParent().
Referenced by oox::xls::StylesBuffer::createDxfStyle(), and oox::xls::StylesBuffer::createExtDxfStyle().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 281 of file stlsheet.cxx.
References ScResId(), SfxStyleSheetBase::SetName(), and STRING_STANDARD.
|
overridevirtual |
Reimplemented from SfxStyleSheet.
Definition at line 88 of file stlsheet.cxx.
References SfxStyleSheetBasePool::CreateIterator(), SfxStyleSheetBasePool::Find(), SfxStyleSheetBase::GetItemSet(), GetItemSet(), SfxStyleSheetBase::GetName(), SfxStyleSheetBase::GetPool(), SfxStyleSheetBase::m_pPool, MAXCOL, MAXROW, MAXTAB, SfxStyleSheetBase::nFamily, ScDocument::RepaintRange(), SfxStyleSheet::SetParent(), and SfxItemSet::SetParent().
Referenced by ScStyleSheetPool::Create().
|
inline |
Definition at line 53 of file stlsheet.hxx.
Referenced by ScAttrArray::IsStyleSheetUsed(), and ScDocument::IsStyleSheetUsed().
|
friend |
Definition at line 31 of file stlsheet.hxx.
|
mutableprivate |
Definition at line 68 of file stlsheet.hxx.
Referenced by IsUsed().