summaryrefslogtreecommitdiff
path: root/registry/source/reflread.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 10:51:17 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-02-03 10:51:17 +0000
commit1b6be304d45e0214a223b674a285a875348a44b6 (patch)
tree0f53aea73f4794560ce655372bf979381489f35f /registry/source/reflread.cxx
parenta2a55e3b3cd33c0ea952d361efd2df2690162ba8 (diff)
INTEGRATION: CWS sb10 (1.8.36); FILE MERGED
2003/12/10 09:26:23 sb 1.8.36.1: #114000# Adapted to multiple-inheritance interface types.
Diffstat (limited to 'registry/source/reflread.cxx')
-rw-r--r--registry/source/reflread.cxx33
1 files changed, 31 insertions, 2 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index 48dcb43ce205..b0c12378a62a 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: reflread.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: hr $ $Date: 2003-03-26 15:37:45 $
+ * last change: $Author: hr $ $Date: 2004-02-03 11:51:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1687,6 +1687,33 @@ static RTFieldAccess TYPEREG_CALLTYPE getReferenceAccess(TypeReaderImpl hEntry,
return pEntry->m_pReferences->getReferenceAccess(index);
}
+static sal_uInt32 TYPEREG_CALLTYPE getMISuperTypeCount(TypeReaderImpl hEntry)
+{
+ TypeRegistryEntry* pEntry = (TypeRegistryEntry*) hEntry;
+
+ if (pEntry == NULL) return 0;
+
+ if (pEntry->m_pCP == NULL) pEntry->init();
+
+ return pEntry->m_nSuperTypes;
+}
+
+static void TYPEREG_CALLTYPE getMISuperTypeName(TypeReaderImpl hEntry, rtl_uString** pSuperTypeName, sal_uInt16 index)
+{
+ TypeRegistryEntry* pEntry = (TypeRegistryEntry*) hEntry;
+
+ if (pEntry == NULL)
+ {
+ rtl_uString_new(pSuperTypeName);
+ return;
+ }
+
+ if (pEntry->m_pCP == NULL) pEntry->init();
+
+ const sal_Char* pTmp = pEntry->m_pCP->readUTF8NameConstant(pEntry->readUINT16(pEntry->m_offset_SUPERTYPES + (index * sizeof(sal_uInt16))));
+ if ( pTmp )
+ rtl_string2UString( pSuperTypeName, pTmp, rtl_str_getLength(pTmp), RTL_TEXTENCODING_UTF8, OUSTRING_TO_OSTRING_CVTFLAGS);
+}
extern "C" RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(void)
{
@@ -1727,6 +1754,8 @@ extern "C" RegistryTypeReader_Api* TYPEREG_CALLTYPE initRegistryTypeReader_Api(v
aApi.getReferenceType = &getReferenceType;
aApi.getReferenceDoku = &getReferenceDoku;
aApi.getReferenceAccess = &getReferenceAccess;
+ aApi.getMISuperTypeCount = &getMISuperTypeCount;
+ aApi.getMISuperTypeName = &getMISuperTypeName;
return (&aApi);
}