summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/inc/svx/graphichelper.hxx5
-rw-r--r--svx/source/core/graphichelper.cxx4
2 files changed, 4 insertions, 5 deletions
diff --git a/svx/inc/svx/graphichelper.hxx b/svx/inc/svx/graphichelper.hxx
index 1d9e9e391e23..650a300b6da6 100644
--- a/svx/inc/svx/graphichelper.hxx
+++ b/svx/inc/svx/graphichelper.hxx
@@ -25,16 +25,13 @@
#include <com/sun/star/drawing/XShape.hpp>
-using namespace css::uno;
-using namespace css::drawing;
-
class SVX_DLLPUBLIC GraphicHelper
{
public:
static void GetPreferedExtension( OUString& rExtension, const Graphic& rGraphic );
static OUString ExportGraphic( const Graphic& rGraphic, const OUString& rGraphicName );
- static void SaveShapeAsGraphic( const Reference< XShape >& xShape );
+ static void SaveShapeAsGraphic( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape );
};
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx
index 4671c912963a..deb3397d0020 100644
--- a/svx/source/core/graphichelper.cxx
+++ b/svx/source/core/graphichelper.cxx
@@ -56,6 +56,8 @@ using namespace css::ui::dialogs;
using namespace sfx2;
+namespace drawing = com::sun::star::drawing;
+
void GraphicHelper::GetPreferedExtension( OUString& rExtension, const Graphic& rGraphic )
{
OUString aExtension = "png";
@@ -196,7 +198,7 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString&
return OUString();
}
-void GraphicHelper::SaveShapeAsGraphic( const Reference< XShape >& xShape )
+void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xShape )
{
try
{