30#include <libxml/xmlwriter.h>
71 const bool bScaleUnitChanged(aNewUnit != aOldUnit);
104 assert(
mxItemSet &&
"Could not create an SfxItemSet(!)");
111 const sal_uInt16 nWhichID(rItem.
Which());
125 const sal_uInt16 nWhichID(rItem.
Which());
160 const std::shared_ptr<VectorGraphicData>& pVectorData
168 pVectorData->setSizeHint(aSizeHint);
174 std::vector< const SfxPoolItem * > aPostItemChangeList;
176 aPostItemChangeList.reserve(
rSet.
Count());
181 if(SfxItemState::SET == aWhichIter.
GetItemState(
false, &pPoolItem))
186 aPostItemChangeList.emplace_back( pPoolItem );
193 if(!aPostItemChangeList.empty())
195 for (
const auto& rItem : aPostItemChangeList)
241 (void)xmlTextWriterStartElement(pWriter, BAD_CAST(
"DefaultProperties"));
247 (void)xmlTextWriterEndElement(pWriter);
const Graphic & GetGraphic() const
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData() const
MapUnit GetScaleUnit() const
const SfxItemPool & GetItemPool() const
SdrModel & getSdrModelFromSdrObject() const
bool HasItem(sal_uInt16 nWhich, const SfxPoolItem **ppItem=nullptr) const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
SfxItemState GetItemState(bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
const GraphicObject & GetGraphicObject() const
const SdrObject & GetSdrObject() const
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
virtual void SetObjectItemSet(const SfxItemSet &rSet) override
virtual void ClearObjectItemDirect(const sal_uInt16 nWhich) override
virtual std::unique_ptr< BaseProperties > Clone(SdrObject &rObj) const override
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr, bool bBroadcast) override
virtual SfxItemSet CreateObjectSpecificItemSet(SfxItemPool &pPool) override
virtual void SetObjectItem(const SfxPoolItem &rItem) override
virtual void ItemSetChanged(o3tl::span< const SfxPoolItem *const > aChangedItems, sal_uInt16 nDeletedWhich)
virtual ~DefaultProperties() override
virtual void ClearObjectItem(const sal_uInt16 nWhich=0) override
virtual bool AllowItemChange(const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr) const
virtual void ItemChange(const sal_uInt16 nWhich, const SfxPoolItem *pNewItem=nullptr)
std::optional< SfxItemSet > mxItemSet
void dumpAsXml(xmlTextWriterPtr pWriter) const override
virtual const SfxItemSet & GetObjectItemSet() const override
DefaultProperties(SdrObject &rObj)
virtual void PostItemChange(const sal_uInt16 nWhich)
virtual SfxStyleSheet * GetStyleSheet() const override
virtual void ForceDefaultAttributes()
virtual void SetObjectItemDirect(const SfxPoolItem &rItem) override
struct _xmlTextWriter * xmlTextWriterPtr
void ScaleItemSet(SfxItemSet &rSet, const Fraction &rScale)
void CleanupFillProperties(SfxItemSet &rItemSet)
FrPair GetMapFactor(MapUnit eS, MapUnit eD)
constexpr TypedWhichId< XFillBitmapItem > XATTR_FILLBITMAP(XATTR_FILL_FIRST+4)
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)