summaryrefslogtreecommitdiff
path: root/ucbhelper/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sb@openoffice.org>2000-11-13 10:38:07 +0000
committerStephan Bergmann <sb@openoffice.org>2000-11-13 10:38:07 +0000
commit3c1b7980707a30c0a6f5f79dcc0307f5bf2bbbb2 (patch)
tree7ac7cbd17ac48819f4a74d71e76b44699ce322a3 /ucbhelper/inc
parentda76de983add9e16894a270b15a64eb65b2d05cf (diff)
Added getFileURLFromSystemPath() and getSystemPathFromFileURL().
Diffstat (limited to 'ucbhelper/inc')
-rw-r--r--ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx69
1 files changed, 67 insertions, 2 deletions
diff --git a/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx b/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx
index 30b790834cdc..1ea46c5352bf 100644
--- a/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx
+++ b/ucbhelper/inc/ucbhelper/fileidentifierconverter.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fileidentifierconverter.hxx,v $
*
- * $Revision: 1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: sb $ $Date: 2000-10-18 10:02:12 $
+ * last change: $Author: sb $ $Date: 2000-11-13 11:35:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -137,6 +137,71 @@ getNormalizedPathFromFileURL(
rtl::OUString const & rHostName,
rtl::OUString const & rURL);
+//============================================================================
+/** Using a specific content provider manager, convert a file path in system
+ dependent notation to a (file) URL.
+
+ @param rManager
+ A content provider manager. Must not be null.
+
+ @param rBaseURL
+ See the corresponding parameter of
+ com::sun::star::ucb::XFileIdentifierConverter::getFileURLFromSystemPath().
+
+ @param rURL
+ See the corresponding parameter of
+ com::sun::star::ucb::XFileIdentifierConverter::getFileURLFromSystemPath().
+
+ @returns
+ a URL, if the content provider registered at the content provider manager
+ that is responsible for the base URL returns a URL when calling
+ com::sun::star::ucb::XFileIdentiferConverter::getFileURLFromSystemPath()
+ on it. Otherwise, an empty string is returned.
+
+ @see
+ com::sun::star::ucb::XFileIdentiferConverter::getFileURLFromSystemPath().
+ */
+rtl::OUString
+getFileURLFromSystemPath(
+ com::sun::star::uno::Reference<
+ com::sun::star::ucb::XContentProviderManager > const &
+ rManager,
+ rtl::OUString const & rBaseURL,
+ rtl::OUString const & rSystemPath);
+
+//============================================================================
+/** Using a specific content provider manager, convert a (file) URL to a
+ file path in system dependent notation.
+
+ @param rManager
+ A content provider manager. Must not be null.
+
+ @param rBaseURL
+ See the corresponding parameter of
+ com::sun::star::ucb::XFileIdentiferConverter::getSystemPathFromFileURL().
+
+ @param rURL
+ See the corresponding parameter of
+ com::sun::star::ucb::XFileIdentiferConverter::getSystemPathFromFileURL().
+
+ @returns
+ a system path, if the content provider registered at the content provider
+ manager that is responsible for the base URL returns a system path when
+ calling
+ com::sun::star::ucb::XFileIdentiferConverter::getSystemPathFromFileURL()
+ on it. Otherwise, an empty string is returned.
+
+ @see
+ com::sun::star::ucb::XFileIdentiferConverter::getSystemPathFromFileURL().
+ */
+rtl::OUString
+getSystemPathFromFileURL(
+ com::sun::star::uno::Reference<
+ com::sun::star::ucb::XContentProviderManager > const &
+ rManager,
+ rtl::OUString const & rBaseURL,
+ rtl::OUString const & rURL);
+
}
#endif // _UCBHELPER_FILEIDENTIFIERCONVERTER_HXX_