summaryrefslogtreecommitdiff
path: root/sw/inc/fesh.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-10 15:03:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-13 08:17:42 +0200
commitb5c2f9dee910d26a07d3f796c882e6292ef5e8db (patch)
tree1ec38e7c6f56f7bd6ba8dbe7a96b7e2c6682d823 /sw/inc/fesh.hxx
parente14aab54bdfec517aabea2c7afb5b36bd6ebc36b (diff)
convert CurRectType to scoped enum
and drop read-only enumerators RECT_OUTTABSECTION_PRT RECT_HEADERFOOTER_PRT Change-Id: I2d7d159cf5f1a2022c015e37df4aa71cae1e266c
Diffstat (limited to 'sw/inc/fesh.hxx')
-rw-r--r--sw/inc/fesh.hxx27
1 files changed, 12 insertions, 15 deletions
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 4b5af6012089..d3f2db36c79d 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -135,22 +135,19 @@ enum ObjCntType
};
//For GetAnyCurRect
-enum CurRectType
+enum class CurRectType
{
- RECT_PAGE, ///< Rect of current page.
- RECT_PAGE_CALC, ///< ... page will be formatted if required.
- RECT_PAGE_PRT, ///< Rect of current PrtArea of page.
- RECT_FRM, ///< Rect of current frame.
- RECT_FLY_EMBEDDED, ///< Rect of current FlyFrame.
- RECT_FLY_PRT_EMBEDDED, ///< Rect of PrtArea of FlyFrame
- RECT_SECTION, ///< Rect of current section.
- RECT_OUTTABSECTION, ///< Rect of current section but outside of table.
- RECT_SECTION_PRT, ///< Rect of current PrtArea of section.
- RECT_OUTTABSECTION_PRT, ///< Rect of current PrtArea of section but outside table.
- RECT_HEADERFOOTER, ///< Rect of current header/footer
- RECT_HEADERFOOTER_PRT, ///< Rect of PrtArea of current headers/footers
-
- RECT_PAGES_AREA ///< Rect covering the pages area
+ Page, ///< Rect of current page.
+ PageCalc, ///< ... page will be formatted if required.
+ PagePrt, ///< Rect of current PrtArea of page.
+ Frame, ///< Rect of current frame.
+ FlyEmbedded, ///< Rect of current FlyFrame.
+ FlyEmbeddedPrt, ///< Rect of PrtArea of FlyFrame
+ Section, ///< Rect of current section.
+ SectionOutsideTable, ///< Rect of current section but outside of table.
+ SectionPrt, ///< Rect of current PrtArea of section.
+ HeaderFooter, ///< Rect of current header/footer
+ PagesArea ///< Rect covering the pages area
};
struct SwGetCurColNumPara