diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-06-04 01:43:56 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-06-04 01:43:56 +0000 |
commit | b955488d5ddd86f5e65bcc94c0cb9bf8f8a066ab (patch) | |
tree | 27a599441b01c6ff411ef7d4f11db619a81e0964 /registry | |
parent | 63cd54cffd8a447213e1dbed6c3c39e8834f4844 (diff) |
INTEGRATION: CWS sb18 (1.11.4); FILE MERGED
2004/05/18 15:35:26 sb 1.11.4.1: #i21150# Added new feature: published.
Diffstat (limited to 'registry')
-rw-r--r-- | registry/source/reflread.cxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index 9a491bcc3609..b63db27840be 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -2,9 +2,9 @@ * * $RCSfile: reflread.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2004-03-30 16:34:49 $ + * last change: $Author: obo $ $Date: 2004-06-04 02:43:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1284,7 +1284,15 @@ RTTypeClass typereg_reader_getTypeClass(void * hEntry) SAL_THROW_EXTERN_C() if (pEntry == NULL) return RT_TYPE_INVALID; - return (RTTypeClass) pEntry->readUINT16(OFFSET_TYPE_CLASS); + return (RTTypeClass) + (pEntry->readUINT16(OFFSET_TYPE_CLASS) & ~RT_TYPE_PUBLISHED); +} + +sal_Bool typereg_reader_isPublished(void * hEntry) SAL_THROW_EXTERN_C() +{ + TypeRegistryEntry * entry = static_cast< TypeRegistryEntry * >(hEntry); + return entry != 0 + && (entry->readUINT16(OFFSET_TYPE_CLASS) & RT_TYPE_PUBLISHED) != 0; } void typereg_reader_getTypeName(void * hEntry, rtl_uString** pTypeName) |