27 #include <osl/diagnose.h>
38 return std::make_unique<SfxItemSet>(rPool);
57 return std::unique_ptr<BaseProperties>(
new GroupProperties(*
this, rObj));
62 assert(!
"GroupProperties::GetObjectItemSet() should never be called");
82 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
93 if(SfxItemState::DONTCARE == rSet.
GetItemState(nWhich,
false))
115 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
136 assert(!
"GroupProperties::SetObjectItem() should never be called");
141 assert(!
"GroupProperties::SetObjectItemDirect() should never be called");
148 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
164 assert(!
"GroupProperties::ClearObjectItemDirect() should never be called");
170 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
182 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
193 assert(!
"GroupProperties::SetObjectItemSet() should never be called");
198 assert(!
"GroupProperties::ItemSetChanged() should never be called");
203 assert(!
"GroupProperties::AllowItemChange() should never be called");
209 assert(!
"GroupProperties::ItemChange() should never be called");
214 assert(!
"GroupProperties::PostItemChange() should never be called");
222 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
231 if(pCandidate != pRetval)
239 pRetval = pCandidate;
249 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
266 OSL_ENSURE(
nullptr != pSub,
"Children of SdrObject expected (!)");
virtual void ForceDefaultAttributes() override
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override
virtual const SfxItemSet & GetObjectItemSet() const override
virtual void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false) override
void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)
virtual const SfxItemSet & GetObjectItemSet() const override
SdrObject * GetObj(size_t nNum) const
size_t GetObjCount() const
virtual void SetObjectItemSet(const SfxItemSet &rSet) override
GroupProperties(SdrObject &rObj)
virtual sdr::properties::BaseProperties & GetProperties() const
virtual const SfxItemSet & GetMergedItemSet() const override
std::unique_ptr< SfxItemSet > mpItemSet
virtual void SetMergedItem(const SfxPoolItem &rItem) override
virtual void ForceStyleToHardAttributes()
virtual void ClearMergedItem(const sal_uInt16 nWhich) override
virtual void ClearObjectItem(const sal_uInt16 nWhich=0)=0
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
virtual std::unique_ptr< SfxItemSet > CreateObjectSpecificItemSet(SfxItemPool &rPool) override
virtual void ClearObjectItem(const sal_uInt16 nWhich=0) override
virtual void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) override
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr) override
SfxStyleSheet * GetStyleSheet() const
void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false)
virtual void SetObjectItemDirect(const SfxPoolItem &rItem) override
virtual bool AllowItemChange(const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) const override
virtual void ItemSetChanged(const SfxItemSet &rSet) override
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
virtual void SetObjectItem(const SfxPoolItem &rItem) override
virtual SfxStyleSheet * GetStyleSheet() const override
virtual ~GroupProperties() override
virtual void PostItemChange(const sal_uInt16 nWhich) override
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
const SfxItemSet & GetMergedItemSet() const
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
virtual void SetMergedItem(const SfxPoolItem &rItem)
const SdrObject & GetSdrObject() const
virtual void ClearMergedItem(const sal_uInt16 nWhich)
virtual void ForceStyleToHardAttributes() override