20#ifndef INCLUDED_SVL_STYLE_HXX
21#define INCLUDED_SVL_STYLE_HXX
23#include <config_options.h>
24#include <com/sun/star/style/XStyle.hpp>
85namespace svl {
class IndexedStyleSheets; }
140 const OUString&
GetName()
const;
148 virtual bool SetName(
const OUString& rNewName,
bool bReindexNow =
true);
150 virtual const OUString& GetParent()
const;
151 virtual bool SetParent(
const OUString& );
152 virtual const OUString& GetFollow()
const;
153 virtual bool SetFollow(
const OUString& );
154 virtual bool HasFollowSupport()
const;
155 virtual bool HasParentSupport()
const;
156 virtual bool HasClearParentSupport()
const;
157 virtual bool IsUsed()
const;
170 virtual void SetHidden(
bool bValue );
172 virtual sal_uLong GetHelpId( OUString& rFile );
180 virtual std::optional<SfxItemSet> GetItemSetForPreview();
197 virtual sal_Int32
Count();
230 std::unique_ptr<SfxStyleSheetBasePool_Impl>
pImpl;
238 void ChangeParent(std::u16string_view rOld,
const OUString& rNew,
SfxStyleFamily eFamily,
bool bVirtual =
true);
249 GetIndexedStyleSheets()
const;
294 virtual bool isUsedByModel()
const override;
296 virtual bool SetParent(
const OUString& )
override;
329class UNLESS_MERGELIBS(SVL_DLLPUBLIC) SfxStyleSheetModifiedHint final :
public SfxStyleSheetHint
334 SfxStyleSheetModifiedHint( OUString aOld,
336 const OUString& GetOldName()
const {
return aName; }
344 static SfxUnoStyleSheet* getUnoStyleSheet(
const css::uno::Reference< css::style::XStyle >& xStyle );
Base class for providers of defaults of SfxPoolItems.
friend class SfxStyleSheetBase
std::unique_ptr< SfxStyleSheetBasePool_Impl > pImpl
virtual rtl::Reference< SfxStyleSheetBase > Create(const OUString &, SfxStyleFamily, SfxStyleSearchBits)
const SfxItemPool & GetPool() const
SfxStyleSearchBits GetMask() const
friend class SfxStyleSheetBasePool
SfxStyleFamily GetFamily() const
bool IsUserDefined() const
virtual bool IsHidden() const
virtual bool isScStyleSheet() const
Fix for expensive dynamic_cast.
SfxStyleSheetBasePool * GetPool()
SfxStyleSheetBasePool * m_pPool
virtual OUString GetUsedBy()
void SetMask(SfxStyleSearchBits mask)
SfxStyleSheetBase * GetStyleSheet() const
SfxStyleSheetBase * pStyleSh
SfxStyleFamily nSearchFamily
const SfxStyleSheetBasePool * pBasePool
sal_Int32 mnCurrentPosition
SfxStyleSheetBase * pCurrentStyle
This class holds SfxStyleSheets and allows for access via an id and a name.
virtual OUString GetName() const override
virtual void Insert(SotClipboardFormatId nFormat, const OUString &rFormatName) override
virtual void GetDescription(OUString &rName) override
virtual void SetHelpId(const OUString &) override
SfxHintId
hint ids, mostly used to avoid dynamic_cast of SfxHint
void Clear(EHistoryType eHistory)
@ AllVisible
all visible styles
@ UserDefined
user defined styles (search mask)
TOOLS_DLLPUBLIC tools::Rectangle & operator+=(tools::Rectangle &rRect, const SvBorder &rBorder)