47 if(!bDontRemoveHardAttr)
69 OSL_ENSURE(
false,
"ImpSetParentAtSfxItemSet called without SfxItemSet/SfxStyleSheet (!)");
126 return std::make_unique<SfxItemSet>(rPool,
136 mpStyleSheet(nullptr)
147 mpStyleSheet(nullptr)
151 if(pTargetStyleSheet)
174 pTargetStyleSheet =
nullptr;
188 if(
nullptr != pTargetStyleSheetPool)
194 pTargetStyleSheetPool->Find(
196 SfxStyleFamily::All));
201 if(!pTargetStyleSheet)
291 std::unique_ptr<SfxPoolItem> pResultItem;
299 pResultItem =
static_cast<const XFillBitmapItem*
>(pNewItem)->checkForUniqueItem( &rModel );
304 pResultItem =
static_cast<const XLineDashItem*
>(pNewItem)->checkForUniqueItem( &rModel );
309 pResultItem =
static_cast<const XLineStartItem*
>(pNewItem)->checkForUniqueItem( &rModel );
314 pResultItem =
static_cast<const XLineEndItem*
>(pNewItem)->checkForUniqueItem( &rModel );
319 pResultItem =
static_cast<const XFillGradientItem*
>(pNewItem)->checkForUniqueItem( &rModel );
330 pResultItem =
static_cast<const XFillHatchItem*
>(pNewItem)->checkForUniqueItem( &rModel );
398 sal_uInt16 nWhich(aIter.FirstWhich());
406 if(SfxItemState::SET ==
mpItemSet->GetItemState(nWhich,
true, &pItem))
408 pDestItemSet->
Put(*pItem);
411 nWhich = aIter.NextWhich();
426 bool bHintUsed(
false);
435 switch(pStyleHint->
GetId())
437 case SfxHintId::StyleSheetCreated :
442 case SfxHintId::StyleSheetModified :
443 case SfxHintId::StyleSheetChanged :
448 case SfxHintId::StyleSheetErased :
449 case SfxHintId::StyleSheetInDestruction :
460 if(dynamic_cast<const SfxStyleSheet *>(
GetStyleSheet()) !=
nullptr)
462 pNewStSh =
static_cast<SfxStyleSheet*
>(rModel.GetStyleSheetPool()->Find(
468 pNewStSh = rModel.GetDefaultStyleSheet();
519 if (pPage && pPage->IsInserted())
virtual SfxStyleSheet * GetStyleSheet() const override
constexpr TypedWhichId< XLineEndItem > XATTR_LINEEND(XATTR_LINE_FIRST+5)
constexpr TypedWhichId< XLineStartItem > XATTR_LINESTART(XATTR_LINE_FIRST+4)
bool HasSfxItemSet() const
virtual ~AttributeProperties() override
bool IsInDestruction() const
virtual bool isUsedByModel() const override
virtual const SfxItemSet & GetObjectItemSet() const override
virtual void SetBoundRectDirty()
virtual const SfxItemSet & GetObjectItemSet() const override
virtual SfxItemSet & GetItemSet()
constexpr TypedWhichId< XLineDashItem > XATTR_LINEDASH(XATTR_LINE_FIRST+1)
constexpr TypedWhichId< XFillHatchItem > XATTR_FILLHATCH(XATTR_FILL_FIRST+3)
constexpr sal_uInt16 SDRATTR_MISC_LAST(SDRATTR_TEXT_CHAINNEXTNAME)
std::unique_ptr< SfxItemSet > mpItemSet
constexpr sal_uInt16 SDRATTR_START(XATTR_START)
SfxStyleSheetBase * GetStyleSheet() const
const OUString & GetName() const
void ImpRemoveStyleSheet()
void ImpAddStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
SdrPage * getSdrPageFromSdrObject() const
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) override
SfxStyleSheetBasePool * GetPool()
constexpr TypedWhichId< SvxWritingModeItem > SDRATTR_TEXTDIRECTION(SDRATTR_NOTPERSIST_FIRST+34)
constexpr TypedWhichId< XFillGradientItem > XATTR_FILLGRADIENT(XATTR_FILL_FIRST+2)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
#define DBG_ASSERT(sCon, aError)
constexpr TypedWhichId< XFillBitmapItem > XATTR_FILLBITMAP(XATTR_FILL_FIRST+4)
void BroadcastObjectChange() const
SdrModel & getSdrModelFromSdrObject() const
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
virtual void ItemSetChanged(const SfxItemSet &rSet) override
virtual void applyDefaultStyleSheetFromSdrModel()
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
void SetParent(const SfxItemSet *pNew)
virtual const tools::Rectangle & GetLastBoundRect() const
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint)
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr sal_uInt16 SDRATTR_SHADOW_LAST(SDRATTR_SHADOWBLUR)
constexpr TypedWhichId< XFillFloatTransparenceItem > XATTR_FILLFLOATTRANSPARENCE(XATTR_FILL_FIRST+11)
virtual void ForceStyleToHardAttributes() override
virtual std::unique_ptr< SfxItemSet > CreateObjectSpecificItemSet(SfxItemPool &pPool) override
SfxStyleSheet * mpStyleSheet
SfxStyleSheetBasePool * GetStyleSheetPool() const
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
virtual void SetRectsDirty(bool bNotMyself=false, bool bRecursive=true)
const SdrObject & GetSdrObject() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
void ImpSetParentAtSfxItemSet(bool bDontRemoveHardAttr)
virtual void SetChanged()
constexpr sal_uInt16 SDRATTR_MISC_FIRST(SDRATTR_CAPTION_LAST+1)
virtual void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) override
void SendUserCall(SdrUserCallType eUserCall, const tools::Rectangle &rBoundRect) const
AttributeProperties(SdrObject &rObj)