LibreOffice Module svl (master) 1
|
#include <style.hxx>
Public Member Functions | |
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 () |
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) |
Set help file and ID and return it. More... | |
virtual void | SetHelpId (const OUString &r, sal_uLong nId) |
virtual SfxItemSet & | GetItemSet () |
Set Itemset The default implementation creates a new set. More... | |
virtual std::optional< SfxItemSet > | GetItemSetForPreview () |
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... | |
Protected Member Functions | |
SfxStyleSheetBase (const OUString &, SfxStyleSheetBasePool *, SfxStyleFamily eFam, SfxStyleSearchBits mask) | |
SfxStyleSheetBase (const SfxStyleSheetBase &) | |
virtual | ~SfxStyleSheetBase () override |
Protected Attributes | |
SfxStyleSheetBasePool * | m_pPool |
SfxStyleFamily | nFamily |
OUString | aName |
OUString | aParent |
OUString | aFollow |
OUString | aHelpFile |
SfxItemSet * | pSet |
SfxStyleSearchBits | nMask |
sal_uLong | nHelpId |
bool | bMySet |
bool | bHidden |
Friends | |
class | SfxStyleSheetBasePool |
|
protected |
Definition at line 104 of file style.cxx.
References aDbgStyleSheetReferences, aName, and p.
|
protected |
|
overrideprotectedvirtual |
Definition at line 142 of file style.cxx.
References aDbgStyleSheetReferences, bMySet, and pSet.
|
virtual |
Return set attributes.
Definition at line 323 of file style.cxx.
References SfxItemIter::GetCurItem(), GetItemSet(), SfxStyleSheetBasePool::GetPool(), SfxItemPool::GetPresentation(), IsInvalidItem(), m_pPool, and SfxItemIter::NextItem().
|
inline |
Definition at line 163 of file style.hxx.
Referenced by SfxStyleSheetBasePool::Add(), and svl::IndexedStyleSheets::Register().
|
virtual |
|
virtual |
|
virtual |
Set Itemset The default implementation creates a new set.
Definition at line 255 of file style.cxx.
References bMySet, SfxStyleSheetBasePool::GetPool(), m_pPool, and pSet.
Referenced by GetDescription(), and GetItemSetForPreview().
|
virtual |
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.
If the style has parents, it is not required that the returned item set has parents (i.e. use it for display purposes only).
Definition at line 265 of file style.cxx.
References GetItemSet().
|
inline |
const OUString & SfxStyleSheetBase::GetName | ( | ) | const |
Definition at line 156 of file style.cxx.
References aName.
Referenced by SfxStyleSheetBasePool::Add(), svl::IndexedStyleSheets::Register(), and SetParent().
|
virtual |
|
inline |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
By default all stylesheets are set to used.
Definition at line 315 of file style.cxx.
Referenced by SfxStyleSheet::isUsedByModel().
|
inline |
Definition at line 166 of file style.hxx.
References UserDefined.
|
virtual |
|
virtual |
|
virtual |
Definition at line 222 of file style.cxx.
References bHidden, SfxBroadcaster::Broadcast(), hidden, m_pPool, and StyleSheetModified.
|
inline |
|
virtual |
Definition at line 161 of file style.cxx.
References aFollow, aName, SfxBroadcaster::Broadcast(), SfxStyleSheetBasePool::ChangeParent(), SfxStyleSheetBasePool::Find(), m_pPool, nFamily, and SfxStyleSheetBasePool::Reindex().
|
virtual |
Reimplemented in SfxStyleSheet.
Definition at line 193 of file style.cxx.
References aName, aParent, SfxBroadcaster::Broadcast(), SfxStyleSheetBasePool::Find(), GetName(), GetParent(), m_pPool, nFamily, and StyleSheetModified.
Referenced by SfxStyleSheet::SetParent().
|
friend |
|
protected |
Definition at line 123 of file style.hxx.
Referenced by GetFollow(), SetFollow(), and SetName().
|
protected |
Definition at line 124 of file style.hxx.
Referenced by GetHelpId(), and SetHelpId().
|
protected |
Definition at line 123 of file style.hxx.
Referenced by GetName(), SetName(), and SetParent().
|
protected |
Definition at line 123 of file style.hxx.
Referenced by GetParent(), SetParent(), and SfxStyleSheet::SetParent().
|
protected |
Definition at line 131 of file style.hxx.
Referenced by SetHidden().
|
protected |
Definition at line 130 of file style.hxx.
Referenced by GetItemSet(), SfxStyleSheetBase(), and ~SfxStyleSheetBase().
|
protected |
Definition at line 120 of file style.hxx.
Referenced by GetDescription(), GetItemSet(), SetHidden(), SetName(), SetParent(), and SfxStyleSheet::SetParent().
|
protected |
Definition at line 121 of file style.hxx.
Referenced by SetName(), SetParent(), and SfxStyleSheet::SetParent().
|
protected |
Definition at line 128 of file style.hxx.
Referenced by GetHelpId(), and SetHelpId().
|
protected |
|
protected |
Definition at line 125 of file style.hxx.
Referenced by GetItemSet(), SfxStyleSheetBase(), and ~SfxStyleSheetBase().