20#include <document.hxx>
21#include <stlsheet.hxx>
79 bool bHasParentSupport =
false;
83 case SfxStyleFamily::Para: bHasParentSupport =
true;
break;
84 case SfxStyleFamily::Frame: bHasParentSupport =
true;
break;
85 case SfxStyleFamily::Page: bHasParentSupport =
false;
break;
92 return bHasParentSupport;
98 OUString aEffName = rParentName;
103 pStyle = pIter->First();
108 if ( pStyle && aEffName !=
GetName() )
139 case SfxStyleFamily::Page:
188 aBoxInfoItem.
SetValid( SvxBoxInfoItemValidFlags::DISTANCE );
192 rHFSet.
Put( aBoxInfoItem );
193 rHFSet.
Put( aHFSizeItem );
194 rHFSet.
Put( aHFDistItem );
210 SvxFrameDirection::Horizontal_RL_TB : SvxFrameDirection::Horizontal_LR_TB;
225 case SfxStyleFamily::Frame:
228 if (
dynamic_cast<SdrItemPool*
>(pItemPool) ==
nullptr)
243 case SfxStyleFamily::Para:
250 if (
nHelpId == HID_SC_SHEET_CELL_ERG1 )
259 if (pool !=
nullptr) {
277 case SfxStyleFamily::Para:
288 case SfxStyleFamily::Page:
298 case SfxStyleFamily::Frame:
302 auto pUser(
dynamic_cast<svl::StyleSheetUser*
>(pListener));
303 if (pUser && pUser->isUsedByModel())
321 if ( rHint.
GetId() == SfxHintId::Dying )
323 if (
GetFamily() == SfxStyleFamily::Frame)
337 if ( rNew == aFileStdName && aFileStdName !=
ScResId(STR_STYLENAME_STANDARD) )
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SCROW MaxRow() const
bool IsPageStyleInUse(std::u16string_view rStrPageStyle, SCTAB *pInTab)
void RepaintRange(const ScRange &rRange)
bool IsStyleSheetUsed(const ScStyleSheet &rStyle) const
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
static bool IsSystemRTL()
static SC_DLLPUBLIC LanguageType eLnge
Contains the "scale to width/height" attribute in page styles.
ScDocument * GetDocument() const
virtual ~ScStyleSheet() override
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true) override
virtual SC_DLLPUBLIC SfxItemSet & GetItemSet() override
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual bool SetParent(const OUString &rParentName) override
ScStyleSheet(const ScStyleSheet &rStyle)
virtual bool HasFollowSupport() const override
virtual bool HasParentSupport() const override
SC_DLLPUBLIC void ResetParent()
virtual bool IsUsed() const override
ScStyleSheet::Usage eUsage
void ForAllListeners(std::function< bool(SfxListener *)> f) const
SfxItemPool * GetSecondaryPool() const
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
void SetPoolDefaultItem(const SfxPoolItem &)
void SetParent(const SfxItemSet *pNew)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator(SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true)
const OUString & GetName() const
SfxStyleFamily GetFamily() const
virtual SfxItemSet & GetItemSet()
SfxStyleSheetBasePool * GetPool()
SfxStyleSheetBasePool * m_pPool
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
virtual bool SetParent(const OUString &) override
void SetValid(SvxBoxInfoItemValidFlags nValid, bool bValid=true)
void SetLandscape(bool bL)
static Size GetDefaultPaperSize(MapUnit eUnit=MapUnit::MapTwip)
constexpr sal_uInt16 EE_PARA_START(EE_ITEMS_START+0)
constexpr sal_uInt16 EE_CHAR_END(EE_CHAR_START+32)
constexpr OUStringLiteral STRING_STANDARD
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALE(175)
constexpr TypedWhichId< SvxSizeItem > ATTR_PAGE_SIZE(161)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_HEADERSET(184)
constexpr TypedWhichId< SvxULSpaceItem > ATTR_ULSPACE(158)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)
constexpr TypedWhichId< SvxShadowItem > ATTR_SHADOW(152)
constexpr TypedWhichId< SvxBoxInfoItem > ATTR_BORDER_INNER(151)
constexpr TypedWhichId< SvxPageItem > ATTR_PAGE(159)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
constexpr TypedWhichId< ScPageScaleToItem > ATTR_PAGE_SCALETO(188)
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
constexpr TypedWhichId< SvxFrameDirectionItem > ATTR_WRITINGDIR(138)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALETOPAGES(176)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_FOOTERSET(185)
constexpr TypedWhichId< SvXMLAttrContainerItem > ATTR_USERDEF(122)
constexpr TypedWhichId< SvxLRSpaceItem > ATTR_LRSPACE(157)
constexpr sal_uInt16 SDRATTR_MEASURE_LAST(SDRATTR_MEASUREDECIMALPLACES)
constexpr sal_uInt16 SDRATTR_3D_FIRST(SDRATTR_GRAF_LAST+1)
constexpr sal_uInt16 SDRATTR_3D_LAST(SDRATTR_3DSCENE_LAST)
constexpr sal_uInt16 SDRATTR_SHADOW_FIRST(XATTR_END+1)
constexpr TypedWhichId< SdrOnOffItem > SDRATTR_TEXT_WORDWRAP(SDRATTR_MISC_FIRST+24)
constexpr TypedWhichId< SdrMetricItem > SDRATTR_TEXT_MINFRAMEHEIGHT(SDRATTR_MISC_FIRST+1)
constexpr sal_uInt16 SDRATTR_SHADOW_LAST(SDRATTR_SHADOWALIGNMENT)
constexpr sal_uInt16 SDRATTR_EDGE_FIRST(SDRATTR_MISC_LAST+1)
constexpr sal_uInt16 XATTR_LINE_FIRST(XATTR_START)
constexpr sal_uInt16 XATTR_FILL_FIRST(XATTRSET_LINE+1)
constexpr sal_uInt16 XATTR_LINE_LAST(XATTR_LINECAP)
constexpr sal_uInt16 XATTR_FILL_LAST(XATTR_FILLUSESLIDEBACKGROUND)