summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2012-08-25 11:27:56 +0200
committerMarco Cecchetti <mrcekets@gmail.com>2012-08-25 11:27:56 +0200
commit6f13ead35f4b003e03268fc5f2553909ec466dcd (patch)
treef4d51e017a99a3ec90a3f8fab5c9c6ef4136917d
parentb42e10c2d8001f6fde3171f7b2d2f94367043b22 (diff)
IsUsePositionedCharacters() tries to get its value from filter data passed to SVGExport ctor
Now IsUseTinyProfile and IsEmbedFonts methods are depended by IsUsePositionedCharacters
-rw-r--r--filter/source/svg/svgexport.cxx23
1 files changed, 14 insertions, 9 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index cf76b9157ca7..f3c8350ccf04 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -352,7 +352,7 @@ sal_Bool SVGExport::IsUseTinyProfile() const
{
sal_Bool bRet = sal_False;
- if( mrFilterData.getLength() > 0 )
+ if( IsUsePositionedCharacters() && mrFilterData.getLength() > 0 )
mrFilterData[ 0 ].Value >>= bRet;
return bRet;
@@ -364,7 +364,7 @@ sal_Bool SVGExport::IsEmbedFonts() const
{
sal_Bool bRet = sal_False;
- if( mrFilterData.getLength() > 1 )
+ if( IsUsePositionedCharacters() && mrFilterData.getLength() > 1 )
mrFilterData[ 1 ].Value >>= bRet;
return bRet;
@@ -372,13 +372,6 @@ sal_Bool SVGExport::IsEmbedFonts() const
// -----------------------------------------------------------------------------
-sal_Bool SVGExport::IsUsePositionedCharacters() const
-{
- return false;
-}
-
-// -----------------------------------------------------------------------------
-
sal_Bool SVGExport::IsUseNativeTextDecoration() const
{
sal_Bool bRet = !IsUseTinyProfile();
@@ -401,6 +394,18 @@ sal_Bool SVGExport::IsUseOpacity() const
return bRet;
}
+// -----------------------------------------------------------------------------
+
+sal_Bool SVGExport::IsUsePositionedCharacters() const
+{
+ sal_Bool bRet = sal_False;
+ if( mrFilterData.getLength() > 6 )
+ mrFilterData[ 6 ].Value >>= bRet;
+
+ return bRet;
+}
+
+
// ------------------------
// - ObjectRepresentation -
// ------------------------