diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-06-04 01:31:38 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-06-04 01:31:38 +0000 |
commit | 501e88f0bfacad4aca366e44f3251ff554b820d9 (patch) | |
tree | b1c3781576189d773ce257272cc3839722ad7645 /stoc | |
parent | 0d4b4f987bb5bd53f7fa49d9735cfe0fdd474e9f (diff) |
INTEGRATION: CWS sb18 (1.14.4); FILE MERGED
2004/04/08 14:35:36 sb 1.14.4.1: #i21150# Fixed UNOIDL typedef support.
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/registry_tdprovider/base.hxx | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/stoc/source/registry_tdprovider/base.hxx b/stoc/source/registry_tdprovider/base.hxx index 4d54cd7038fa..16ce6203f300 100644 --- a/stoc/source/registry_tdprovider/base.hxx +++ b/stoc/source/registry_tdprovider/base.hxx @@ -2,9 +2,9 @@ * * $RCSfile: base.hxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: rt $ $Date: 2004-03-30 16:14:01 $ + * last change: $Author: obo $ $Date: 2004-06-04 02:31:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -118,6 +118,10 @@ using namespace com::sun::star::reflection; namespace stoc_rdbtdp { +Reference< XTypeDescription > resolveTypedefs( + Reference< XTypeDescription > const & type); + + ::osl::Mutex & getMutex(); //-------------------------------------------------------------------------------------------------- @@ -241,14 +245,16 @@ class InterfaceTypeDescriptionImpl : public WeakImplHelper1< XInterfaceTypeDescr OUString _aName; Sequence< OUString > _aBaseTypes; - Sequence< Reference< XInterfaceTypeDescription2 > > _xBaseTDs; + Sequence< Reference< XTypeDescription > > _xBaseTDs; Sequence< OUString > _aOptionalBaseTypes; - Sequence< Reference< XInterfaceTypeDescription2 > > _xOptionalBaseTDs; + Sequence< Reference< XTypeDescription > > _xOptionalBaseTDs; sal_Int32 _nBaseOffset; Sequence< Reference< XInterfaceMemberTypeDescription > > _members; bool _membersInit; + void checkInterfaceType(Reference< XTypeDescription > const & type); + public: InterfaceTypeDescriptionImpl( const Reference< XHierarchicalNameAccess > & xTDMgr, const OUString & rName, const Sequence< OUString > & rBaseTypes, @@ -265,10 +271,10 @@ public: virtual Reference< XTypeDescription > SAL_CALL getBaseType() throw(::com::sun::star::uno::RuntimeException); virtual Sequence< Reference< XInterfaceMemberTypeDescription > > SAL_CALL getMembers() throw(::com::sun::star::uno::RuntimeException); - virtual Sequence< Reference< XInterfaceTypeDescription2 > > SAL_CALL - getBaseTypes() throw (RuntimeException); + virtual Sequence< Reference< XTypeDescription > > SAL_CALL getBaseTypes() + throw (RuntimeException); - virtual Sequence< Reference< XInterfaceTypeDescription2 > > SAL_CALL + virtual Sequence< Reference< XTypeDescription > > SAL_CALL getOptionalBaseTypes() throw (RuntimeException); }; @@ -386,7 +392,7 @@ class ServiceTypeDescriptionImpl : public WeakImplHelper1< XServiceTypeDescripti Reference< XHierarchicalNameAccess > _xTDMgr; bool _bInitReferences; - Reference< XInterfaceTypeDescription > _xInterfaceTD; + Reference< XTypeDescription > _xInterfaceTD; std::auto_ptr< Sequence< Reference< XServiceConstructorDescription > > > _pCtors; Sequence< Reference< XServiceTypeDescription > > _aMandatoryServices; @@ -444,9 +450,8 @@ public: // XServiceTypeDescription2 virtual sal_Bool SAL_CALL isSingleInterfaceBased() throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Reference< XInterfaceTypeDescription > - SAL_CALL getInterface() - throw (::com::sun::star::uno::RuntimeException); + virtual ::com::sun::star::uno::Reference< XTypeDescription > SAL_CALL + getInterface() throw (::com::sun::star::uno::RuntimeException); virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::reflection::XServiceConstructorDescription > > @@ -557,7 +562,7 @@ class SingletonTypeDescriptionImpl : public WeakImplHelper1< XSingletonTypeDescr OUString _aName; OUString _aBaseName; Reference< XHierarchicalNameAccess > _xTDMgr; - Reference< XInterfaceTypeDescription > _xInterfaceTD; + Reference< XTypeDescription > _xInterfaceTD; Reference< XServiceTypeDescription > _xServiceTD; void init(); @@ -589,7 +594,7 @@ public: // XSingletonTypeDescription2 virtual sal_Bool SAL_CALL isInterfaceBased() throw (::com::sun::star::uno::RuntimeException); - virtual Reference< XInterfaceTypeDescription > SAL_CALL getInterface() + virtual Reference< XTypeDescription > SAL_CALL getInterface() throw (::com::sun::star::uno::RuntimeException); }; |