diff options
author | Marc-André Laverdière-Papineau <marc-andre@atc.tcs.com> | 2012-01-15 18:24:58 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-01-18 20:02:19 -0500 |
commit | 05a8ecca55d96b823348fa390482be6cfee64f69 (patch) | |
tree | c7deb8edaac63f4edca00c281ecacfa78ee96ae9 /filter | |
parent | fdo#44896 accomodate localized text expansion (diff) | |
download | core-05a8ecca55d96b823348fa390482be6cfee64f69.tar.gz core-05a8ecca55d96b823348fa390482be6cfee64f69.zip |
removed some dead code
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/svg/svgexport.cxx | 50 | ||||
-rw-r--r-- | filter/source/svg/svgfilter.hxx | 6 | ||||
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 8 |
3 files changed, 1 insertions, 63 deletions
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index 6149ddf2960d..ea63fa164066 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -382,20 +382,6 @@ sal_Bool SVGExport::IsUseNativeTextDecoration() const // ----------------------------------------------------------------------------- -::rtl::OUString SVGExport::GetGlyphPlacement() const -{ - ::rtl::OUString aRet; - - if( mrFilterData.getLength() > 3 ) - mrFilterData[ 3 ].Value >>= aRet; - else - aRet = B2UCONST( "abs" ); - - return aRet; -} - -// ----------------------------------------------------------------------------- - sal_Bool SVGExport::IsUseOpacity() const { sal_Bool bRet = !IsUseTinyProfile(); @@ -408,43 +394,9 @@ sal_Bool SVGExport::IsUseOpacity() const // ----------------------------------------------------------------------------- -sal_Bool SVGExport::IsUseGradient() const -{ - sal_Bool bRet = !IsUseTinyProfile(); - - if( !bRet && ( mrFilterData.getLength() > 5 ) ) - mrFilterData[ 5 ].Value >>= bRet; - - return bRet; -} - -// ----------------------------------------------------------------------------- - -void SVGExport::pushClip( const ::basegfx::B2DPolyPolygon& rPolyPoly ) -{ - maClipList.push_front( ::basegfx::tools::correctOrientations( rPolyPoly ) ); -} - -// ----------------------------------------------------------------------------- - -void SVGExport::popClip() -{ - if( !maClipList.empty() ) - maClipList.pop_front(); -} - -// ----------------------------------------------------------------------------- - -sal_Bool SVGExport::hasClip() const -{ - return( !maClipList.empty() ); -} - -// ----------------------------------------------------------------------------- - const ::basegfx::B2DPolyPolygon* SVGExport::getCurClip() const { - return( maClipList.empty() ? NULL : &( *maClipList.begin() ) ); + return NULL; } // ------------------------ diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx index 21c123853503..d218e065467e 100644 --- a/filter/source/svg/svgfilter.hxx +++ b/filter/source/svg/svgfilter.hxx @@ -141,13 +141,8 @@ public: sal_Bool IsUseTinyProfile() const; sal_Bool IsEmbedFonts() const; sal_Bool IsUseNativeTextDecoration() const; - ::rtl::OUString GetGlyphPlacement() const; sal_Bool IsUseOpacity() const; - sal_Bool IsUseGradient() const; - void pushClip( const ::basegfx::B2DPolyPolygon& rPolyPoly ); - void popClip(); - sal_Bool hasClip() const; const ::basegfx::B2DPolyPolygon* getCurClip() const; protected: @@ -161,7 +156,6 @@ protected: private: const Sequence< PropertyValue >& mrFilterData; - B2DPolyPolygonList maClipList; SVGExport(); }; diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 9f70046dfe7f..0639e5d681e0 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -640,14 +640,6 @@ void SVGActionWriter::ImplWritePolyPolygon( const PolyPolygon& rPolyPoly, sal_Bo else aPolyPoly = rPolyPoly; - if( mrExport.hasClip() ) - { - const ::basegfx::B2DPolyPolygon aB2DPolyPoly( ::basegfx::tools::correctOrientations( aPolyPoly.getB2DPolyPolygon() ) ); - - aPolyPoly = PolyPolygon( ::basegfx::tools::clipPolyPolygonOnPolyPolygon( - *mrExport.getCurClip(), aB2DPolyPoly, sal_False, sal_False ) ); - } - // add path data attribute mrExport.AddAttribute( XML_NAMESPACE_NONE, aXMLAttrD, GetPathString( aPolyPoly, bLineOnly ) ); |