19#ifndef INCLUDED_SW_INC_DOCSTYLE_HXX
20#define INCLUDED_SW_INC_DOCSTYLE_HXX
23#include <rtl/ustring.hxx>
29#include <unordered_map>
65 SAL_DLLPRIVATE
void Create();
75 SAL_DLLPRIVATE
bool FillStyleSheet(FillStyleType eFType,
76 std::optional<SfxItemSet> * o_ppFlatSet =
nullptr);
91 void SetPhysical(
bool bPhys);
93 virtual void SetHidden(
bool bHidden )
override;
94 virtual bool IsHidden( )
const override;
95 void SetGrabBagItem(
const css::uno::Any& rVal);
96 void GetGrabBagItem(css::uno::Any& rVal)
const;
102 void SetItemSet(
const SfxItemSet& rSet,
const bool bBroadcast =
true,
103 const bool bResetIndentAttrsAtParagraphStyle =
false );
109 void MergeIndentAttrsOfListStyle(
SfxItemSet& rSet );
110 virtual const OUString&
GetParent()
const override;
111 virtual const OUString&
GetFollow()
const override;
112 const OUString& GetLink()
const;
120 void PresetNameAndFamily(
SfxStyleFamily eFamily,
const OUString& rName);
124 virtual bool SetName(
const OUString& rNewName,
bool bReindexNow =
true)
override;
125 virtual bool SetParent(
const OUString& rStr)
override;
126 virtual bool SetFollow(
const OUString& rStr)
override;
127 void SetLink(
const OUString& rStr);
144 virtual bool IsUsed()
const override;
149struct hash<
std::pair<SfxStyleFamily,OUString>>
151 std::size_t
operator()(std::pair<SfxStyleFamily,OUString>
const & pair)
const
152 {
return static_cast<std::size_t
>(pair.first) ^ std::size_t(pair.second.hashCode()); }
163 std::vector<std::pair<SfxStyleFamily, OUString>>
maImpl;
164 typedef std::unordered_map<std::pair<SfxStyleFamily, OUString>, sal_uInt32>
UniqueHash;
175 const std::pair<SfxStyleFamily,OUString> &
operator[](sal_uInt32 nIdx) {
return maImpl[ nIdx ]; }
197 virtual sal_Int32
Count()
override;
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
virtual bool HasClearParentSupport() const
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true)
virtual const OUString & GetParent() const
virtual bool HasFollowSupport() const
virtual void SetHidden(bool bValue)
virtual sal_uLong GetHelpId(OUString &rFile)
virtual void SetHelpId(const OUString &r, sal_uLong nId)
virtual bool HasParentSupport() const
virtual const OUString & GetFollow() const
virtual bool IsHidden() const
virtual bool SetParent(const OUString &)
virtual SfxItemSet & GetItemSet()
virtual bool IsUsed() const
virtual bool SetFollow(const OUString &)
virtual OUString GetUsedBy()
virtual OUString GetDescription(MapUnit eMetric)
virtual std::optional< SfxItemSet > GetItemSetForPreview()
SwDocStyleSheetPool(const SwDocStyleSheetPool &)=delete
bool IsOrganizerMode() const
SwDocStyleSheetPool(SwDoc &, bool bOrganizer)
virtual SfxStyleSheetBase & Make(const OUString &, SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator(SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All) override
rtl::Reference< SfxStyleSheetPool > mxEEStyleSheetPool
SfxStyleSheetPool * GetEEStyleSheetPool() const
virtual void Remove(SfxStyleSheetBase *pStyle) override
virtual rtl::Reference< SfxStyleSheetBase > Create(const OUString &, SfxStyleFamily, SfxStyleSearchBits nMask) override
virtual ~SwDocStyleSheetPool() override
rtl::Reference< SwDocStyleSheet > mxStyleSheet
bool m_bOrganizer
Organizer.
void InvalidateIterator()
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All) override
SwTextFormatColl * m_pColl
const SwNumRule * m_pNumRule
void SetFamily(SfxStyleFamily eFam)
SwCharFormat * m_pCharFormat
SwTableAutoFormat * m_pTableFormat
SwDocStyleSheet(const SwDocStyleSheet &)
void PresetName(const OUString &rName)
Preset the members without physical access.
void PresetFollow(const OUString &rName)
void PresetParent(const OUString &rName)
SwFrameFormat * m_pFrameFormat
const SwPageDesc * m_pDesc
const SwBoxAutoFormat * m_pBoxFormat
virtual ~SwDocStyleSheet() override
FillStyleType
Fill StyleSheet with data.
virtual SfxStyleSheetBase * Find(const OUString &rStr) override
rtl::Reference< SwDocStyleSheet > mxIterSheet
virtual SfxStyleSheetBase * First() override
SwStyleSheetIterator(SwDocStyleSheetPool &rBase, SfxStyleFamily eFam, SfxStyleSearchBits n)
bool IsUsedInComments(const OUString &rName) const
void InvalidateIterator()
rtl::Reference< SwDocStyleSheet > mxStyleSheet
virtual void Notify(SfxBroadcaster &, const SfxHint &) override
virtual ~SwStyleSheetIterator() override
virtual SfxStyleSheetBase * operator[](sal_Int32 nIdx) override
virtual sal_Int32 Count() override
void AppendStyleList(const std::vector< OUString > &rLst, bool bUsed, bool bTestHidden, bool bOnlyHidden, SwGetPoolIdFromName nSection, SfxStyleFamily eFamily)
virtual SfxStyleSheetBase * Next() override
Represents the style of a paragraph.
SwNumRule * GetNumRule(SwTextFormatColl &rTextFormatColl)
determines the list style, which directly set at the given paragraph style
void Create(SvxOrientationItem &rItem, SvStream &rStrm, sal_uInt16)
std::size_t operator()(std::pair< SfxStyleFamily, OUString > const &pair) const