diff options
Diffstat (limited to 'include/editeng/fhgtitem.hxx')
-rw-r--r-- | include/editeng/fhgtitem.hxx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/include/editeng/fhgtitem.hxx b/include/editeng/fhgtitem.hxx index 686eed994ff0..5e67a71f0676 100644 --- a/include/editeng/fhgtitem.hxx +++ b/include/editeng/fhgtitem.hxx @@ -41,6 +41,11 @@ class EDITENG_DLLPUBLIC SvxFontHeightItem : public SfxPoolItem sal_uInt32 nHeight; sal_uInt16 nProp; // default 100% MapUnit ePropUnit; // Percent, Twip, ... + +private: + friend void Create_legacy_direct_set(SvxFontHeightItem& rItem, sal_uInt32 nH, sal_uInt16 nP, MapUnit eP); + void legacy_direct_set(sal_uInt32 nH, sal_uInt16 nP, MapUnit eP) { nHeight = nH; nProp = nP; ePropUnit = eP; } + public: static SfxPoolItem* CreateDefault(); @@ -58,22 +63,9 @@ public: OUString &rText, const IntlWrapper& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; - virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override; - virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion) const override; - virtual sal_uInt16 GetVersion( sal_uInt16 nItemVersion) const override; virtual void ScaleMetrics( long nMult, long nDiv ) override; virtual bool HasMetrics() const override; - SvxFontHeightItem& operator=(const SvxFontHeightItem& rSize) - { - DBG_ASSERT( GetRefCount() == 0, "SetValue() with pooled item" ); - nHeight = rSize.nHeight; - nProp = rSize.nProp; - ePropUnit = rSize.ePropUnit; - return *this; - } - SvxFontHeightItem(SvxFontHeightItem const &) = default; // SfxPoolItem copy function dichotomy - void SetHeight( sal_uInt32 nNewHeight, const sal_uInt16 nNewProp = 100, MapUnit eUnit = MapUnit::MapRelative ); |