20 #include <document.hxx>
21 #include <stlsheet.hxx>
22 #include <stlpool.hxx>
41 #include <globstr.hrc>
75 bool bHasParentSupport =
false;
79 case SfxStyleFamily::Para: bHasParentSupport =
true;
break;
80 case SfxStyleFamily::Page: bHasParentSupport =
false;
break;
87 return bHasParentSupport;
93 OUString aEffName = rParentName;
98 pStyle = pIter->First();
103 if ( pStyle && aEffName !=
GetName() )
134 case SfxStyleFamily::Page:
184 aBoxInfoItem.
SetValid( SvxBoxInfoItemValidFlags::DISTANCE );
188 rHFSet.Put( aBoxInfoItem );
189 rHFSet.Put( aHFSizeItem );
190 rHFSet.Put( aHFDistItem );
206 SvxFrameDirection::Horizontal_RL_TB : SvxFrameDirection::Horizontal_LR_TB;
221 case SfxStyleFamily::Para:
228 if (
nHelpId == HID_SC_SHEET_CELL_ERG1 )
237 if (pool !=
nullptr) {
255 case SfxStyleFamily::Para:
266 case SfxStyleFamily::Page:
283 if ( rHint.
GetId() == SfxHintId::Dying )
297 if ( rNew == aFileStdName && aFileStdName !=
ScResId(STR_STYLENAME_STANDARD) )
static bool IsSystemRTL()
virtual std::unique_ptr< SfxStyleSheetIterator > CreateIterator(SfxStyleFamily, SfxStyleSearchBits nMask=SfxStyleSearchBits::All)
constexpr TypedWhichId< SvxSizeItem > ATTR_PAGE_SIZE(161)
OUString ScResId(TranslateId aId)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
virtual bool SetParent(const OUString &rParentName) override
virtual ~ScStyleSheet() override
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALE(175)
bool IsPageStyleInUse(std::u16string_view rStrPageStyle, SCTAB *pInTab)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
void SetLandscape(bool bL)
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true)
virtual bool HasParentSupport() const override
constexpr TypedWhichId< SvxBoxInfoItem > ATTR_BORDER_INNER(151)
constexpr OUStringLiteral STRING_STANDARD
virtual SfxItemSet & GetItemSet()
SfxStyleFamily GetFamily() const
void RepaintRange(const ScRange &rRange)
const OUString & GetName() const
SC_DLLPUBLIC SCROW MaxRow() const
constexpr TypedWhichId< SvxShadowItem > ATTR_SHADOW(152)
virtual bool SetName(const OUString &rNewName, bool bReindexNow=true) override
virtual bool HasFollowSupport() const override
SC_DLLPUBLIC void ResetParent()
virtual bool SetParent(const OUString &) override
static Size GetDefaultPaperSize(MapUnit eUnit=MapUnit::MapTwip)
SfxStyleSheetBasePool * GetPool()
SC_DLLPUBLIC SCCOL MaxCol() const
SC_DLLPUBLIC SvNumberFormatter * GetFormatTable() const
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
ScDocument * GetDocument() const
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_HEADERSET(184)
SfxStyleSheetBasePool * m_pPool
constexpr TypedWhichId< SfxUInt32Item > ATTR_VALUE_FORMAT(146)
static SC_DLLPUBLIC LanguageType eLnge
const SfxPoolItem & GetDefaultItem(sal_uInt16 nWhich) const
constexpr TypedWhichId< SvxLRSpaceItem > ATTR_LRSPACE(157)
constexpr TypedWhichId< ScPageScaleToItem > ATTR_PAGE_SCALETO(188)
void SetParent(const SfxItemSet *pNew)
constexpr TypedWhichId< SvxBrushItem > ATTR_BACKGROUND(148)
bool IsStyleSheetUsed(const ScStyleSheet &rStyle) const
constexpr TypedWhichId< SvxFrameDirectionItem > ATTR_WRITINGDIR(138)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
Contains the "scale to width/height" attribute in page styles.
constexpr TypedWhichId< SvXMLAttrContainerItem > ATTR_USERDEF(122)
void SetWhich(sal_uInt16 nId)
virtual SC_DLLPUBLIC SfxItemSet & GetItemSet() override
constexpr TypedWhichId< SvxULSpaceItem > ATTR_ULSPACE(158)
ScStyleSheet::Usage eUsage
constexpr TypedWhichId< SvxPageItem > ATTR_PAGE(159)
virtual bool IsUsed() const override
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALETOPAGES(176)
void SetValid(SvxBoxInfoItemValidFlags nValid, bool bValid=true)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_FOOTERSET(185)
ScStyleSheet(const ScStyleSheet &rStyle)
void SetPoolDefaultItem(const SfxPoolItem &)