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 | 68228aa0dce5c70c45153014914980dfb20cdb5c (patch) | |
tree | 954e1e12c0884fa3c99e6c388cf9dc95890f82fa /registry/source | |
parent | 7f69852c3191d4bbc0bc6f95b159e92c549558ea (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/source')
-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 d381f9417..950dc4930 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) |