diff options
author | Marco Cecchetti <mrcekets@gmail.com> | 2012-08-25 11:27:56 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2012-10-10 12:03:30 +0200 |
commit | 83be76cab18745ff1f8b8343a2fd53a7d13194ad (patch) | |
tree | 6af3f4cdc828309721a445be25f6615ca9aedfa3 /filter/source/svg | |
parent | 8c673fa8af0ac7419b6b6d03621d91d44a87ca7a (diff) |
IsUsePositionedCharacters() tries to get its value from filter data passed to SVGExport ctor
Now IsUseTinyProfile and IsEmbedFonts methods are depended by
IsUsePositionedCharacters
Diffstat (limited to 'filter/source/svg')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 23 |
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 - // ------------------------ |