diff options
author | Andreas Bille <abi@openoffice.org> | 2001-07-13 07:19:42 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2001-07-13 07:19:42 +0000 |
commit | 1ba7c0c6d1d85dc6eb1d606cc1560287540731e2 (patch) | |
tree | c164d543eef9c53b4e29a2797ed93032616233dc /xmlhelp | |
parent | eb18c090dc518b1a00a731c23cf4a71f7e9cd66a (diff) |
Adding pure virtual functions
and getElementType
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/treeview/tvread.hxx | 55 |
1 files changed, 49 insertions, 6 deletions
diff --git a/xmlhelp/source/treeview/tvread.hxx b/xmlhelp/source/treeview/tvread.hxx index fae6994f8536..22b47305f797 100644 --- a/xmlhelp/source/treeview/tvread.hxx +++ b/xmlhelp/source/treeview/tvread.hxx @@ -14,6 +14,9 @@ #ifndef _UCBHELPER_MACROS_HXX #include <ucbhelper/macros.hxx> #endif +#ifndef _COM_SUN_STAR_UNO_TYPE_HXX_ +#include <com/sun/star/uno/Type.hxx> +#endif #ifndef _CPPUHELPER_WEAK_HXX_ #include <cppuhelper/weak.hxx> #endif @@ -96,8 +99,7 @@ namespace treeview { getElementType( ) throw( com::sun::star::uno::RuntimeException ) { - // hae - return com::sun::star::uno::Type(); + return getCppuVoidType(); } @@ -114,7 +116,7 @@ namespace treeview { const com::sun::star::uno::Reference< com::sun::star::util::XChangesListener >& aListener ) throw( com::sun::star::uno::RuntimeException ) { - // No changes possible + // read only } virtual void SAL_CALL @@ -122,7 +124,7 @@ namespace treeview { const com::sun::star::uno::Reference< com::sun::star::util::XChangesListener >& aListener ) throw( com::sun::star::uno::RuntimeException ) { - // No changes possible + // read only } @@ -146,9 +148,42 @@ namespace treeview { { } + + // Abstract functions + // XNameAccess + + virtual com::sun::star::uno::Any SAL_CALL + getByName( const rtl::OUString& aName ) + throw( com::sun::star::container::NoSuchElementException, + com::sun::star::lang::WrappedTargetException, + com::sun::star::uno::RuntimeException) = 0; + + virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL + getElementNames( ) + throw( com::sun::star::uno::RuntimeException ) = 0; + + virtual sal_Bool SAL_CALL + hasByName( const rtl::OUString& aName ) + throw( com::sun::star::uno::RuntimeException ) = 0; + + + // XHierarchicalNameAccess + + virtual com::sun::star::uno::Any SAL_CALL + getByHierarchicalName( const rtl::OUString& aName ) + throw( com::sun::star::container::NoSuchElementException, + com::sun::star::uno::RuntimeException ) = 0; + + virtual sal_Bool SAL_CALL + hasByHierarchicalName( const rtl::OUString& aName ) + throw( com::sun::star::uno::RuntimeException ) = 0; + }; // end class TVBase + + + class TVRead : public TVBase { @@ -162,6 +197,8 @@ namespace treeview { ~TVRead(); + // XNameAccess + virtual com::sun::star::uno::Any SAL_CALL getByName( const rtl::OUString& aName ) throw( com::sun::star::container::NoSuchElementException, @@ -188,12 +225,17 @@ namespace treeview { hasByHierarchicalName( const rtl::OUString& aName ) throw( com::sun::star::uno::RuntimeException ); + private: rtl::OUString Title; rtl::OUString TargetURL; rtl::Reference< TVChildTarget > Children; - }; + + }; // end class TVRead + + + @@ -240,7 +282,8 @@ namespace treeview { ConfigData init( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMSF ); - }; + + }; // end class TVChildTarget } |