summaryrefslogtreecommitdiff
path: root/svgio/inc
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-01-17 19:17:46 +0100
committerArmin Le Grand <Armin.Le.Grand@cib.de>2016-01-20 13:10:42 +0000
commit406cdc29039e5e65bacfcd635de8022642d63547 (patch)
treed04d5bb713c4fa4297bd7378ea82b67a54c8c06f /svgio/inc
parentab6f80909877f1e14de252c456dd2acd84c43974 (diff)
SVGIO: Add support to font-size keywords
Similar to 0cae9c32ce9884a9809e220ba80b7c4cb4059565 Change-Id: Iac7a6bb30b36e51ea67a6c4f7b3421f480eeea57 Reviewed-on: https://gerrit.libreoffice.org/21542 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'svgio/inc')
-rw-r--r--svgio/inc/svgio/svgreader/svgstyleattributes.hxx23
1 files changed, 20 insertions, 3 deletions
diff --git a/svgio/inc/svgio/svgreader/svgstyleattributes.hxx b/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
index c227986b7d35..02cf55dd0252 100644
--- a/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
+++ b/svgio/inc/svgio/svgreader/svgstyleattributes.hxx
@@ -56,6 +56,21 @@ namespace svgio
StrokeLinejoin_bevel
};
+ enum FontSize
+ {
+ FontSize_notset,
+ FontSize_xx_small,
+ FontSize_x_small,
+ FontSize_small,
+ FontSize_smaller,
+ FontSize_medium,
+ FontSize_large,
+ FontSize_larger,
+ FontSize_x_large,
+ FontSize_xx_large,
+ FontSize_initial
+ };
+
enum FontStretch
{
FontStretch_notset,
@@ -183,7 +198,8 @@ namespace svgio
SvgNumber maStrokeMiterLimit;
SvgNumber maStrokeOpacity;
SvgStringVector maFontFamily;
- SvgNumber maFontSize;
+ FontSize maFontSize;
+ SvgNumber maFontSizeNumber;
FontStretch maFontStretch;
FontStyle maFontStyle;
FontVariant maFontVariant;
@@ -369,8 +385,9 @@ namespace svgio
void setFontFamily(const SvgStringVector& rSvgStringVector = SvgStringVector()) { maFontFamily = rSvgStringVector; }
/// FontSize content
- SvgNumber getFontSize() const;
- void setFontSize(const SvgNumber& rFontSize = SvgNumber()) { maFontSize = rFontSize; }
+ void setFontSize(const FontSize aFontSize = FontSize_notset) { maFontSize = aFontSize; }
+ void setFontSizeNumber(const SvgNumber& rFontSize = SvgNumber()) { maFontSizeNumber = rFontSize; }
+ SvgNumber getFontSizeNumber() const;
/// FontStretch content
FontStretch getFontStretch() const;