namespace sdr::properties
{ class SVXCORE_DLLPUBLIC DefaultProperties : public BaseProperties
{ protected: // the to be used ItemSet mutable std::optional<SfxItemSet> moItemSet;
// create a new object specific itemset with object specific ranges.
SAL_DLLPRIVATE virtual SfxItemSet CreateObjectSpecificItemSet(SfxItemPool& pPool) override;
// Test changeability for a single item. If an implementation wants to prevent // changing an item it should override this method.
SAL_DLLPRIVATE virtualbool AllowItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = nullptr) const;
// Do the internal ItemChange. If only nWhich is given, the item needs to be cleared. // Also needs to handle if nWhich and pNewItem is 0, which means to clear all items.
SAL_DLLPRIVATE virtualvoid ItemChange(const sal_uInt16 nWhich, const SfxPoolItem* pNewItem = nullptr);
// Called after ItemChange() is done for all items. Allows local reactions on // specific item changes
SAL_DLLPRIVATE virtualvoid PostItemChange(const sal_uInt16 nWhich);
// Internally react on ItemSet changes. The given span contains changed items. // If nDeletedWhich is not 0, it indicates a deleted item. // @param bAdjustTextFrameWidthAndHeight pass false if you know it is safe to avoid the cost of doing // text layout right now.
SAL_DLLPRIVATE virtualvoid ItemSetChanged(std::span< const SfxPoolItem* const > aChangedItems, sal_uInt16 nDeletedWhich, bool bAdjustTextFrameWidthAndHeight = true);
// Clone() operator, normally just calls the local copy constructor
SAL_DLLPRIVATE virtual std::unique_ptr<BaseProperties> Clone(SdrObject& rObj) constoverride;
// get itemset
SAL_DLLPRIVATE virtualconst SfxItemSet& GetObjectItemSet() const override;
// set single item
SAL_DLLPRIVATE virtualvoid SetObjectItem(const SfxPoolItem& rItem) override;
// set single item direct, do not do any notifies or things like that
SAL_DLLPRIVATE virtualvoid SetObjectItemDirect(const SfxPoolItem& rItem) override;
// clear single item direct, do not do any notifies or things like that. // Also supports complete deletion of items when default parameter 0 is used.
SAL_DLLPRIVATE virtualvoid ClearObjectItemDirect(const sal_uInt16 nWhich) override;
// set complete item set
SAL_DLLPRIVATE virtualvoid SetObjectItemSet(const SfxItemSet& rSet, bool bAdjustTextFrameWidthAndHeight = true) override;
// set a new StyleSheet and broadcast
SAL_DLLPRIVATE virtualvoid SetStyleSheet(SfxStyleSheet* pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast, bool bAdjustTextFrameWidthAndHeight = true) override;
// get the installed StyleSheet
SAL_DLLPRIVATE virtual SfxStyleSheet* GetStyleSheet() const override;
// force default attributes for a specific object type, called from // DefaultProperties::GetObjectItemSet() if a new ItemSet is created. // Default implementation does nothing.
SAL_DLLPRIVATE virtualvoid ForceDefaultAttributes();
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.