diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-09-10 22:15:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-11 09:09:35 +0200 |
commit | e83201a5fcfa7470cdad76c93c497e71b1caa7f4 (patch) | |
tree | 7e242be8e4d140b306148df1e166da22233a3206 /sd/source | |
parent | 51f4691e7f4f3bceac1d5ec9cbbf37de7e71e471 (diff) |
convert IMAP_OBJ to scoped enum
Change-Id: Id265c098a173b2daf581568779d99c7574f067c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102406
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 86853af8e241..406fbf2eb1d1 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -1699,7 +1699,7 @@ bool HtmlExport::CreateHtmlForPresPages() for (sal_uInt16 nArea = 0; nArea < nAreaCount; nArea++) { IMapObject* pArea = rIMap.GetIMapObject(nArea); - sal_uInt16 nType = pArea->GetType(); + IMapObjectType nType = pArea->GetType(); OUString aURL( pArea->GetURL() ); // if necessary, convert page and object names into the @@ -1723,7 +1723,7 @@ bool HtmlExport::CreateHtmlForPresPages() switch(nType) { - case IMAP_OBJ_RECTANGLE: + case IMapObjectType::Rectangle: { ::tools::Rectangle aArea(static_cast<IMapRectangleObject*>(pArea)-> GetRectangle(false)); @@ -1740,7 +1740,7 @@ bool HtmlExport::CreateHtmlForPresPages() } break; - case IMAP_OBJ_CIRCLE: + case IMapObjectType::Circle: { Point aCenter(static_cast<IMapCircleObject*>(pArea)-> GetCenter(false)); @@ -1758,7 +1758,7 @@ bool HtmlExport::CreateHtmlForPresPages() } break; - case IMAP_OBJ_POLYGON: + case IMapObjectType::Polygon: { tools::Polygon aArea(static_cast<IMapPolygonObject*>(pArea)->GetPolygon(false)); aStr.append(CreateHTMLPolygonArea(::basegfx::B2DPolyPolygon(aArea.getB2DPolygon()), @@ -1770,7 +1770,7 @@ bool HtmlExport::CreateHtmlForPresPages() default: { - SAL_INFO("sd", "unknown IMAP_OBJ_type"); + SAL_INFO("sd", "unknown IMapObjectType"); } break; } |