summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-08-23 16:15:58 +0100
committerAndras Timar <andras.timar@collabora.com>2018-08-29 11:37:19 +0200
commitaf5b15abe1e884e097aaab159eab3127f3481e33 (patch)
tree237238cd0db20956ab1df9d0093a2bebf7a50855
parent9fa350ea004753e76a60c88ed0a2174145468e35 (diff)
Resolves: tdf#112563 we don't want a human representation of SvxRsidItem
Change-Id: I6a57440b08258ddcbfaa955a62c4963a83193115 Reviewed-on: https://gerrit.libreoffice.org/59516 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> (cherry picked from commit bd64800ef579b5d4653ee3dfb90c45874a15a9fa)
-rw-r--r--editeng/source/items/textitem.cxx12
-rw-r--r--include/editeng/rsiditem.hxx5
2 files changed, 17 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index e9ec28a812ec..84c86baa2989 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -3106,6 +3106,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;