summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/cenumitm.hxx2
-rw-r--r--include/svl/cintitem.hxx16
-rw-r--r--include/svl/custritm.hxx7
-rw-r--r--include/svl/eitem.hxx9
-rw-r--r--include/svl/flagitem.hxx3
-rw-r--r--include/svl/intitem.hxx20
-rw-r--r--include/svl/macitem.hxx2
-rw-r--r--include/svl/metitem.hxx3
-rw-r--r--include/svl/poolitem.hxx318
-rw-r--r--include/svl/setitem.hxx6
-rw-r--r--include/svl/stritem.hxx7
-rw-r--r--include/svl/visitem.hxx2
12 files changed, 360 insertions, 35 deletions
diff --git a/include/svl/cenumitm.hxx b/include/svl/cenumitm.hxx
index 9428e095ce29..292648d0f572 100644
--- a/include/svl/cenumitm.hxx
+++ b/include/svl/cenumitm.hxx
@@ -26,7 +26,7 @@
class SVL_DLLPUBLIC SfxEnumItemInterface: public SfxPoolItem
{
protected:
- explicit SfxEnumItemInterface(sal_uInt16 which): SfxPoolItem(which) {}
+ explicit SfxEnumItemInterface(sal_uInt16 which, SfxItemType eItemType): SfxPoolItem(which, eItemType) {}
SfxEnumItemInterface(const SfxEnumItemInterface &) = default;
diff --git a/include/svl/cintitem.hxx b/include/svl/cintitem.hxx
index bde59c39906b..0b3da790d1ed 100644
--- a/include/svl/cintitem.hxx
+++ b/include/svl/cintitem.hxx
@@ -30,8 +30,8 @@ class SVL_DLLPUBLIC CntByteItem: public SfxPoolItem
public:
- CntByteItem(sal_uInt16 which, sal_uInt8 nTheValue):
- SfxPoolItem(which), m_nValue(nTheValue) {}
+ CntByteItem(sal_uInt16 which, sal_uInt8 nTheValue, SfxItemType eItemType = SfxItemType::CntByteItemType):
+ SfxPoolItem(which, eItemType), m_nValue(nTheValue) {}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
@@ -66,8 +66,8 @@ class SVL_DLLPUBLIC CntUInt16Item: public SfxPoolItem
public:
- CntUInt16Item(sal_uInt16 which, sal_uInt16 nTheValue):
- SfxPoolItem(which), m_nValue(nTheValue)
+ CntUInt16Item(sal_uInt16 which, sal_uInt16 nTheValue, SfxItemType eItemType = SfxItemType::CntUInt16ItemType):
+ SfxPoolItem(which, eItemType), m_nValue(nTheValue)
{}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
@@ -103,8 +103,8 @@ class SVL_DLLPUBLIC CntInt32Item: public SfxPoolItem
public:
- CntInt32Item(sal_uInt16 which, sal_Int32 nTheValue):
- SfxPoolItem(which), m_nValue(nTheValue)
+ CntInt32Item(sal_uInt16 which, sal_Int32 nTheValue, SfxItemType eItemType = SfxItemType::CntInt32ItemType):
+ SfxPoolItem(which, eItemType), m_nValue(nTheValue)
{}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
@@ -140,8 +140,8 @@ class SVL_DLLPUBLIC CntUInt32Item: public SfxPoolItem
public:
- CntUInt32Item(sal_uInt16 which, sal_uInt32 nTheValue):
- SfxPoolItem(which), m_nValue(nTheValue)
+ CntUInt32Item(sal_uInt16 which, sal_uInt32 nTheValue, SfxItemType eItemType = SfxItemType::CntUInt32ItemType):
+ SfxPoolItem(which, eItemType), m_nValue(nTheValue)
{}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
diff --git a/include/svl/custritm.hxx b/include/svl/custritm.hxx
index 3159c41dfc96..0251df2ca182 100644
--- a/include/svl/custritm.hxx
+++ b/include/svl/custritm.hxx
@@ -31,11 +31,12 @@ class SVL_DLLPUBLIC CntUnencodedStringItem: public SfxPoolItem
public:
- CntUnencodedStringItem(sal_uInt16 which): SfxPoolItem(which)
+ CntUnencodedStringItem(sal_uInt16 which, SfxItemType eItemType = SfxItemType::CntUnencodedStringItemType)
+ : SfxPoolItem(which, eItemType)
{}
- CntUnencodedStringItem(sal_uInt16 which, OUString aTheValue):
- SfxPoolItem(which), m_aValue(std::move(aTheValue))
+ CntUnencodedStringItem(sal_uInt16 which, OUString aTheValue, SfxItemType eItemType = SfxItemType::CntUnencodedStringItemType):
+ SfxPoolItem(which, eItemType), m_aValue(std::move(aTheValue))
{}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
diff --git a/include/svl/eitem.hxx b/include/svl/eitem.hxx
index 114e451c061d..650a43204821 100644
--- a/include/svl/eitem.hxx
+++ b/include/svl/eitem.hxx
@@ -30,8 +30,8 @@ class SAL_DLLPUBLIC_RTTI SfxEnumItem : public SfxEnumItemInterface
EnumT m_nValue;
protected:
- explicit SfxEnumItem(sal_uInt16 const nWhich, EnumT const nValue)
- : SfxEnumItemInterface(nWhich)
+ explicit SfxEnumItem(sal_uInt16 const nWhich, SfxItemType eItemType, EnumT const nValue)
+ : SfxEnumItemInterface(nWhich, eItemType)
, m_nValue(nValue)
{ }
@@ -72,8 +72,9 @@ class SVL_DLLPUBLIC SfxBoolItem
public:
static SfxPoolItem* CreateDefault();
- explicit SfxBoolItem(sal_uInt16 const nWhich = 0, bool const bValue = false)
- : SfxPoolItem(nWhich)
+ explicit SfxBoolItem(sal_uInt16 const nWhich = 0, bool const bValue = false,
+ SfxItemType eItemType = SfxItemType::SfxBoolItemType)
+ : SfxPoolItem(nWhich, eItemType)
, m_bValue(bValue)
{ }
diff --git a/include/svl/flagitem.hxx b/include/svl/flagitem.hxx
index 70b968f2c95c..76226cb1aa80 100644
--- a/include/svl/flagitem.hxx
+++ b/include/svl/flagitem.hxx
@@ -31,7 +31,8 @@ class SVL_DLLPUBLIC SfxFlagItem: public SfxPoolItem
public:
- explicit SfxFlagItem( sal_uInt16 nWhich = 0, sal_uInt16 nValue = 0 );
+ explicit SfxFlagItem( sal_uInt16 nWhich = 0, sal_uInt16 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxFlagItemType );
virtual sal_uInt8 GetFlagCount() const;
diff --git a/include/svl/intitem.hxx b/include/svl/intitem.hxx
index 92999568b7f2..f189388e748e 100644
--- a/include/svl/intitem.hxx
+++ b/include/svl/intitem.hxx
@@ -30,8 +30,9 @@ class SVL_DLLPUBLIC SfxByteItem: public CntByteItem
public:
static SfxPoolItem* CreateDefault();
- explicit SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0):
- CntByteItem(which, nValue) {}
+ explicit SfxByteItem(sal_uInt16 which = 0, sal_uInt8 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxByteItemType):
+ CntByteItem(which, nValue, eItemType) {}
virtual SfxByteItem* Clone(SfxItemPool * = nullptr) const override
{ return new SfxByteItem(*this); }
@@ -44,8 +45,9 @@ class SVL_DLLPUBLIC SfxInt16Item: public SfxPoolItem
public:
static SfxPoolItem* CreateDefault();
- explicit SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0):
- SfxPoolItem(which), m_nValue(nTheValue)
+ explicit SfxInt16Item(sal_uInt16 which = 0, sal_Int16 nTheValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxInt16ItemType):
+ SfxPoolItem(which, eItemType), m_nValue(nTheValue)
{}
virtual bool operator ==(const SfxPoolItem & rItem) const override;
@@ -83,8 +85,9 @@ class SVL_DLLPUBLIC SfxUInt16Item: public CntUInt16Item
public:
static SfxPoolItem* CreateDefault();
- explicit SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0):
- CntUInt16Item(which, nValue) {}
+ explicit SfxUInt16Item(sal_uInt16 which = 0, sal_uInt16 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxUInt16ItemType):
+ CntUInt16Item(which, nValue, eItemType) {}
virtual SfxUInt16Item* Clone(SfxItemPool * = nullptr) const override
{ return new SfxUInt16Item(*this); }
@@ -99,8 +102,9 @@ class SVL_DLLPUBLIC SfxInt32Item: public CntInt32Item
public:
static SfxPoolItem* CreateDefault();
- explicit SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0):
- CntInt32Item(which, nValue) {}
+ explicit SfxInt32Item(sal_uInt16 which = 0, sal_Int32 nValue = 0,
+ SfxItemType eItemType = SfxItemType::SfxInt32ItemType):
+ CntInt32Item(which, nValue, eItemType) {}
virtual SfxInt32Item* Clone(SfxItemPool * = nullptr) const override
{ return new SfxInt32Item(*this); }
diff --git a/include/svl/macitem.hxx b/include/svl/macitem.hxx
index 1c2a4cf301b7..412f5cec8ece 100644
--- a/include/svl/macitem.hxx
+++ b/include/svl/macitem.hxx
@@ -135,7 +135,7 @@ private:
};
inline SvxMacroItem::SvxMacroItem( const sal_uInt16 nId )
- : SfxPoolItem( nId )
+ : SfxPoolItem( nId, SfxItemType::SvxMacroItemType )
{}
inline bool SvxMacroItem::HasMacro( SvMacroItemId nEvent ) const
diff --git a/include/svl/metitem.hxx b/include/svl/metitem.hxx
index 30cf75b7f864..125ee7c3dc1d 100644
--- a/include/svl/metitem.hxx
+++ b/include/svl/metitem.hxx
@@ -25,7 +25,8 @@
class SVL_DLLPUBLIC SfxMetricItem: public SfxInt32Item
{
public:
- explicit SfxMetricItem( sal_uInt16 nWhich, sal_Int32 nValue );
+ explicit SfxMetricItem( sal_uInt16 nWhich, sal_Int32 nValue,
+ SfxItemType eItemType = SfxItemType::SfxMetricItemType );
virtual void ScaleMetrics( tools::Long lMult, tools::Long lDiv ) override;
virtual bool HasMetrics() const override;
diff --git a/include/svl/poolitem.hxx b/include/svl/poolitem.hxx
index af993096e655..22eee419ba49 100644
--- a/include/svl/poolitem.hxx
+++ b/include/svl/poolitem.hxx
@@ -97,6 +97,316 @@ enum class SfxItemState {
SET = 0x0040
};
+enum class SfxItemType : sal_uInt16 {
+ SfxPoolItemType,
+ AffineMatrixItemType,
+ CntByteItemType,
+ CntInt32ItemType,
+ CntUInt16ItemType,
+ CntUInt32ItemType,
+ CntUnencodedStringItemType,
+ DatabaseMapItemType,
+ DbuTypeCollectionItemType,
+ DriverPoolingSettingsItemType,
+ InvalidOrDisabledItemType,
+ MediaItemType,
+ NameOrIndexType,
+ OStringListItemType,
+ OfaPtrItemType,
+ OfaXColorListItemType,
+ OptionalBoolItemType,
+ RectangleAlignmentType,
+ SbxItemType,
+ ScCondFormatItemType,
+ ScCondFormatDlgItemType,
+ ScConsolidateItemType,
+ ScInputStatusItemType,
+ ScMergeAttrType,
+ ScPageHFItemType,
+ ScPageScaleToItemType,
+ ScPivotItemType,
+ ScProtectionAttrType,
+ ScQueryItemType,
+ ScSolveItemType,
+ ScSortItemType,
+ ScSubTotalItemType,
+ ScTabOpItemType,
+ ScTpCalcItemType,
+ ScTpDefaultsItemType,
+ ScTpFormulaItemType,
+ ScTpPrintItemType,
+ ScTpViewItemType,
+ ScUserListItemType,
+ ScViewObjectModeItemType,
+ SdOptionsMiscItemType,
+ SdOptionsPrintItemType,
+ SdOptionsSnapItemType,
+ SdOptionsLayoutItemType,
+ SdrAngleItemType,
+ SdrCaptionEscDirItemType,
+ SdrCaptionTypeItem,
+ SdrCaptionTypeItemType,
+ SdrCircKindItemType,
+ SdrCustomShapeGeometryItemType,
+ SdrEdgeKindItemType,
+ SdrFractionItemType,
+ SdrGrafModeItem_Base,
+ SdrLayerIdItemType,
+ SdrLayerNameItemType,
+ SdrMeasureFormatStringItemType,
+ SdrMeasureKindItemType,
+ SdrMeasureScaleItemType,
+ SdrMeasureTextAutoAngleItemType,
+ SdrMeasureTextAutoAngleViewItemType,
+ SdrMeasureTextHPosItemType,
+ SdrMeasureTextVPosItemType,
+ SdrMeasureUnitItemType,
+ SdrResizeXAllItemType,
+ SdrResizeXOneItemType,
+ SdrResizeYAllItemType,
+ SdrResizeYOneItemType,
+ SdrScaleItemType,
+ SdrTextAniDirectionItemType,
+ SdrTextAniKindItemType,
+ SdrTextFitToSizeTypeItemType,
+ SdrTextHorzAdjustType,
+ SdrTextVertAdjustType,
+ SdrYesNoItemType,
+ SfxBoolItemType,
+ SfxByteItemType,
+ SfxDocumentInfoItemType,
+ SfxEnumItemInterface,
+ SfxEventNamesItemType,
+ SfxFlagItemType,
+ SfxFrameItemType,
+ SfxGlobalNameItemType,
+ SfxGrabBagItemType,
+ SfxHyphenRegionItemType,
+ SfxImageItemType,
+ SfxInt16ItemType,
+ SfxInt32ItemType,
+ SfxInt64ItemType,
+ SfxIntegerListItemType,
+ SfxLinkItemType,
+ SfxLockBytesItemType,
+ SfxMacroInfoItemType,
+ SfxMetricItemType,
+ SfxObjectItemType,
+ SfxObjectShellItemType,
+ SfxPointItemType,
+ SfxRangeItemType,
+ SfxRectangleItemType,
+ SfxRegionItemType,
+ SfxSetItemType,
+ SfxStringItemType,
+ SfxStringListItemType,
+ SfxTemplateItemType,
+ SfxUInt16ItemType,
+ SfxUnoAnyItemType,
+ SfxUnoFrameItemType,
+ SfxViewFrameItemType,
+ SfxVisibilityItemType,
+ SfxVoidItemType,
+ SfxWatermarkItemType,
+ SfxZoomItemType,
+ SvXMLAttrContainerItemType,
+ SvxAdjustItemType,
+ SvxAutoKernItemType,
+ SvxB3DVectorItemType,
+ SvxBitmapListItemType,
+ SvxBlinkItemType,
+ SvxBoxInfoItemType,
+ SvxBoxItemType,
+ SvxBrushItemType,
+ SvxBulletItemType,
+ SvxCaseMapItemType,
+ SvxCharHiddenItemType,
+ SvxCharReliefItemType,
+ SvxCharScaleWidthItem,
+ SvxChartColorTableItemType,
+ SvxChartIndicateItemType,
+ SvxChartKindErrorItemType,
+ SvxChartRegressItemType,
+ SvxChartTextOrderItemType,
+ SvxClipboardFormatItemType,
+ SvxColorItemType,
+ SvxColorListItemType,
+ SvxColumnItemType,
+ SvxContourItemType,
+ SvxCrossedOutItemType,
+ SvxDashListItemType,
+ SvxDoubleItemType,
+ SvxEmphasisMarkItemType,
+ SvxEscapementItemType,
+ SvxFieldItemType,
+ SvxFirstLineIndentItemType,
+ SvxFontHeightItemType,
+ SvxFontItemType,
+ SvxFontListItemType,
+ SvxForbiddenRuleItemType,
+ SvxFormatBreakItemType,
+ SvxFrameDirectionItemType,
+ SvxGalleryItemType,
+ SvxGradientListItemType,
+ SvxGraphicItemType,
+ SvxGrfCrop,
+ SvxGrfCropType,
+ SvxGridItem,
+ SvxGridItemType,
+ SvxGutterLeftMarginItemType,
+ SvxGutterRightMarginItemType,
+ SvxHangingPunctuationItemType,
+ SvxHatchListItemType,
+ SvxHorJustifyItemType,
+ SvxHyperlinkItemType,
+ SvxHyphenZoneItem,
+ SvxHyphenZoneItemType,
+ SvxJustifyMethodItemType,
+ SvxKerningItemType,
+ SvxLRSpaceItemType,
+ SvxLanguageItemType,
+ SvxLeftMarginItemType,
+ SvxLineEndListItemType,
+ SvxLineItemType,
+ SvxLineSpacingItemType,
+ SvxLongLRSpaceItemType,
+ SvxLongULSpaceItemType,
+ SvxMacroItemType,
+ SvxMarginItemType,
+ SvxNoHyphenItemType,
+ SvxNumBulletItemType,
+ SvxNumberInfoItemType,
+ SvxObjectItemType,
+ SvxOrientationItemType,
+ SvxOrphansItemType,
+ SvxPageItemType,
+ SvxPagePosSizeItemType,
+ SvxParaGridItemType,
+ SvxParaVertAlignItemType,
+ SvxPatternListItemType,
+ SvxPostureItemType,
+ SvxProtectItemType,
+ SvxRightMarginItemType,
+ SvxRotateModeItemType,
+ SvxScriptSetItemType,
+ SvxScriptSpaceItemType,
+ SvxSearchItemType,
+ SvxShadowItemType,
+ SvxShadowedItemType,
+ SvxSizeItem ,
+ SvxSizeItemType,
+ SvxSmartTagItemType,
+ SvxTabStopItemType,
+ SvxTextLeftMarginItemType,
+ SvxTextLineItemType,
+ SvxTextRotateItemType,
+ SvxTwoLinesItemType,
+ SvxULSpaceItemType,
+ SvxVerJustifyItemType,
+ SvxWeightItemType,
+ SvxWidowsItemType,
+ SvxWordLineItemType,
+ SvxWritingModeItemType,
+ SwAddPrinterItemType,
+ SwCondCollItemType,
+ SwCropGrfType,
+ SwDocDisplayItemType,
+ SwDrawModeGrf_BaseType,
+ SwElemItemType,
+ SwEnvItemType,
+ SwFltAnchorType,
+ SwFltBookmarkType,
+ SwFltRDFMarkType,
+ SwFltRedlineType,
+ SwFltTOXType,
+ SwFmtAidsAutoComplItemType,
+ SwFormatAnchorType,
+ SwFormatAutoFormatType,
+ SwFormatChainType,
+ SwFormatCharFormatType,
+ SwFormatColType,
+ SwFormatContentControlType,
+ SwFormatContentType,
+ SwFormatDropType,
+ SwFormatFieldType,
+ SwFormatFillOrderType,
+ SwFormatFlyCntType,
+ SwFormatFooterType,
+ SwFormatFootnoteEndAtTextEndType,
+ SwFormatFootnoteType,
+ SwFormatHeaderType,
+ SwFormatHoriOrientType,
+ SwFormatINetFormatType,
+ SwFormatLineNumberType,
+ SwFormatLinebreakType,
+ SwFormatMetaType,
+ SwFormatPageDescType,
+ SwFormatRefMarkType,
+ SwFormatRubyType,
+ SwFormatSurroundType,
+ SwFormatURLType,
+ SwFormatVertOrientType,
+ SwFormatWrapInfluenceOnOjPosType,
+ SwGammaGrfType,
+ SwInvertGrfType,
+ SwLabItemType,
+ SwMirrorGrfType,
+ SwMsgPoolItemType,
+ SwPaMItemType,
+ SwPageFootnoteInfoItemType,
+ SwPtrItemType,
+ SwRotationGrfType,
+ SwShadowCursorItemType,
+ SwTOXMarkType,
+ SwTableBoxValueType,
+ SwTableFormulaType,
+ SwTextGridItemType,
+ SwTransparencyGrfType,
+ SwUINumRuleItemType,
+ SwWrtShellItemType,
+ XFillAttrSetItemType,
+ XFillBackgroundItemType,
+ XFillBmpPosItemType,
+ XFillBmpPosOffsetXItemType,
+ XFillBmpPosOffsetYItemType,
+ XFillBmpSizeLogItemType,
+ XFillBmpSizeXItemType,
+ XFillBmpSizeYItemType,
+ XFillBmpStretchItemType,
+ XFillBmpTileItemType,
+ XFillBmpTileOffsetXItemType,
+ XFillBmpTileOffsetYItemType,
+ XFillStyleItemType,
+ XFillTransparenceItemType,
+ XFillUseSlideBackgroundItemType,
+ XFormTextAdjustItemType,
+ XFormTextDistanceItemType,
+ XFormTextHideFormItemType,
+ XFormTextMirrorItem,
+ XFormTextOutlineItemType,
+ XFormTextShadowItemType,
+ XFormTextShadowTranspItemType,
+ XFormTextShadowXValItemType,
+ XFormTextShadowYValItemType,
+ XFormTextStartItemType,
+ XFormTextStyleItemType,
+ XGradientStepCountItemType,
+ XLineAttrSetItemType,
+ XLineCapItemType,
+ XLineEndCenterItemType,
+ XLineEndWidthItemType,
+ XLineJointItemType,
+ XLineStartCenterItem,
+ XLineStartWidthItemType,
+ XLineStyleItemType,
+ XLineTransparenceItemType,
+ XLineWidthItemType
+#ifdef DBG_UTIL
+ , SwTestItemType
+#endif
+};
+
+
#ifdef DBG_UTIL
SVL_DLLPUBLIC size_t getAllocatedSfxPoolItemCount();
SVL_DLLPUBLIC size_t getUsedSfxPoolItemCount();
@@ -119,6 +429,7 @@ class SVL_DLLPUBLIC SfxPoolItem
mutable sal_uInt32 m_nRefCount;
sal_uInt16 m_nWhich;
+ SfxItemType m_eItemType;
#ifdef DBG_UTIL
// for debugging add a serial number, will be set in the constructor
@@ -193,9 +504,10 @@ private:
}
protected:
- explicit SfxPoolItem( sal_uInt16 nWhich = 0 );
+
+ explicit SfxPoolItem( sal_uInt16 nWhich, SfxItemType );
SfxPoolItem( const SfxPoolItem& rCopy)
- : SfxPoolItem(rCopy.m_nWhich) {}
+ : SfxPoolItem(rCopy.m_nWhich, rCopy.m_eItemType) {}
public:
virtual ~SfxPoolItem();
@@ -207,6 +519,8 @@ public:
m_nWhich = nId;
}
sal_uInt16 Which() const { return m_nWhich; }
+ SfxItemType ItemType() const { return m_eItemType;}
+
// StaticWhichCast asserts if the TypedWhichId is not matching its type, otherwise it returns a reference.
// You can use StaticWhichCast when you are sure about the type at compile time -- like a static_cast.
template<class T> T& StaticWhichCast(TypedWhichId<T> nId)
diff --git a/include/svl/setitem.hxx b/include/svl/setitem.hxx
index 69ebea4b1d23..6468037870be 100644
--- a/include/svl/setitem.hxx
+++ b/include/svl/setitem.hxx
@@ -31,8 +31,10 @@ class SVL_DLLPUBLIC SfxSetItem : public SfxPoolItem
SfxSetItem& operator=(const SfxSetItem&) = delete;
public:
- SfxSetItem(sal_uInt16 nWhich, SfxItemSet&& pSet);
- SfxSetItem(sal_uInt16 nWhich, const SfxItemSet& rSet);
+ SfxSetItem(sal_uInt16 nWhich, SfxItemSet&& pSet,
+ SfxItemType eItemType = SfxItemType::SfxSetItemType);
+ SfxSetItem(sal_uInt16 nWhich, const SfxItemSet& rSet,
+ SfxItemType eItemType = SfxItemType::SfxSetItemType);
SfxSetItem(const SfxSetItem&, SfxItemPool* pPool = nullptr);
virtual bool operator==(const SfxPoolItem&) const override;
diff --git a/include/svl/stritem.hxx b/include/svl/stritem.hxx
index fe3695f7947b..1b788c05bdf5 100644
--- a/include/svl/stritem.hxx
+++ b/include/svl/stritem.hxx
@@ -29,10 +29,11 @@ class SVL_DLLPUBLIC SfxStringItem: public CntUnencodedStringItem
public:
static SfxPoolItem* CreateDefault();
- SfxStringItem(sal_uInt16 which = 0): CntUnencodedStringItem(which) {}
+ SfxStringItem(sal_uInt16 which = 0, SfxItemType eItemType = SfxItemType::SfxStringItemType)
+ : CntUnencodedStringItem(which, eItemType) {}
- SfxStringItem(sal_uInt16 which, const OUString & rValue):
- CntUnencodedStringItem(which, rValue) {}
+ SfxStringItem(sal_uInt16 which, const OUString & rValue, SfxItemType eItemType = SfxItemType::SfxStringItemType):
+ CntUnencodedStringItem(which, rValue, eItemType) {}
virtual SfxStringItem* Clone(SfxItemPool * = nullptr) const override;
diff --git a/include/svl/visitem.hxx b/include/svl/visitem.hxx
index 4ae5cdd550c1..8a458bbf2f6c 100644
--- a/include/svl/visitem.hxx
+++ b/include/svl/visitem.hxx
@@ -31,7 +31,7 @@ class SVL_DLLPUBLIC SfxVisibilityItem final : public SfxPoolItem
public:
explicit SfxVisibilityItem(sal_uInt16 which, bool bVisible):
- SfxPoolItem(which)
+ SfxPoolItem(which, SfxItemType::SfxVisibilityItemType)
{
m_nValue.bVisible = bVisible;
}