diff options
author | Andreas Bille <abi@openoffice.org> | 2000-10-17 11:39:23 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2000-10-17 11:39:23 +0000 |
commit | e06b888ca36050fc6247bb8629622216589b23f6 (patch) | |
tree | 8d26c4212f6a757e3fa5c8d1b4d87156224b01fd /ucb/source/ucp/file/prov.cxx | |
parent | ff20dd1b0c8abd9e3e4e7673ec73634231a8830f (diff) |
Implemented Interface XFileIdentifierConverter
Diffstat (limited to 'ucb/source/ucp/file/prov.cxx')
-rw-r--r-- | ucb/source/ucp/file/prov.cxx | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/ucb/source/ucp/file/prov.cxx b/ucb/source/ucp/file/prov.cxx index a10fd6e3e688..487020c6358e 100644 --- a/ucb/source/ucp/file/prov.cxx +++ b/ucb/source/ucp/file/prov.cxx @@ -2,9 +2,9 @@ * * $RCSfile: prov.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: kso $ $Date: 2000-10-16 14:53:36 $ + * last change: $Author: abi $ $Date: 2000-10-17 12:39:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -777,4 +777,35 @@ FileProvider::removeVetoableChangeListener( +// XFileIdentifierConverter +rtl::OUString SAL_CALL FileProvider::getHostName() + throw( uno::RuntimeException ) +{ + initProperties(); + return m_HostName; +} + +rtl::OUString SAL_CALL FileProvider::getFileURLFromNormalizedPath( const rtl::OUString& NormalizedPath ) + throw( IllegalIdentifierException, + uno::RuntimeException ) +{ + rtl::OUString aUrl; + sal_Bool err = m_pMyShell->getUrlFromUnq( NormalizedPath,aUrl ); + if( err ) + throw IllegalIdentifierException(); + + return aUrl; +} + +rtl::OUString SAL_CALL FileProvider::getNormalizedPathFromFileURL( const rtl::OUString& FileURL ) + throw( IllegalIdentifierException, + uno::RuntimeException ) +{ + rtl::OUString aUnq; + sal_Bool err = m_pMyShell->getUnqFromUrl( FileURL,aUnq ); + if( err ) + throw IllegalIdentifierException(); + + return aUnq; +} |