diff options
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/dlg/navigatr.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/view/sdview4.cxx | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx index a52c43c7dd9f..343be422b595 100644 --- a/sd/source/ui/dlg/navigatr.cxx +++ b/sd/source/ui/dlg/navigatr.cxx @@ -17,8 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <osl/file.hxx> #include <tools/urlobj.hxx> -#include <unotools/localfilehelper.hxx> #include <sfx2/imgmgr.hxx> #include <sfx2/fcontnr.hxx> #include <svl/eitem.hxx> @@ -593,7 +595,7 @@ bool SdNavigatorWin::InsertFile(const OUString& rFileName) if( aURL.GetProtocol() == INetProtocol::NotValid ) { OUString aURLStr; - ::utl::LocalFileHelper::ConvertPhysicalNameToURL( rFileName, aURLStr ); + osl::FileBase::getFileURLFromSystemPath( rFileName, aURLStr ); aURL = INetURLObject( aURLStr ); } diff --git a/sd/source/ui/view/sdview4.cxx b/sd/source/ui/view/sdview4.cxx index bf55d9439357..1616d619d711 100644 --- a/sd/source/ui/view/sdview4.cxx +++ b/sd/source/ui/view/sdview4.cxx @@ -18,7 +18,7 @@ */ #include "View.hxx" -#include <unotools/localfilehelper.hxx> +#include <osl/file.hxx> #include <sfx2/bindings.hxx> #include <sfx2/request.hxx> #include <sfx2/docfilt.hxx> @@ -418,7 +418,7 @@ IMPL_LINK_NOARG_TYPED(View, DropInsertFileHdl, Idle *, void) if( aURL.GetProtocol() == INetProtocol::NotValid ) { OUString aURLStr; - ::utl::LocalFileHelper::ConvertPhysicalNameToURL( aCurrentDropFile, aURLStr ); + osl::FileBase::getFileURLFromSystemPath( aCurrentDropFile, aURLStr ); aURL = INetURLObject( aURLStr ); } |