summaryrefslogtreecommitdiff
path: root/svgio/inc/svgio/svgreader/svgtools.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'svgio/inc/svgio/svgreader/svgtools.hxx')
-rw-r--r--svgio/inc/svgio/svgreader/svgtools.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/svgio/inc/svgio/svgreader/svgtools.hxx b/svgio/inc/svgio/svgreader/svgtools.hxx
index 138a06546a0b..8a808b29b976 100644
--- a/svgio/inc/svgio/svgreader/svgtools.hxx
+++ b/svgio/inc/svgio/svgreader/svgtools.hxx
@@ -37,6 +37,9 @@ namespace svgio
void myAssert(const OUString& rMessage);
#endif
+// recommended value for this devise dependend unit, see CSS2 section 4.3.2 Lenghts
+#define F_SVG_PIXEL_PER_INCH 90.0
+
// common non-token strings
struct commonStrings
{
@@ -126,7 +129,12 @@ namespace svgio
bool isPositive() const;
+ // Only usable in cases, when the unit is not Unit_percent, otherwise use method solve
+ double solveNonPercentage(const InfoProvider& rInfoProvider) const;
+
double solve(const InfoProvider& rInfoProvider, NumberType aNumberType = length) const;
+
+
};
typedef ::std::vector< SvgNumber > SvgNumberVector;