20 #include <libxml/xmlwriter.h>
129 if(
auto pObjGroup = dynamic_cast<SdrObjGroup*>( &
GetSdrObject() ))
158 xmlTextWriterStartElement(pWriter, BAD_CAST(
"BaseProperties"));
159 xmlTextWriterEndElement(pWriter);
167 if( !(bFillBitmap || bFillGradient || bFillHatch) )
171 if( !pFillStyleItem )
174 if( bFillBitmap && (pFillStyleItem->
GetValue() != drawing::FillStyle_BITMAP) )
179 if( bFillGradient && (pFillStyleItem->
GetValue() != drawing::FillStyle_GRADIENT) )
184 if( bFillHatch && (pFillStyleItem->
GetValue() != drawing::FillStyle_HATCH) )
virtual const SfxItemSet & GetObjectItemSet() const =0
const SfxPoolItem & GetItem(const sal_uInt16 nWhich) const
const tools::Rectangle & GetRectangle(sal_uInt32 nIndex) const
struct _xmlTextWriter * xmlTextWriterPtr
constexpr TypedWhichId< XFillStyleItem > XATTR_FILLSTYLE(XATTR_FILL_FIRST)
constexpr TypedWhichId< XFillHatchItem > XATTR_FILLHATCH(XATTR_FILL_FIRST+3)
virtual const SfxItemSet & GetMergedItemSet() const
virtual void ForceStyleToHardAttributes()
virtual ~BaseProperties()
virtual void SetMergedItemSet(const SfxItemSet &rSet, bool bClearAllItems=false)
virtual void ClearObjectItem(const sal_uInt16 nWhich=0)=0
void BroadcastItemChange(const ItemChangeBroadcaster &rChange)
virtual SfxStyleSheet * GetStyleSheet() const =0
virtual void SetStyleSheet(SfxStyleSheet *pNewStyleSheet, bool bDontRemoveHardAttr)=0
sal_uInt16 ClearItem(sal_uInt16 nWhich=0)
virtual void SetObjectItem(const SfxPoolItem &rItem)=0
constexpr TypedWhichId< XFillGradientItem > XATTR_FILLGRADIENT(XATTR_FILL_FIRST+2)
SfxItemState GetItemState(sal_uInt16 nWhich, bool bSrchInParent=true, const SfxPoolItem **ppItem=nullptr) const
void SetMergedItemSetAndBroadcast(const SfxItemSet &rSet, bool bClearAllItems=false)
void CleanupFillProperties(SfxItemSet &rItemSet)
constexpr TypedWhichId< XFillBitmapItem > XATTR_FILLBITMAP(XATTR_FILL_FIRST+4)
void BroadcastObjectChange() const
virtual void dumpAsXml(xmlTextWriterPtr pWriter) const
virtual void applyDefaultStyleSheetFromSdrModel()
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
sal_uInt32 GetRectangleCount() const
virtual void SetMergedItem(const SfxPoolItem &rItem)
const SdrObject & GetSdrObject() const
virtual sal_uInt32 getVersion() const
const SfxPoolItem * GetItem(sal_uInt16 nWhich, bool bSearchInParent=true) const
virtual void ClearMergedItem(const sal_uInt16 nWhich)
void SendUserCall(SdrUserCallType eUserCall, const tools::Rectangle &rBoundRect) const
virtual void SetObjectItemSet(const SfxItemSet &rSet)=0