22#include <com/sun/star/uno/RuntimeException.hpp>
23#include <osl/file.hxx>
24#include <osl/process.h>
25#include <rtl/ustring.hxx>
32 oslProcessError e1 = osl_getProcessWorkingDir(&cwd.pData);
33 if (e1 != osl_Process_E_None) {
34 throw css::uno::RuntimeException(
35 "osl_getProcessWorkingDir failed with " + OUString::number(e1));
38 osl::FileBase::RC e2 = osl::FileBase::getFileURLFromSystemPath(
39 relativePathname, url);
40 if (e2 != osl::FileBase::E_None) {
41 throw css::uno::RuntimeException(
42 "osl::FileBase::getFileURLFromSystemPath(" +
45 OUString::number(e2));
48 e2 = osl::FileBase::getAbsoluteFileURL(cwd, url, absUrl);
49 if (e2 != osl::FileBase::E_None) {
50 throw css::uno::RuntimeException(
51 "osl::FileBase::getAbsoluteFileURL(" +
54 OUString::number(e2));
OUString toAbsoluteFileUrl(OUString const &relativePathname)