summaryrefslogtreecommitdiff
path: root/registry/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-04 01:44:11 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-04 01:44:11 +0000
commitc6e13a5cb0814b224850c6a7afcd49275b77e939 (patch)
tree3213712bef45e532c1429e4ae0fd59e33afe8ff1 /registry/source
parentb955488d5ddd86f5e65bcc94c0cb9bf8f8a066ab (diff)
INTEGRATION: CWS sb18 (1.9.4); FILE MERGED
2004/05/18 15:35:26 sb 1.9.4.1: #i21150# Added new feature: published.
Diffstat (limited to 'registry/source')
-rw-r--r--registry/source/reflwrit.cxx18
1 files changed, 11 insertions, 7 deletions
diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx
index aa05267b57ea..e64bd3822c4a 100644
--- a/registry/source/reflwrit.cxx
+++ b/registry/source/reflwrit.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: reflwrit.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: rt $ $Date: 2004-03-30 16:35:01 $
+ * last change: $Author: obo $ $Date: 2004-06-04 02:44:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -786,6 +786,7 @@ public:
rtl::OString const & documentation,
rtl::OString const & fileName,
RTTypeClass RTTypeClass,
+ bool published,
const OString& typeName,
sal_uInt16 superTypeCount,
sal_uInt16 FieldCount,
@@ -803,6 +804,7 @@ TypeWriter::TypeWriter(typereg_Version version,
rtl::OString const & documentation,
rtl::OString const & fileName,
RTTypeClass RTTypeClass,
+ bool published,
const OString& typeName,
sal_uInt16 superTypeCount,
sal_uInt16 fieldCount,
@@ -810,7 +812,9 @@ TypeWriter::TypeWriter(typereg_Version version,
sal_uInt16 referenceCount)
: m_refCount(1)
, m_version(version)
- , m_typeClass(RTTypeClass)
+ , m_typeClass(
+ static_cast< enum RTTypeClass >(
+ RTTypeClass | (published ? RT_TYPE_PUBLISHED : 0)))
, m_typeName(typeName)
, m_nSuperTypes(superTypeCount)
, m_doku(documentation)
@@ -1489,7 +1493,7 @@ static void TYPEREG_CALLTYPE setReferenceData(TypeWriterImpl hEntry,
void * typereg_writer_create(
typereg_Version version, rtl_uString const * documentation,
- rtl_uString const * fileName, RTTypeClass typeClass,
+ rtl_uString const * fileName, RTTypeClass typeClass, sal_Bool published,
rtl_uString const * typeName, sal_uInt16 superTypeCount,
sal_uInt16 fieldCount, sal_uInt16 methodCount, sal_uInt16 referenceCount)
SAL_THROW_EXTERN_C()
@@ -1497,8 +1501,8 @@ void * typereg_writer_create(
try {
return new TypeWriter(
version, toByteString(documentation), toByteString(fileName),
- typeClass, toByteString(typeName), superTypeCount, fieldCount,
- methodCount, referenceCount);
+ typeClass, published, toByteString(typeName), superTypeCount,
+ fieldCount, methodCount, referenceCount);
} catch (std::bad_alloc &) {
return 0;
}
@@ -1529,7 +1533,7 @@ static TypeWriterImpl TYPEREG_CALLTYPE createEntry(
sal_uInt16 superTypeCount = rtl_uString_getLength(superTypeName) == 0
? 0 : 1;
TypeWriterImpl t = typereg_writer_create(
- TYPEREG_VERSION_0, empty.pData, empty.pData, typeClass, typeName,
+ TYPEREG_VERSION_0, empty.pData, empty.pData, typeClass, false, typeName,
superTypeCount, fieldCount, methodCount, referenceCount);
if (superTypeCount > 0) {
typereg_writer_setSuperTypeName(t, 0, superTypeName);