LibreOffice Module sc (master) 1
|
#include <stlsheet.hxx>
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 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... | |
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 () |
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 SfxItemSet & | GetItemSet () |
virtual std::optional< SfxItemSet > | GetItemSetForPreview () |
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 |
SfxBroadcaster * | GetBroadcasterJOE (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 | |
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 28 of file stlsheet.hxx.
|
strong |
Enumerator | |
---|---|
UNKNOWN | |
USED | |
NOTUSED |
Definition at line 34 of file stlsheet.hxx.
ScStyleSheet::ScStyleSheet | ( | const ScStyleSheet & | rStyle | ) |
Definition at line 62 of file stlsheet.cxx.
References UNKNOWN.
|
overrideprivatevirtual |
Definition at line 68 of file stlsheet.cxx.
|
private |
Definition at line 52 of file stlsheet.cxx.
References UNKNOWN.
|
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().
|
inline |
Definition at line 53 of file stlsheet.hxx.
Referenced by ScDocument::IsStyleSheetUsed().
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 72 of file stlsheet.cxx.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 77 of file stlsheet.cxx.
References SfxStyleSheetBase::GetFamily().
|
inlineoverridevirtual |
Fix for expensive dynamic_cast.
Reimplemented from SfxStyleSheetBase.
Definition at line 56 of file stlsheet.hxx.
|
overridevirtual |
Reimplemented from SfxStyleSheetBase.
Definition at line 273 of file stlsheet.cxx.
References eUsage, SfxBroadcaster::ForAllListeners(), SfxStyleSheetBase::GetFamily(), SfxStyleSheetBase::GetName(), ScDocument::IsPageStyleInUse(), ScDocument::IsStyleSheetUsed(), SfxStyleSheetBase::m_pPool, NOTUSED, and USED.
|
overrideprivatevirtual |
Reimplemented from SfxStyleSheet.
Definition at line 319 of file stlsheet.cxx.
References SfxStyleSheetBase::GetFamily(), SfxHint::GetId(), GetItemSet(), SfxStyleSheet::Notify(), and SfxItemSet::SetParent().
void ScStyleSheet::ResetParent | ( | ) |
Definition at line 128 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 334 of file stlsheet.cxx.
References ScResId(), SfxStyleSheetBase::SetName(), and STRING_STANDARD.
|
overridevirtual |
Reimplemented from SfxStyleSheet.
Definition at line 95 of file stlsheet.cxx.
References SfxStyleSheetBasePool::CreateIterator(), SfxStyleSheetBasePool::Find(), SfxStyleSheetBase::GetItemSet(), GetItemSet(), SfxStyleSheetBase::GetName(), SfxStyleSheetBase::GetPool(), SfxStyleSheetBase::m_pPool, ScDocument::MaxCol(), ScDocument::MaxRow(), MAXTAB, SfxStyleSheetBase::nFamily, ScDocument::RepaintRange(), SfxStyleSheet::SetParent(), and SfxItemSet::SetParent().
|
inline |
Definition at line 52 of file stlsheet.hxx.
Referenced by ScAttrArray::IsStyleSheetUsed(), and ScDocument::IsStyleSheetUsed().
|
friend |
Definition at line 30 of file stlsheet.hxx.
|
mutableprivate |
Definition at line 67 of file stlsheet.hxx.
Referenced by IsUsed().