diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2013-03-26 23:07:42 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2013-03-30 16:54:39 +0100 |
commit | a5e22906c0b27019b61b41161ccc8cbc2cf40ade (patch) | |
tree | b8173ac4189e3ef305b26a222272c0e9231da94c /svx/inc | |
parent | bd5e62e199f30724b59f7261bd65add6375a1e16 (diff) |
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
Diffstat (limited to 'svx/inc')
-rw-r--r-- | svx/inc/svx/extedit.hxx | 5 | ||||
-rw-r--r-- | svx/inc/svx/graphichelper.hxx | 10 |
2 files changed, 10 insertions, 5 deletions
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 <svtools/grfmgr.hxx> #include <osl/file.hxx> #include <osl/process.h> #include <vcl/graph.hxx> -#include <svtools/grfmgr.hxx> #include <vcl/timer.hxx> #include <svx/svxdllapi.h> @@ -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 <vcl/graph.hxx> #include <svx/svxdllapi.h> +#include <com/sun/star/drawing/XShape.hpp> + +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 ); }; |