summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-09 15:31:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-09 20:33:30 +0000
commit4e83af0dc7d41c458f9d971342c62103fad51d0f (patch)
tree6e453882e3b17e541541b790b58b2f9d2ab46caa /unotools
parent6a62d7628f35c259dc3688f326b5ad31d674ab33 (diff)
make indent sane
Diffstat (limited to 'unotools')
-rw-r--r--unotools/inc/unotools/localfilehelper.hxx50
1 files changed, 24 insertions, 26 deletions
diff --git a/unotools/inc/unotools/localfilehelper.hxx b/unotools/inc/unotools/localfilehelper.hxx
index 634c7dea8d5b..ebccc43d090c 100644
--- a/unotools/inc/unotools/localfilehelper.hxx
+++ b/unotools/inc/unotools/localfilehelper.hxx
@@ -36,35 +36,33 @@
namespace utl
{
+ class UNOTOOLS_DLLPUBLIC LocalFileHelper
+ {
+ public:
+ /**
+ Converts a "physical" file name into a "UCB compatible" URL ( if possible ).
+ If no UCP is available for the local file system, sal_False and an empty URL is returned.
+ Returning sal_True and an empty URL means that the URL doesn't point to a local file.
+ */
+ static sal_Bool ConvertPhysicalNameToURL( const String& rName, String& rReturn );
+ static sal_Bool ConvertSystemPathToURL( const String& rName, const String& rBaseURL, String& rReturn );
-class UNOTOOLS_DLLPUBLIC LocalFileHelper
-{
-public:
- /**
- Converts a "physical" file name into a "UCB compatible" URL ( if possible ).
- If no UCP is available for the local file system, sal_False and an empty URL is returned.
- Returning sal_True and an empty URL means that the URL doesn't point to a local file.
- */
- static sal_Bool ConvertPhysicalNameToURL( const String& rName, String& rReturn );
- static sal_Bool ConvertSystemPathToURL( const String& rName, const String& rBaseURL, String& rReturn );
-
- /**
- Converts a "UCB compatible" URL into a "physical" file name.
- If no UCP is available for the local file system, sal_False and an empty file name is returned,
- otherwise sal_True and a valid URL, because a file name can always be converted if a UCP for the local
- file system is present ( watch: this doesn't mean that this file really exists! )
- */
- static sal_Bool ConvertURLToPhysicalName( const String& rName, String& rReturn );
- static bool ConvertURLToPhysicalName( const rtl::OUString& rName, rtl::OUString& rReturn );
- static sal_Bool ConvertURLToSystemPath( const String& rName, String& rReturn );
-
- static sal_Bool IsLocalFile( const String& rName );
- static sal_Bool IsFileContent( const String& rName );
+ /**
+ Converts a "UCB compatible" URL into a "physical" file name.
+ If no UCP is available for the local file system, sal_False and an empty file name is returned,
+ otherwise sal_True and a valid URL, because a file name can always be converted if a UCP for the local
+ file system is present ( watch: this doesn't mean that this file really exists! )
+ */
+ static sal_Bool ConvertURLToPhysicalName( const String& rName, String& rReturn );
+ static bool ConvertURLToPhysicalName( const rtl::OUString& rName, rtl::OUString& rReturn );
+ static sal_Bool ConvertURLToSystemPath( const String& rName, String& rReturn );
- static ::com::sun::star::uno::Sequence< ::rtl::OUString >
- GetFolderContents( const ::rtl::OUString& rFolder, sal_Bool bFolder );
-};
+ static sal_Bool IsLocalFile( const String& rName );
+ static sal_Bool IsFileContent( const String& rName );
+ static ::com::sun::star::uno::Sequence< ::rtl::OUString >
+ GetFolderContents( const ::rtl::OUString& rFolder, sal_Bool bFolder );
+ };
}
#endif