summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-11-06 14:37:23 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-11-08 12:15:51 +0100
commit9e0770ea7e0cf094add54ad64bc9ff825d24bbe1 (patch)
treee897291e44ecb11ca44ba5e5ebefe03ac536862f /include/svtools
parent841ee6fb052fb35467d74b70f575a86c8c0fe3b7 (diff)
Convert FieldUnit to scoped enum
Change-Id: Id2df31daa596a18c79af5fc6ea162deb6e24d5af Reviewed-on: https://gerrit.libreoffice.org/62958 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/ctrlbox.hxx2
-rw-r--r--include/svtools/ruler.hxx18
2 files changed, 10 insertions, 10 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx
index 7849cdfad9ac..d6e8f8f8ae63 100644
--- a/include/svtools/ctrlbox.hxx
+++ b/include/svtools/ctrlbox.hxx
@@ -54,7 +54,7 @@ All scalar numbers in 1/100 of the corresponding unit.
Line1 is the outer, Line2 the inner line, Distance is the distance between
these two lines. If Line2 == 0, only Line1 will be shown. Defaults for
-source and target unit are FUNIT_POINT.
+source and target unit are FieldUnit::POINT.
SetColor() sets the line color.
diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index 8429ea1c74e6..e4baeb882500 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -111,15 +111,15 @@ The values are computed as described below:
SetUnit() and SetZoom() configure which unit is used to display
the values on the ruler. The following units are accepted:
- FUNIT_MM
- FUNIT_CM (Default)
- FUNIT_M
- FUNIT_KM
- FUNIT_INCH
- FUNIT_FOOT
- FUNIT_MILE
- FUNIT_POINT
- FUNIT_PICA
+ FieldUnit::MM
+ FieldUnit::CM (Default)
+ FieldUnit::M
+ FieldUnit::KM
+ FieldUnit::INCH
+ FieldUnit::FOOT
+ FieldUnit::MILE
+ FieldUnit::POINT
+ FieldUnit::PICA
--------------------------------------------------------------------------