diff options
Diffstat (limited to 'unotools/inc/unotools/ucbhelper.hxx')
-rw-r--r-- | unotools/inc/unotools/ucbhelper.hxx | 91 |
1 files changed, 47 insertions, 44 deletions
diff --git a/unotools/inc/unotools/ucbhelper.hxx b/unotools/inc/unotools/ucbhelper.hxx index b0ed12a57ecc..358d8e119c60 100644 --- a/unotools/inc/unotools/ucbhelper.hxx +++ b/unotools/inc/unotools/ucbhelper.hxx @@ -25,55 +25,58 @@ * for a copy of the LGPLv3 License. * ************************************************************************/ -#include "unotools/unotoolsdllapi.h" #ifndef _UNOTOOLS_UCBHELPER_HXX #define _UNOTOOLS_UCBHELPER_HXX -// include --------------------------------------------------------------- -#include <com/sun/star/uno/Sequence.hxx> -#include <com/sun/star/uno/Reference.hxx> -#include <com/sun/star/ucb/NameClash.hpp> -#include <com/sun/star/ucb/XContentProvider.hpp> - -#include <tools/string.hxx> - -namespace ucbhelper -{ - class Content; -} - -namespace utl -{ - class UNOTOOLS_DLLPUBLIC UCBContentHelper - { - public: - static sal_Bool IsDocument( const String& rContent ); - static sal_Bool IsFolder( const String& rContent ); - static sal_Bool GetTitle( const String& rContent, String& rTitle ); - static sal_Bool Kill( const String& rContent ); - - static ::com::sun::star::uno::Any GetProperty( const String& rURL, const ::rtl::OUString& rName ); - - static ::com::sun::star::uno::Sequence< ::rtl::OUString > - GetFolderContents( const String& rFolder, sal_Bool bFolder, sal_Bool bSorted = sal_False ); - - static sal_Bool MakeFolder( const String& rFolder, sal_Bool bNewOnly = sal_False ); - static sal_Bool MakeFolder( ::ucbhelper::Content& rParent, - const String& rTitle, - ::ucbhelper::Content& rNewFolder, - sal_Bool bNewOnly = sal_False ); - - static sal_uLong GetSize( const String& rContent ); - static sal_Bool IsYounger( const String& rIsYoung, const String& rIsOlder ); - - static sal_Bool Exists( const String& rContent ); - static sal_Bool IsSubPath( const ::rtl::OUString& rPath, const ::rtl::OUString& rChildCandidate, const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentProvider >& xContentProvider = ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XContentProvider >() ); - static sal_Bool EqualURLs( const ::rtl::OUString& aFirstURL, const ::rtl::OUString& aSecondURL ); - }; -} +#include "sal/config.h" -#endif +#include "com/sun/star/uno/Sequence.hxx" +#include "sal/types.h" +#include "unotools/unotoolsdllapi.h" + +namespace com { namespace sun { namespace star { namespace uno { + class Any; +} } } } +namespace rtl { class OUString; } +namespace ucbhelper { class Content; } + +namespace utl { namespace UCBContentHelper { + +UNOTOOLS_DLLPUBLIC bool IsDocument(rtl::OUString const & url); + +UNOTOOLS_DLLPUBLIC bool IsFolder(rtl::OUString const & url); + +UNOTOOLS_DLLPUBLIC bool GetTitle( + rtl::OUString const & url, rtl::OUString * title); + +UNOTOOLS_DLLPUBLIC bool Kill(rtl::OUString const & url); + +UNOTOOLS_DLLPUBLIC com::sun::star::uno::Any GetProperty( + rtl::OUString const & url, rtl::OUString const & property); +UNOTOOLS_DLLPUBLIC bool MakeFolder( + rtl::OUString const & url, bool exclusive = false); + +UNOTOOLS_DLLPUBLIC bool MakeFolder( + ucbhelper::Content & parent, rtl::OUString const & title, + ucbhelper::Content & result, bool exclusive = false); + +UNOTOOLS_DLLPUBLIC sal_Int64 GetSize(rtl::OUString const & url); + +UNOTOOLS_DLLPUBLIC bool IsYounger( + rtl::OUString const & younger, rtl::OUString const & older); + +UNOTOOLS_DLLPUBLIC bool Exists(rtl::OUString const & url); + +UNOTOOLS_DLLPUBLIC bool IsSubPath( + rtl::OUString const & parent, rtl::OUString const & child); + +UNOTOOLS_DLLPUBLIC bool EqualURLs( + rtl::OUString const & url1, rtl::OUString const & url2); + +} } + +#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |