diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-23 16:15:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-24 09:19:52 +0200 |
commit | d204dddc9aa1919ef94add3a7dfb40087ccceb4b (patch) | |
tree | 2ad025c514b32f06c60b03024da26bf7ffb4cadc | |
parent | db6f17dc09b49ecbe89cbb99de71c069c029e052 (diff) |
Resolves: tdf#112563 we don't want a human representation of SvxRsidItem
Change-Id: I6a57440b08258ddcbfaa955a62c4963a83193115
Reviewed-on: https://gerrit.libreoffice.org/59515
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | editeng/source/items/textitem.cxx | 12 | ||||
-rw-r--r-- | include/editeng/rsiditem.hxx | 5 |
2 files changed, 17 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 0b971d71911d..de0d985c96bc 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -3016,6 +3016,18 @@ SfxPoolItem* SvxRsidItem::Clone( SfxItemPool * ) const return new SvxRsidItem( *this ); } +bool SvxRsidItem::GetPresentation +( + SfxItemPresentation /*ePres*/, + MapUnit /*eCoreUnit*/, + MapUnit /*ePresUnit*/, + OUString& rText, const IntlWrapper& /*rIntl*/ +) const +{ + rText.clear(); + return false; +} + void SvxRsidItem::dumpAsXml(xmlTextWriterPtr pWriter) const { xmlTextWriterStartElement(pWriter, BAD_CAST("SvxRsidItem")); diff --git a/include/editeng/rsiditem.hxx b/include/editeng/rsiditem.hxx index ab1e23a6c618..4ace56e17e24 100644 --- a/include/editeng/rsiditem.hxx +++ b/include/editeng/rsiditem.hxx @@ -21,6 +21,11 @@ class EDITENG_DLLPUBLIC SvxRsidItem : public SfxUInt32Item public: SvxRsidItem( sal_uInt32 nRsid, sal_uInt16 nId ) : SfxUInt32Item( nId, nRsid ) {} + virtual bool GetPresentation( SfxItemPresentation ePres, + MapUnit eCoreMetric, + MapUnit ePresMetric, + OUString &rText, const IntlWrapper& ) const override; + virtual SfxPoolItem* Clone( SfxItemPool* pPool = nullptr ) const override; virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override; |