diff options
Diffstat (limited to 'include/svx/graphichelper.hxx')
-rw-r--r-- | include/svx/graphichelper.hxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/svx/graphichelper.hxx b/include/svx/graphichelper.hxx index 2f723b830493..1d3c6ee58227 100644 --- a/include/svx/graphichelper.hxx +++ b/include/svx/graphichelper.hxx @@ -24,6 +24,10 @@ #include <svx/svxdllapi.h> namespace com::sun::star::drawing { class XShape; } +namespace com::sun::star::lang +{ +class XComponent; +} namespace weld { class Widget; } namespace weld { class Window; } @@ -34,7 +38,13 @@ public: static void GetPreferredExtension( OUString& rExtension, const Graphic& rGraphic ); static OUString GetImageType(const Graphic& rGraphic); static OUString ExportGraphic(weld::Window* pWin, const Graphic& rGraphic, const OUString& rGraphicName); - static void SaveShapeAsGraphic(weld::Window* pWin, const css::uno::Reference< css::drawing::XShape >& xShape); + static void + SaveShapeAsGraphicToPath(const css::uno::Reference<css::lang::XComponent>& xComponent, + const css::uno::Reference<css::drawing::XShape>& xShape, + const OUString& rMimeType, const OUString& rPath); + static void SaveShapeAsGraphic(weld::Window* pWin, + const css::uno::Reference<css::lang::XComponent>& xComponent, + const css::uno::Reference<css::drawing::XShape>& xShape); static short HasToSaveTransformedImage(weld::Widget* pWin); }; |