diff options
author | Andreas Schlüns <as@openoffice.org> | 2001-01-26 12:49:12 +0000 |
---|---|---|
committer | Andreas Schlüns <as@openoffice.org> | 2001-01-26 12:49:12 +0000 |
commit | 21abf3b6dc898dd8d03bc39dba6abc4d8bf8aad1 (patch) | |
tree | d0f9dce9134fe3881a2d5f090325e00ca233d855 /framework | |
parent | 722c50837a81c1125f23e33b79ba8ca7c700b364 (diff) |
support preferred types
Diffstat (limited to 'framework')
-rw-r--r-- | framework/inc/classes/filtercache.hxx | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/framework/inc/classes/filtercache.hxx b/framework/inc/classes/filtercache.hxx index 0950f67a1ec3..593bbff4135e 100644 --- a/framework/inc/classes/filtercache.hxx +++ b/framework/inc/classes/filtercache.hxx @@ -2,9 +2,9 @@ * * $RCSfile: filtercache.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: as $ $Date: 2000-11-30 09:54:52 $ + * last change: $Author: as $ $Date: 2001-01-26 13:49:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -235,6 +235,11 @@ typedef HASH_MAP< OUSTRING , // struc TStringHashFunction , ::std::equal_to< OUSTRING > > TPerformanceHash; +typedef HASH_MAP< OUSTRING , // structure of hash: key< internal name >{ value< TType > } + OUSTRING , + TStringHashFunction , + ::std::equal_to< OUSTRING > > TPreferredHash; // structure of hash: key< extension >{ value< internal type name > } + //***************************************************************************************************************** // Defines "pointers" to items of our hash maps. typedef TStringList::const_iterator TConstStringIterator ; @@ -243,6 +248,7 @@ typedef TFilterHash::const_iterator TConstFilter typedef TDetectorHash::const_iterator TConstDetectorIterator ; typedef TLoaderHash::const_iterator TConstLoaderIterator ; typedef TPerformanceHash::const_iterator TConstPerformanceIterator ; +typedef TPreferredHash::const_iterator TConstPreferredIterator ; typedef CheckedIterator< TStringList > TCheckedStringListIterator ; typedef CheckedIterator< TTypeHash > TCheckedTypeIterator ; @@ -581,18 +587,19 @@ class FilterCache private: - static TTypeHash* m_pTypeCache ; - static TFilterHash* m_pFilterCache ; - static TDetectorHash* m_pDetectorCache ; - static TLoaderHash* m_pLoaderCache ; - static TPerformanceHash* m_pFastFilterCache ; - static TPerformanceHash* m_pFastDetectorCache; - static TPerformanceHash* m_pFastLoaderCache ; - static sal_Int32 m_nRefCount ; - static OUSTRING m_sDefaultDetector ; - static OUSTRING m_sGenericLoader ; - static TDetector* m_pDefaultDetector ; - static TLoader* m_pGenericLoader ; + static TTypeHash* m_pTypeCache ; + static TFilterHash* m_pFilterCache ; + static TDetectorHash* m_pDetectorCache ; + static TLoaderHash* m_pLoaderCache ; + static TPerformanceHash* m_pFastFilterCache ; + static TPerformanceHash* m_pFastDetectorCache ; + static TPerformanceHash* m_pFastLoaderCache ; + static TPreferredHash* m_pPreferredTypesCache ; + static sal_Int32 m_nRefCount ; + static OUSTRING m_sDefaultDetector ; + static OUSTRING m_sGenericLoader ; + static TDetector* m_pDefaultDetector ; + static TLoader* m_pGenericLoader ; }; // class FilterCache |