fix in some missing SfxItemTypes

Change-Id: I7dcb9768a8cd63200b8f8c50d8170e78ff5aeec2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171068
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin 2024-07-26 13:24:06 +02:00
parent 8cfb927373
commit 8e03fced7c
13 changed files with 62 additions and 48 deletions

View file

@ -471,8 +471,10 @@ enum class SfxItemType : sal_uInt16 {
SwTransparencyGrfType, SwTransparencyGrfType,
SwUINumRuleItemType, SwUINumRuleItemType,
SwWrtShellItemType, SwWrtShellItemType,
XColorItemType,
XFillAttrSetItemType, XFillAttrSetItemType,
XFillBackgroundItemType, XFillBackgroundItemType,
XFillBitmapItemType,
XFillBmpPosItemType, XFillBmpPosItemType,
XFillBmpPosOffsetXItemType, XFillBmpPosOffsetXItemType,
XFillBmpPosOffsetYItemType, XFillBmpPosOffsetYItemType,
@ -483,6 +485,9 @@ enum class SfxItemType : sal_uInt16 {
XFillBmpTileItemType, XFillBmpTileItemType,
XFillBmpTileOffsetXItemType, XFillBmpTileOffsetXItemType,
XFillBmpTileOffsetYItemType, XFillBmpTileOffsetYItemType,
XFillColorItemType,
XFillGradientItemType,
XFillHatchItemType,
XFillStyleItemType, XFillStyleItemType,
XFillTransparenceItemType, XFillTransparenceItemType,
XFillUseSlideBackgroundItemType, XFillUseSlideBackgroundItemType,
@ -491,6 +496,7 @@ enum class SfxItemType : sal_uInt16 {
XFormTextHideFormItemType, XFormTextHideFormItemType,
XFormTextMirrorItemType, XFormTextMirrorItemType,
XFormTextOutlineItemType, XFormTextOutlineItemType,
XFormTextShadowColorItemType,
XFormTextShadowItemType, XFormTextShadowItemType,
XFormTextShadowTranspItemType, XFormTextShadowTranspItemType,
XFormTextShadowXValItemType, XFormTextShadowXValItemType,
@ -500,14 +506,19 @@ enum class SfxItemType : sal_uInt16 {
XGradientStepCountItemType, XGradientStepCountItemType,
XLineAttrSetItemType, XLineAttrSetItemType,
XLineCapItemType, XLineCapItemType,
XLineColorItemType,
XLineDashItemType,
XLineEndCenterItemType, XLineEndCenterItemType,
XLineEndItemType,
XLineEndWidthItemType, XLineEndWidthItemType,
XLineJointItemType, XLineJointItemType,
XLineStartCenterItem, XLineStartCenterItem,
XLineStartItemType,
XLineStartWidthItemType, XLineStartWidthItemType,
XLineStyleItemType, XLineStyleItemType,
XLineTransparenceItemType, XLineTransparenceItemType,
XLineWidthItemType XLineWidthItemType,
XSecondaryFillColorItemType
#ifdef DBG_UTIL #ifdef DBG_UTIL
, SwTestItemType , SwTestItemType
#endif #endif

View file

@ -35,7 +35,7 @@ private:
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XFillBitmapItem() : NameOrIndex(XATTR_FILLBITMAP, -1 ) {} XFillBitmapItem() : NameOrIndex(XATTR_FILLBITMAP, -1, SfxItemType::XFillBitmapItemType ) {}
XFillBitmapItem(const OUString& rName, const GraphicObject& rGraphicObject); XFillBitmapItem(const OUString& rName, const GraphicObject& rGraphicObject);
XFillBitmapItem( const GraphicObject& rGraphicObject ); XFillBitmapItem( const GraphicObject& rGraphicObject );
XFillBitmapItem( const XFillBitmapItem& rItem ); XFillBitmapItem( const XFillBitmapItem& rItem );

View file

@ -35,10 +35,10 @@ class SVXCORE_DLLPUBLIC XColorItem : public NameOrIndex
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XColorItem() {} XColorItem(SfxItemType eItemType = SfxItemType::XColorItemType) : NameOrIndex(eItemType) {}
XColorItem(TypedWhichId<XColorItem> nWhich, sal_Int32 nIndex, const Color& rTheColor); XColorItem(TypedWhichId<XColorItem> nWhich, sal_Int32 nIndex, const Color& rTheColor, SfxItemType eItemType = SfxItemType::XColorItemType);
XColorItem(TypedWhichId<XColorItem> nWhich, const Color& rTheColor); XColorItem(TypedWhichId<XColorItem> nWhich, const Color& rTheColor, SfxItemType eItemType = SfxItemType::XColorItemType);
XColorItem(TypedWhichId<XColorItem> nWhich, const OUString& rName, const Color& rTheColor); XColorItem(TypedWhichId<XColorItem> nWhich, const OUString& rName, const Color& rTheColor, SfxItemType eItemType = SfxItemType::XColorItemType);
XColorItem(const XColorItem& rItem); XColorItem(const XColorItem& rItem);
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;

View file

@ -33,7 +33,7 @@ class SVXCORE_DLLPUBLIC XFillColorItem final : public XColorItem
{ {
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XFillColorItem() {} XFillColorItem() : XColorItem(SfxItemType::XFillColorItemType) {}
XFillColorItem(sal_Int32 nIndex, const Color& rTheColor); XFillColorItem(sal_Int32 nIndex, const Color& rTheColor);
XFillColorItem(const OUString& rName, const Color& rTheColor); XFillColorItem(const OUString& rName, const Color& rTheColor);

View file

@ -34,7 +34,7 @@ class SVXCORE_DLLPUBLIC XFillGradientItem : public NameOrIndex
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XFillGradientItem() : NameOrIndex(XATTR_FILLGRADIENT, -1) {} XFillGradientItem() : NameOrIndex(XATTR_FILLGRADIENT, -1, SfxItemType::XFillGradientItemType) {}
XFillGradientItem(sal_Int32 nIndex, const basegfx::BGradient& rTheGradient); XFillGradientItem(sal_Int32 nIndex, const basegfx::BGradient& rTheGradient);
XFillGradientItem(const OUString& rName, const basegfx::BGradient& rTheGradient, TypedWhichId<XFillGradientItem> nWhich = XATTR_FILLGRADIENT); XFillGradientItem(const OUString& rName, const basegfx::BGradient& rTheGradient, TypedWhichId<XFillGradientItem> nWhich = XATTR_FILLGRADIENT);
XFillGradientItem(const basegfx::BGradient& rTheGradient); XFillGradientItem(const basegfx::BGradient& rTheGradient);

View file

@ -35,7 +35,7 @@ class SVXCORE_DLLPUBLIC XFillHatchItem final : public NameOrIndex
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XFillHatchItem() : NameOrIndex(XATTR_FILLHATCH, -1) {} XFillHatchItem() : NameOrIndex(XATTR_FILLHATCH, -1, SfxItemType::XFillHatchItemType) {}
XFillHatchItem(const OUString& rName, const XHatch& rTheHatch); XFillHatchItem(const OUString& rName, const XHatch& rTheHatch);
XFillHatchItem(const XHatch& rTheHatch); XFillHatchItem(const XHatch& rTheHatch);
XFillHatchItem(const XFillHatchItem& rItem); XFillHatchItem(const XFillHatchItem& rItem);

View file

@ -33,7 +33,10 @@ class SVXCORE_DLLPUBLIC XFormTextShadowColorItem final : public XColorItem
{ {
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XFormTextShadowColorItem() {} XFormTextShadowColorItem()
: XColorItem(SfxItemType::XFormTextShadowColorItemType)
{
}
XFormTextShadowColorItem(const OUString& rName, const Color& rTheColor); XFormTextShadowColorItem(const OUString& rName, const Color& rTheColor);
virtual XFormTextShadowColorItem* Clone(SfxItemPool* pPool = nullptr) const override; virtual XFormTextShadowColorItem* Clone(SfxItemPool* pPool = nullptr) const override;

View file

@ -42,9 +42,9 @@ protected:
void Detach() { m_nPalIndex = -1; } void Detach() { m_nPalIndex = -1; }
public: public:
NameOrIndex() { m_nPalIndex = -1; } NameOrIndex(SfxItemType eItemType) : SfxStringItem(0, eItemType) { m_nPalIndex = -1; }
NameOrIndex(TypedWhichId<NameOrIndex> nWhich, sal_Int32 nIndex); NameOrIndex(TypedWhichId<NameOrIndex> nWhich, sal_Int32 nIndex, SfxItemType eItemType);
NameOrIndex(TypedWhichId<NameOrIndex> nWhich, const OUString& rName); NameOrIndex(TypedWhichId<NameOrIndex> nWhich, const OUString& rName, SfxItemType eItemType);
NameOrIndex(const NameOrIndex& rNameOrIndex); NameOrIndex(const NameOrIndex& rNameOrIndex);
virtual bool operator==(const SfxPoolItem& rItem) const override; virtual bool operator==(const SfxPoolItem& rItem) const override;

View file

@ -29,7 +29,7 @@ class SVXCORE_DLLPUBLIC XLineColorItem final : public XColorItem
{ {
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XLineColorItem() {} XLineColorItem() : XColorItem(SfxItemType::XLineColorItemType) {}
XLineColorItem(sal_Int32 nIndex, const Color& rTheColor); XLineColorItem(sal_Int32 nIndex, const Color& rTheColor);
XLineColorItem(const OUString& rName, const Color& rTheColor); XLineColorItem(const OUString& rName, const Color& rTheColor);

View file

@ -36,7 +36,7 @@ class SVXCORE_DLLPUBLIC XLineDashItem final : public NameOrIndex
public: public:
static SfxPoolItem* CreateDefault(); static SfxPoolItem* CreateDefault();
XLineDashItem() : NameOrIndex(XATTR_LINEDASH, -1) {} XLineDashItem() : NameOrIndex(XATTR_LINEDASH, -1, SfxItemType::XLineDashItemType) {}
XLineDashItem(const OUString& rName, const XDash& rTheDash); XLineDashItem(const OUString& rName, const XDash& rTheDash);
XLineDashItem(const XDash& rTheDash); XLineDashItem(const XDash& rTheDash);
XLineDashItem(const XLineDashItem& rItem); XLineDashItem(const XLineDashItem& rItem);

View file

@ -44,7 +44,7 @@ namespace
class SampleItem : public NameOrIndex class SampleItem : public NameOrIndex
{ {
public: public:
SampleItem(sal_uInt16 nWhich, const OUString& rName) : NameOrIndex(TypedWhichId<NameOrIndex>(nWhich), rName) {} SampleItem(sal_uInt16 nWhich, const OUString& rName) : NameOrIndex(TypedWhichId<NameOrIndex>(nWhich), rName, SfxItemType::NameOrIndexType) {}
bool operator==(const SfxPoolItem& rCmp) const bool operator==(const SfxPoolItem& rCmp) const
{ {

View file

@ -97,14 +97,14 @@ using namespace ::com::sun::star;
typedef std::map<OUString, OUString> StringMap; typedef std::map<OUString, OUString> StringMap;
NameOrIndex::NameOrIndex(TypedWhichId<NameOrIndex> _nWhich, sal_Int32 nIndex) : NameOrIndex::NameOrIndex(TypedWhichId<NameOrIndex> _nWhich, sal_Int32 nIndex, SfxItemType eItemType) :
SfxStringItem(_nWhich, OUString(), SfxItemType::NameOrIndexType), SfxStringItem(_nWhich, OUString(), eItemType),
m_nPalIndex(nIndex) m_nPalIndex(nIndex)
{ {
} }
NameOrIndex::NameOrIndex(TypedWhichId<NameOrIndex> _nWhich, const OUString& rName) : NameOrIndex::NameOrIndex(TypedWhichId<NameOrIndex> _nWhich, const OUString& rName, SfxItemType eItemType) :
SfxStringItem(_nWhich, rName, SfxItemType::NameOrIndexType), SfxStringItem(_nWhich, rName, eItemType),
m_nPalIndex(-1) m_nPalIndex(-1)
{ {
} }
@ -265,22 +265,22 @@ void NameOrIndex::dumpAsXml(xmlTextWriterPtr pWriter) const
(void)xmlTextWriterEndElement(pWriter); (void)xmlTextWriterEndElement(pWriter);
} }
SfxPoolItem* XColorItem::CreateDefault() { return new XColorItem; } SfxPoolItem* XColorItem::CreateDefault() { return new XColorItem(SfxItemType::XColorItemType); }
XColorItem::XColorItem(TypedWhichId<XColorItem> _nWhich, sal_Int32 nIndex, const Color& rTheColor) : XColorItem::XColorItem(TypedWhichId<XColorItem> _nWhich, sal_Int32 nIndex, const Color& rTheColor, SfxItemType eItemType) :
NameOrIndex(_nWhich, nIndex), NameOrIndex(_nWhich, nIndex, eItemType),
m_aColor(rTheColor) m_aColor(rTheColor)
{ {
} }
XColorItem::XColorItem(TypedWhichId<XColorItem> _nWhich, const OUString& rName, const Color& rTheColor) : XColorItem::XColorItem(TypedWhichId<XColorItem> _nWhich, const OUString& rName, const Color& rTheColor, SfxItemType eItemType) :
NameOrIndex(_nWhich, rName), NameOrIndex(_nWhich, rName, eItemType),
m_aColor(rTheColor) m_aColor(rTheColor)
{ {
} }
XColorItem::XColorItem(TypedWhichId<XColorItem> _nWhich, const Color& rTheColor) XColorItem::XColorItem(TypedWhichId<XColorItem> _nWhich, const Color& rTheColor, SfxItemType eItemType)
: NameOrIndex(_nWhich, OUString()) : NameOrIndex(_nWhich, OUString(), eItemType)
, m_aColor(rTheColor) , m_aColor(rTheColor)
{ {
} }
@ -657,7 +657,7 @@ double XDash::CreateDotDashArray(::std::vector< double >& rDotDashArray, double
SfxPoolItem* XLineDashItem::CreateDefault() {return new XLineDashItem;} SfxPoolItem* XLineDashItem::CreateDefault() {return new XLineDashItem;}
XLineDashItem::XLineDashItem(const OUString& rName, const XDash& rTheDash) : XLineDashItem::XLineDashItem(const OUString& rName, const XDash& rTheDash) :
NameOrIndex(XATTR_LINEDASH, rName), NameOrIndex(XATTR_LINEDASH, rName, SfxItemType::XLineDashItemType),
aDash(rTheDash) aDash(rTheDash)
{ {
} }
@ -669,7 +669,7 @@ XLineDashItem::XLineDashItem(const XLineDashItem& rItem) :
} }
XLineDashItem::XLineDashItem(const XDash& rTheDash) XLineDashItem::XLineDashItem(const XDash& rTheDash)
: NameOrIndex( XATTR_LINEDASH, -1 ), : NameOrIndex( XATTR_LINEDASH, -1, SfxItemType::XLineDashItemType ),
aDash(rTheDash) aDash(rTheDash)
{ {
} }
@ -1020,12 +1020,12 @@ bool XLineWidthItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId )
SfxPoolItem* XLineColorItem::CreateDefault() { return new XLineColorItem; } SfxPoolItem* XLineColorItem::CreateDefault() { return new XLineColorItem; }
XLineColorItem::XLineColorItem(sal_Int32 nIndex, const Color& rTheColor) : XLineColorItem::XLineColorItem(sal_Int32 nIndex, const Color& rTheColor) :
XColorItem(XATTR_LINECOLOR, nIndex, rTheColor) XColorItem(XATTR_LINECOLOR, nIndex, rTheColor, SfxItemType::XLineColorItemType)
{ {
} }
XLineColorItem::XLineColorItem(const OUString& rName, const Color& rTheColor) : XLineColorItem::XLineColorItem(const OUString& rName, const Color& rTheColor) :
XColorItem(XATTR_LINECOLOR, rName, rTheColor) XColorItem(XATTR_LINECOLOR, rName, rTheColor, SfxItemType::XLineColorItemType)
{ {
} }
@ -1115,12 +1115,12 @@ bool XLineColorItem::PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId)
SfxPoolItem* XLineStartItem::CreateDefault() {return new XLineStartItem;} SfxPoolItem* XLineStartItem::CreateDefault() {return new XLineStartItem;}
XLineStartItem::XLineStartItem(sal_Int32 nIndex) XLineStartItem::XLineStartItem(sal_Int32 nIndex)
: NameOrIndex(XATTR_LINESTART, nIndex) : NameOrIndex(XATTR_LINESTART, nIndex, SfxItemType::XLineStartItemType)
{ {
} }
XLineStartItem::XLineStartItem(const OUString& rName, basegfx::B2DPolyPolygon aPolyPolygon) XLineStartItem::XLineStartItem(const OUString& rName, basegfx::B2DPolyPolygon aPolyPolygon)
: NameOrIndex(XATTR_LINESTART, rName), : NameOrIndex(XATTR_LINESTART, rName, SfxItemType::XLineStartItemType),
maPolyPolygon(std::move(aPolyPolygon)) maPolyPolygon(std::move(aPolyPolygon))
{ {
} }
@ -1132,7 +1132,7 @@ XLineStartItem::XLineStartItem(const XLineStartItem& rItem)
} }
XLineStartItem::XLineStartItem(basegfx::B2DPolyPolygon aPolyPolygon) XLineStartItem::XLineStartItem(basegfx::B2DPolyPolygon aPolyPolygon)
: NameOrIndex( XATTR_LINESTART, -1 ), : NameOrIndex( XATTR_LINESTART, -1, SfxItemType::XLineStartItemType ),
maPolyPolygon(std::move(aPolyPolygon)) maPolyPolygon(std::move(aPolyPolygon))
{ {
} }
@ -1418,12 +1418,12 @@ std::unique_ptr<XLineStartItem> XLineStartItem::checkForUniqueItem( SdrModel& rM
SfxPoolItem* XLineEndItem::CreateDefault() {return new XLineEndItem;} SfxPoolItem* XLineEndItem::CreateDefault() {return new XLineEndItem;}
XLineEndItem::XLineEndItem(sal_Int32 nIndex) XLineEndItem::XLineEndItem(sal_Int32 nIndex)
: NameOrIndex(XATTR_LINEEND, nIndex) : NameOrIndex(XATTR_LINEEND, nIndex, SfxItemType::XLineEndItemType)
{ {
} }
XLineEndItem::XLineEndItem(const OUString& rName, basegfx::B2DPolyPolygon aPolyPolygon) XLineEndItem::XLineEndItem(const OUString& rName, basegfx::B2DPolyPolygon aPolyPolygon)
: NameOrIndex(XATTR_LINEEND, rName), : NameOrIndex(XATTR_LINEEND, rName, SfxItemType::XLineEndItemType),
maPolyPolygon(std::move(aPolyPolygon)) maPolyPolygon(std::move(aPolyPolygon))
{ {
} }
@ -1435,7 +1435,7 @@ XLineEndItem::XLineEndItem(const XLineEndItem& rItem)
} }
XLineEndItem::XLineEndItem(basegfx::B2DPolyPolygon aPolyPolygon) XLineEndItem::XLineEndItem(basegfx::B2DPolyPolygon aPolyPolygon)
: NameOrIndex( XATTR_LINEEND, -1 ), : NameOrIndex( XATTR_LINEEND, -1, SfxItemType::XLineEndItemType ),
maPolyPolygon(std::move(aPolyPolygon)) maPolyPolygon(std::move(aPolyPolygon))
{ {
} }
@ -2007,12 +2007,12 @@ boost::property_tree::ptree XFillStyleItem::dumpAsJSON() const
SfxPoolItem* XFillColorItem::CreateDefault() { return new XFillColorItem; } SfxPoolItem* XFillColorItem::CreateDefault() { return new XFillColorItem; }
XFillColorItem::XFillColorItem(sal_Int32 nIndex, const Color& rTheColor) : XFillColorItem::XFillColorItem(sal_Int32 nIndex, const Color& rTheColor) :
XColorItem(XATTR_FILLCOLOR, nIndex, rTheColor) XColorItem(XATTR_FILLCOLOR, nIndex, rTheColor, SfxItemType::XFillColorItemType)
{ {
} }
XFillColorItem::XFillColorItem(const OUString& rName, const Color& rTheColor) : XFillColorItem::XFillColorItem(const OUString& rName, const Color& rTheColor) :
XColorItem(XATTR_FILLCOLOR, rName, rTheColor) XColorItem(XATTR_FILLCOLOR, rName, rTheColor, SfxItemType::XFillColorItemType)
{ {
} }
@ -2177,7 +2177,7 @@ boost::property_tree::ptree XFillColorItem::dumpAsJSON() const
} }
XSecondaryFillColorItem::XSecondaryFillColorItem(const OUString& rName, const Color& rTheColor) : XSecondaryFillColorItem::XSecondaryFillColorItem(const OUString& rName, const Color& rTheColor) :
XColorItem(XATTR_SECONDARYFILLCOLOR, rName, rTheColor) XColorItem(XATTR_SECONDARYFILLCOLOR, rName, rTheColor, SfxItemType::XSecondaryFillColorItemType)
{ {
} }
@ -2202,14 +2202,14 @@ SfxPoolItem* XFillGradientItem::CreateDefault() { return new XFillGradientItem;
XFillGradientItem::XFillGradientItem(sal_Int32 nIndex, XFillGradientItem::XFillGradientItem(sal_Int32 nIndex,
const basegfx::BGradient& rTheGradient) : const basegfx::BGradient& rTheGradient) :
NameOrIndex(XATTR_FILLGRADIENT, nIndex), NameOrIndex(XATTR_FILLGRADIENT, nIndex, SfxItemType::XFillGradientItemType),
m_aGradient(rTheGradient) m_aGradient(rTheGradient)
{ {
} }
XFillGradientItem::XFillGradientItem(const OUString& rName, XFillGradientItem::XFillGradientItem(const OUString& rName,
const basegfx::BGradient& rTheGradient, TypedWhichId<XFillGradientItem> nWhich) const basegfx::BGradient& rTheGradient, TypedWhichId<XFillGradientItem> nWhich)
: NameOrIndex(nWhich, rName) : NameOrIndex(nWhich, rName, SfxItemType::XFillGradientItemType)
, m_aGradient(rTheGradient) , m_aGradient(rTheGradient)
{ {
} }
@ -2221,7 +2221,7 @@ XFillGradientItem::XFillGradientItem(const XFillGradientItem& rItem) :
} }
XFillGradientItem::XFillGradientItem( const basegfx::BGradient& rTheGradient ) XFillGradientItem::XFillGradientItem( const basegfx::BGradient& rTheGradient )
: NameOrIndex( XATTR_FILLGRADIENT, -1 ), : NameOrIndex( XATTR_FILLGRADIENT, -1, SfxItemType::XFillGradientItemType ),
m_aGradient(rTheGradient) m_aGradient(rTheGradient)
{ {
} }
@ -2654,7 +2654,7 @@ SfxPoolItem* XFillHatchItem::CreateDefault() { return new XFillHatchItem; }
XFillHatchItem::XFillHatchItem(const OUString& rName, XFillHatchItem::XFillHatchItem(const OUString& rName,
const XHatch& rTheHatch) : const XHatch& rTheHatch) :
NameOrIndex(XATTR_FILLHATCH, rName), NameOrIndex(XATTR_FILLHATCH, rName, SfxItemType::XFillHatchItemType),
m_aHatch(rTheHatch) m_aHatch(rTheHatch)
{ {
} }
@ -2666,7 +2666,7 @@ XFillHatchItem::XFillHatchItem(const XFillHatchItem& rItem) :
} }
XFillHatchItem::XFillHatchItem(const XHatch& rTheHatch) XFillHatchItem::XFillHatchItem(const XHatch& rTheHatch)
: NameOrIndex( XATTR_FILLHATCH, -1 ), : NameOrIndex( XATTR_FILLHATCH, -1, SfxItemType::XFillHatchItemType ),
m_aHatch(rTheHatch) m_aHatch(rTheHatch)
{ {
} }
@ -3027,7 +3027,7 @@ SfxPoolItem* XFormTextShadowColorItem::CreateDefault() { return new XFormTextSha
XFormTextShadowColorItem::XFormTextShadowColorItem(const OUString& rName, XFormTextShadowColorItem::XFormTextShadowColorItem(const OUString& rName,
const Color& rTheColor) : const Color& rTheColor) :
XColorItem(XATTR_FORMTXTSHDWCOLOR, rName, rTheColor) XColorItem(XATTR_FORMTXTSHDWCOLOR, rName, rTheColor, SfxItemType::XFormTextShadowColorItemType)
{ {
} }

View file

@ -130,7 +130,7 @@ void XOBitmap::Array2Bitmap()
SfxPoolItem* XFillBitmapItem::CreateDefault() { return new XFillBitmapItem; } SfxPoolItem* XFillBitmapItem::CreateDefault() { return new XFillBitmapItem; }
XFillBitmapItem::XFillBitmapItem(const OUString& rName, const GraphicObject& rGraphicObject) XFillBitmapItem::XFillBitmapItem(const OUString& rName, const GraphicObject& rGraphicObject)
: NameOrIndex(XATTR_FILLBITMAP, rName), : NameOrIndex(XATTR_FILLBITMAP, rName, SfxItemType::XFillBitmapItemType),
maGraphicObject(rGraphicObject) maGraphicObject(rGraphicObject)
{ {
} }
@ -142,7 +142,7 @@ XFillBitmapItem::XFillBitmapItem(const XFillBitmapItem& rItem)
} }
XFillBitmapItem::XFillBitmapItem(const GraphicObject& rGraphicObject) XFillBitmapItem::XFillBitmapItem(const GraphicObject& rGraphicObject)
: NameOrIndex(XATTR_FILLBITMAP, -1) : NameOrIndex(XATTR_FILLBITMAP, -1, SfxItemType::XFillBitmapItemType)
, maGraphicObject(rGraphicObject) , maGraphicObject(rGraphicObject)
{ {
} }