diff options
author | Noel Grandin <noel@peralex.com> | 2016-09-21 10:37:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-21 09:24:55 +0000 |
commit | 51c6e9153de507f37d1474b31f557265cb304c06 (patch) | |
tree | 6d02d302fbee51a934c9fb8235cf4b410fde5d53 /svl | |
parent | 25e4708c1f49986f3f082beb2e940aa2d7fb4d81 (diff) |
convert SfxItemPresentation to scoped enum
Change-Id: Ibf605706a9f804ab509ac4f92f5f88fcf3daebc1
Reviewed-on: https://gerrit.libreoffice.org/29131
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itempool.cxx | 2 | ||||
-rw-r--r-- | svl/source/items/poolitem.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index 40fde3da9dae..330d2f77b113 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -469,7 +469,7 @@ bool SfxItemPool::GetPresentation ) const { return rItem.GetPresentation( - SFX_ITEM_PRESENTATION_COMPLETE, GetMetric(rItem.Which()), eMetric, rText, pIntlWrapper ); + SfxItemPresentation::Complete, GetMetric(rItem.Which()), eMetric, rText, pIntlWrapper ); } diff --git a/svl/source/items/poolitem.cxx b/svl/source/items/poolitem.cxx index 93fe79e416cc..f11a2904672a 100644 --- a/svl/source/items/poolitem.cxx +++ b/svl/source/items/poolitem.cxx @@ -154,12 +154,12 @@ SvStream& SfxPoolItem::Store(SvStream &rStream, sal_uInt16 ) const * The corresponding unit of measure is passed as 'ePresentationMetric'. * * - * @return SfxItemPresentation SFX_ITEM_PRESENTATION_NAMELESS + * @return SfxItemPresentation SfxItemPresentation::Nameless * A textual representation (if applicable * with a unit of measure) could be created, * but it doesn't contain any semantic meaning * - * SFX_ITEM_PRESENTATION_COMPLETE + * SfxItemPresentation::Complete * A complete textual representation could be * created with semantic meaning (if applicable * with unit of measure) @@ -167,10 +167,10 @@ SvStream& SfxPoolItem::Store(SvStream &rStream, sal_uInt16 ) const * Example: * * pSvxFontItem->GetPresentation( SFX_PRESENTATION_NAMELESS, ... ) - * "12pt" with return SFX_ITEM_PRESENTATION_NAMELESS + * "12pt" with return SfxItemPresentation::Nameless * * pSvxColorItem->GetPresentation( SFX_PRESENTATION_COMPLETE, ... ) - * "red" with return SFX_ITEM_PRESENTATION_NAMELESS + * "red" with return SfxItemPresentation::Nameless * Because the SvxColorItem does not know which color it represents * it cannot provide a name, which is communicated by the return value * @@ -195,7 +195,7 @@ void SfxPoolItem::dumpAsXml(xmlTextWriterPtr pWriter) const xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); xmlTextWriterWriteAttribute(pWriter, BAD_CAST("typeName"), BAD_CAST(typeid(*this).name())); OUString rText; - if (GetPresentation( SFX_ITEM_PRESENTATION_COMPLETE, MAP_100TH_MM, MAP_100TH_MM, rText)) + if (GetPresentation( SfxItemPresentation::Complete, MAP_100TH_MM, MAP_100TH_MM, rText)) xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(rText.getStr())); xmlTextWriterEndElement(pWriter); } |