diff options
author | Muthu Subramanian <sumuthu@novell.com> | 2011-05-03 22:13:59 +0530 |
---|---|---|
committer | Muthu Subramanian <sumuthu@novell.com> | 2011-05-03 22:16:03 +0530 |
commit | 8c0b019baeaffb0a6339e63a63fd4379eb7fb30b (patch) | |
tree | 5ce8aa35bd8ac1cf87b81915af826607780d1440 | |
parent | Remove tools/table.hxx include. (diff) | |
download | core-8c0b019baeaffb0a6339e63a63fd4379eb7fb30b.tar.gz core-8c0b019baeaffb0a6339e63a63fd4379eb7fb30b.zip |
Adding a public getNamespaceURL method to fastparser.
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 13 | ||||
-rw-r--r-- | sax/source/fastparser/fastparser.hxx | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index bff58a6a5817..e24721fb0d7c 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -525,6 +525,19 @@ void SAL_CALL FastSaxParser::registerNamespace( const OUString& NamespaceURL, sa throw IllegalArgumentException(); } +OUString SAL_CALL FastSaxParser::getNamespaceURL( const OUString& rPrefix ) throw(IllegalArgumentException, RuntimeException) +{ + try + { + return GetNamespaceURL( OUStringToOString( rPrefix, RTL_TEXTENCODING_UTF8 ) ); + } + catch(Exception) + { + ; + } + throw IllegalArgumentException(); +} + void FastSaxParser::setErrorHandler(const Reference< XErrorHandler > & Handler) throw (RuntimeException) { maData.mxErrorHandler = Handler; diff --git a/sax/source/fastparser/fastparser.hxx b/sax/source/fastparser/fastparser.hxx index 77f04c798433..09a1d72be9ce 100644 --- a/sax/source/fastparser/fastparser.hxx +++ b/sax/source/fastparser/fastparser.hxx @@ -112,6 +112,7 @@ public: virtual void SAL_CALL setFastDocumentHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastDocumentHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setTokenHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XFastTokenHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL registerNamespace( const ::rtl::OUString& NamespaceURL, sal_Int32 NamespaceToken ) throw (::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); + virtual ::rtl::OUString SAL_CALL getNamespaceURL( const ::rtl::OUString& rPrefix ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setErrorHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XErrorHandler >& Handler ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setEntityResolver( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XEntityResolver >& Resolver ) throw (::com::sun::star::uno::RuntimeException); virtual void SAL_CALL setLocale( const ::com::sun::star::lang::Locale& rLocale ) throw (::com::sun::star::uno::RuntimeException); |