diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 14:27:21 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 14:27:21 +0000 |
commit | bf9ec91bc4737b89c45480d9ef2e09646e1c9c0c (patch) | |
tree | 929e8ef4086d86c3c4ef5a157ec1adcabdf6452b /codemaker/inc | |
parent | 537d8b2649a458ac29cfaced9109ede31096836a (diff) |
INTEGRATION: CWS sdksample (1.6.14); FILE MERGED
2004/07/05 11:01:51 jsc 1.6.14.1: #i30954# use registry keys directly instead of typenames
Diffstat (limited to 'codemaker/inc')
-rw-r--r-- | codemaker/inc/codemaker/typemanager.hxx | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/codemaker/inc/codemaker/typemanager.hxx b/codemaker/inc/codemaker/typemanager.hxx index 248421d3f1d7..07b0c0d34b9f 100644 --- a/codemaker/inc/codemaker/typemanager.hxx +++ b/codemaker/inc/codemaker/typemanager.hxx @@ -2,9 +2,9 @@ * * $RCSfile: typemanager.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: obo $ $Date: 2004-06-04 03:09:24 $ + * last change: $Author: rt $ $Date: 2005-01-31 15:27:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -72,7 +72,10 @@ namespace typereg { class Reader; } -typedef ::std::list< Registry* > RegistryList; +//typedef ::std::list< Registry* > RegistryList; +typedef ::std::vector< Registry* > RegistryList; +typedef ::std::pair< RegistryKey, sal_Bool > KeyPair; +typedef ::std::vector< KeyPair > RegistryKeyList; #if defined( _MSC_VER ) && ( _MSC_VER < 1200 ) typedef ::std::__hash_map__ @@ -125,13 +128,21 @@ public: virtual sal_Bool isValidType(const ::rtl::OString& name) const { return sal_False; } + virtual ::rtl::OString getTypeName(RegistryKey& rTypeKey) const + { return ::rtl::OString(); } + virtual RegistryKey getTypeKey( const ::rtl::OString& name, sal_Bool * pIsExtraType = 0 ) const { return RegistryKey(); } + virtual RegistryKeyList getTypeKeys(const ::rtl::OString& name) const + { return RegistryKeyList(); } virtual typereg::Reader getTypeReader( const ::rtl::OString& name, sal_Bool * pIsExtraType = 0 ) const = 0; + virtual typereg::Reader getTypeReader(RegistryKey& rTypeKey) const = 0; virtual RTTypeClass getTypeClass(const ::rtl::OString& name) const { return RT_TYPE_INVALID; } + virtual RTTypeClass getTypeClass(RegistryKey& rTypeKey) const + { return RT_TYPE_INVALID; } virtual void setBase(const ::rtl::OString& base) {} virtual ::rtl::OString getBase() const { return ::rtl::OString(); } @@ -174,14 +185,19 @@ public: sal_Bool init(const StringVector& regFiles, const StringVector& extraFiles = StringVector() ); + ::rtl::OString getTypeName(RegistryKey& rTypeKey) const; + sal_Bool isValidType(const ::rtl::OString& name) const { return searchTypeKey(name, 0).isValid(); } RegistryKey getTypeKey( const ::rtl::OString& name, sal_Bool * pIsExtraType = 0 ) const { return searchTypeKey(name, pIsExtraType); } + RegistryKeyList getTypeKeys(const ::rtl::OString& name) const; typereg::Reader getTypeReader( const ::rtl::OString& name, sal_Bool * pIsExtraType = 0 ) const; + typereg::Reader getTypeReader(RegistryKey& rTypeKey) const; RTTypeClass getTypeClass(const ::rtl::OString& name) const; + RTTypeClass getTypeClass(RegistryKey& rTypeKey) const; void setBase(const ::rtl::OString& base); ::rtl::OString getBase() const { return m_pImpl->m_base; } |