diff options
Diffstat (limited to 'include/unotools/ucbhelper.hxx')
-rw-r--r-- | include/unotools/ucbhelper.hxx | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/include/unotools/ucbhelper.hxx b/include/unotools/ucbhelper.hxx index fad06ced5e2d..fe29a3a54201 100644 --- a/include/unotools/ucbhelper.hxx +++ b/include/unotools/ucbhelper.hxx @@ -26,9 +26,15 @@ #include "sal/types.h" #include "unotools/unotoolsdllapi.h" -namespace com { namespace sun { namespace star { namespace uno { - class Any; -} } } } +namespace com { namespace sun { namespace star { + namespace uno { + class Any; + class XComponentContext; + } + namespace ucb{ + class XCommandEnvironment; + } +} } } namespace ucbhelper { class Content; } namespace utl { namespace UCBContentHelper { @@ -53,6 +59,12 @@ UNOTOOLS_DLLPUBLIC bool MakeFolder( ucbhelper::Content & parent, OUString const & title, ucbhelper::Content & result, bool exclusive = false); +/// like mkdir -p +UNOTOOLS_DLLPUBLIC bool ensureFolder( + com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xCtx, + com::sun::star::uno::Reference< com::sun::star::ucb::XCommandEnvironment > xEnv, + const OUString& rFolder, ucbhelper::Content & result); + /// @return the value of the "Size" property of the given content, or zero if /// obtaining the property yields a void value or raises a /// non-RuntimeException (RuntimeExceptions are passed through) |