From a5e22906c0b27019b61b41161ccc8cbc2cf40ade Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 26 Mar 2013 23:07:42 +0100 Subject: Export Chart as Graphic - allow vector graphic export Readd removed SaveShapeAsGraphic to GraphicHelper with which it is possible to export any shape to vector/raster graphic. Additionally cleanup GraphicHelper and ExternalEdit (convertsion to OUString, remove unused imports, comments). Change-Id: I1af45e2ed5d3b66dbd80a5f3a71c44530e46baef --- svx/inc/svx/extedit.hxx | 5 ++--- svx/inc/svx/graphichelper.hxx | 10 ++++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'svx/inc') diff --git a/svx/inc/svx/extedit.hxx b/svx/inc/svx/extedit.hxx index 3760c543e738..6f3c44afcbb0 100644 --- a/svx/inc/svx/extedit.hxx +++ b/svx/inc/svx/extedit.hxx @@ -24,10 +24,10 @@ #ifndef _EXTEDIT_HXX #define _EXTEDIT_HXX +#include #include #include #include -#include #include #include @@ -35,7 +35,7 @@ class SVX_DLLPUBLIC ExternalToolEdit { public: GraphicObject* m_pGraphicObject; - rtl::OUString m_aFileName; + OUString m_aFileName; ExternalToolEdit(); virtual ~ExternalToolEdit(); @@ -43,7 +43,6 @@ public: virtual void Update( Graphic& aGraphic ) = 0; void Edit( GraphicObject *pGraphic ); - DECL_LINK( StartListeningEvent, void *pEvent ); static void threadWorker( void *pThreadData ); diff --git a/svx/inc/svx/graphichelper.hxx b/svx/inc/svx/graphichelper.hxx index 317e0ffd4164..1d9e9e391e23 100644 --- a/svx/inc/svx/graphichelper.hxx +++ b/svx/inc/svx/graphichelper.hxx @@ -23,12 +23,18 @@ #include #include +#include + +using namespace css::uno; +using namespace css::drawing; + class SVX_DLLPUBLIC GraphicHelper { public: - static void GetPreferedExtension( String &rExt, const Graphic &rGrf ); - static String ExportGraphic( const Graphic &rGraphic, const String &rGrfName ); + static void GetPreferedExtension( OUString& rExtension, const Graphic& rGraphic ); + static OUString ExportGraphic( const Graphic& rGraphic, const OUString& rGraphicName ); + static void SaveShapeAsGraphic( const Reference< XShape >& xShape ); }; -- cgit