diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-10-05 23:27:44 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-10-07 05:05:47 +0000 |
commit | 8273350ff48f198efc9dc9c5de5519b8cbdc0cb3 (patch) | |
tree | d1587fc960b3b0a7bf30403f240d64b66de2a53d /svx | |
parent | f830600ece806ec365a4839e79afabe183c5e36d (diff) |
Prefer getSelectedFiles to getFiles (sfx2+sw)
+ tweak files of other modules which needed it
Change-Id: Ibb673eba6609734addd233ac1477698c01b94678
Reviewed-on: https://gerrit.libreoffice.org/19180
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/core/graphichelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx index 96f6788885a1..70df0c9d618f 100644 --- a/svx/source/core/graphichelper.cxx +++ b/svx/source/core/graphichelper.cxx @@ -41,7 +41,7 @@ #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/io/XInputStream.hpp> #include <com/sun/star/ucb/SimpleFileAccess.hpp> -#include <com/sun/star/ui/dialogs/XFilePicker.hpp> +#include <com/sun/star/ui/dialogs/XFilePicker2.hpp> #include <com/sun/star/ui/dialogs/XFilterManager.hpp> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> @@ -99,7 +99,7 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString& OUString sGraphicsPath( aPathOpt.GetGraphicPath() ); FileDialogHelper aDialogHelper( TemplateDescription::FILESAVE_AUTOEXTENSION, 0 ); - Reference < XFilePicker > xFilePicker = aDialogHelper.GetFilePicker(); + Reference < XFilePicker2 > xFilePicker = aDialogHelper.GetFilePicker(); INetURLObject aPath; aPath.SetSmartURL( sGraphicsPath ); @@ -213,7 +213,7 @@ void GraphicHelper::SaveShapeAsGraphic( const Reference< drawing::XShape >& xSha OUString sGraphicPath( aPathOpt.GetGraphicPath() ); FileDialogHelper aDialogHelper( TemplateDescription::FILESAVE_AUTOEXTENSION, 0 ); - Reference < XFilePicker > xFilePicker = aDialogHelper.GetFilePicker(); + Reference < XFilePicker2 > xFilePicker = aDialogHelper.GetFilePicker(); aDialogHelper.SetTitle( "Save as Image" ); |