20 #include <document.hxx>
21 #include <stlsheet.hxx>
22 #include <stlpool.hxx>
39 #include <globstr.hrc>
73 bool bHasParentSupport =
false;
77 case SfxStyleFamily::Para: bHasParentSupport =
true;
break;
78 case SfxStyleFamily::Page: bHasParentSupport =
false;
break;
85 return bHasParentSupport;
91 OUString aEffName = rParentName;
96 pStyle = pIter->First();
101 if ( pStyle && aEffName !=
GetName() )
132 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) {
253 if (
GetFamily() == SfxStyleFamily::Para )
270 if ( rHint.
GetId() == SfxHintId::Dying )
284 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)
constexpr TypedWhichId< SvxBoxItem > ATTR_BORDER(150)
virtual bool SetParent(const OUString &rParentName) override
virtual ~ScStyleSheet() override
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALETOPAGES(175)
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)
virtual SfxItemSet & GetItemSet()
SfxStyleFamily GetFamily() const
constexpr TypedWhichId< ScPageScaleToItem > ATTR_PAGE_SCALETO(185)
void RepaintRange(const ScRange &rRange)
const OUString & GetName() 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 SvNumberFormatter * GetFormatTable() const
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
ScDocument * GetDocument() const
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_FOOTERSET(182)
SfxStyleSheetBasePool * m_pPool
OUString ScResId(const char *pId)
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)
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
void SetValid(SvxBoxInfoItemValidFlags nValid, bool bValid=true)
constexpr TypedWhichId< SvxSetItem > ATTR_PAGE_HEADERSET(181)
constexpr TypedWhichId< SfxUInt16Item > ATTR_PAGE_SCALE(174)
virtual SfxStyleSheetBase * Find(const OUString &, SfxStyleFamily eFam, SfxStyleSearchBits n=SfxStyleSearchBits::All)
ScStyleSheet(const ScStyleSheet &rStyle)
void SetPoolDefaultItem(const SfxPoolItem &)