summaryrefslogtreecommitdiff
path: root/svgio/inc/SvgNumber.hxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-11 10:27:23 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-11 10:18:07 +0100
commit4cdca3702cda246ecc490c65973e525ff5cf25ab (patch)
treebb40f5ece57a5913c5b8f052bbd7c0244fc1f1d7 /svgio/inc/SvgNumber.hxx
parent1ef0261539ca6ee8ad9f43d91536c9caa4f7ea53 (diff)
Use o3tl::convert
Change-Id: I62239252efed514de7db88b4bea6f4d4d719fb17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125021 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svgio/inc/SvgNumber.hxx')
-rw-r--r--svgio/inc/SvgNumber.hxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/svgio/inc/SvgNumber.hxx b/svgio/inc/SvgNumber.hxx
index 9b6907a02031..4d03335cf424 100644
--- a/svgio/inc/SvgNumber.hxx
+++ b/svgio/inc/SvgNumber.hxx
@@ -25,9 +25,6 @@
namespace svgio::svgreader
{
-// recommended value for this device dependent unit, see CSS2 section 4.3.2 Lengths
-constexpr const double F_SVG_PIXEL_PER_INCH = 96.0;
-
enum class NumberType
{
xcoordinate,
@@ -52,11 +49,11 @@ enum class SvgUnit
ex, // relative to current x-height
px, // 'user unit'
- pt, // points, 1.25 px
- pc, // 15.0 px
- cm, // 35.43307 px
- mm, // 3.543307 px
- in, // 90 px
+ pt, // points, 1/72 in
+ pc, // 1/6 in
+ cm,
+ mm,
+ in,
percent, // relative to range
none // for stroke-miterlimit, which has no unit