summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vogelheim <dvo@openoffice.org>2001-02-20 12:46:04 +0000
committerDaniel Vogelheim <dvo@openoffice.org>2001-02-20 12:46:04 +0000
commitb443b806bb386422361648f0ccb7819c6d753715 (patch)
tree17774ecf64b2301ab996ed86af00721a98f19b8c
parentbcb0d73cee3836d819f0c1be5b0ed740c411658e (diff)
- added: IsGlobalDocumentSection property to section
-rw-r--r--sw/inc/unomap.hxx5
-rw-r--r--sw/inc/unoprnms.hxx5
-rw-r--r--sw/source/core/unocore/unomap.cxx5
-rw-r--r--sw/source/core/unocore/unoprnms.cxx5
-rw-r--r--sw/source/core/unocore/unosect.cxx11
5 files changed, 21 insertions, 10 deletions
diff --git a/sw/inc/unomap.hxx b/sw/inc/unomap.hxx
index 4871219dba06..edaa753027bd 100644
--- a/sw/inc/unomap.hxx
+++ b/sw/inc/unomap.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomap.hxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: os $ $Date: 2001-01-17 16:18:58 $
+ * last change: $Author: dvo $ $Date: 2001-02-20 13:46:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -140,6 +140,7 @@
#define WID_SECT_REGION 8007
#define WID_SECT_DDE_AUTOUPDATE 8008
#define WID_SECT_DOCUMENT_INDEX 8009
+#define WID_SECT_IS_GLOBAL_DOC_SECTION 8010
//Verzeichnisse
#define WID_PRIMARY_KEY 1000
diff --git a/sw/inc/unoprnms.hxx b/sw/inc/unoprnms.hxx
index af515f7648a0..29cbc2fa6343 100644
--- a/sw/inc/unoprnms.hxx
+++ b/sw/inc/unoprnms.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoprnms.hxx,v $
*
- * $Revision: 1.39 $
+ * $Revision: 1.40 $
*
- * last change: $Author: os $ $Date: 2001-02-19 08:06:16 $
+ * last change: $Author: dvo $ $Date: 2001-02-20 13:46:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -427,6 +427,7 @@ extern const SwPropNameLen __FAR_DATA UNO_NAME_CHARACTER_FORMAT_NONE ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_TEXT_POSITION ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_DOCUMENT_INDEX_MARK ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_DOCUMENT_INDEX ;
+extern const SwPropNameLen __FAR_DATA UNO_NAME_IS_GLOBAL_DOCUMENT_SECTION;
extern const SwPropNameLen __FAR_DATA UNO_NAME_TEXT_FIELD ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_BOOKMARK ;
extern const SwPropNameLen __FAR_DATA UNO_NAME_TEXT_TABLE ;
diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx
index b60e4cd372d0..0f0bce6226b0 100644
--- a/sw/source/core/unocore/unomap.cxx
+++ b/sw/source/core/unocore/unomap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unomap.cxx,v $
*
- * $Revision: 1.52 $
+ * $Revision: 1.53 $
*
- * last change: $Author: os $ $Date: 2001-02-19 12:52:37 $
+ * last change: $Author: dvo $ $Date: 2001-02-20 13:46:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1269,6 +1269,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_ENDNOTE_NUMBERING_PREFIX) ,RES_END_AT_TXTEND, &::getCppuType((const OUString*)0) , PROPERTY_NONE, MID_PREFIX },
{ SW_PROP_NAME(UNO_NAME_ENDNOTE_NUMBERING_SUFFIX) ,RES_END_AT_TXTEND, &::getCppuType((const OUString*)0) , PROPERTY_NONE, MID_SUFFIX },
{ SW_PROP_NAME(UNO_NAME_DOCUMENT_INDEX), WID_SECT_DOCUMENT_INDEX, &::getCppuType((uno::Reference<text::XDocumentIndex>*)0), PropertyAttribute::READONLY | PropertyAttribute::MAYBEVOID, 0 },
+ { SW_PROP_NAME(UNO_NAME_IS_GLOBAL_DOCUMENT_SECTION), WID_SECT_IS_GLOBAL_DOC_SECTION, &::getBooleanCppuType(), PropertyAttribute::READONLY, 0 },
COMMON_TEXT_CONTENT_PROPERTIES
_REDLINE_NODE_PROPERTIES
{0,0,0,0}
diff --git a/sw/source/core/unocore/unoprnms.cxx b/sw/source/core/unocore/unoprnms.cxx
index 47f3f94a6c19..6aef3bb5a14c 100644
--- a/sw/source/core/unocore/unoprnms.cxx
+++ b/sw/source/core/unocore/unoprnms.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unoprnms.cxx,v $
*
- * $Revision: 1.41 $
+ * $Revision: 1.42 $
*
- * last change: $Author: os $ $Date: 2001-02-19 08:05:53 $
+ * last change: $Author: dvo $ $Date: 2001-02-20 13:46:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -424,6 +424,7 @@ const SwPropNameLen __FAR_DATA UNO_NAME_CHARACTER_FORMAT_NONE
const SwPropNameLen __FAR_DATA UNO_NAME_TEXT_POSITION (MAP_CHAR_LEN("TextPosition"));
const SwPropNameLen __FAR_DATA UNO_NAME_DOCUMENT_INDEX_MARK (MAP_CHAR_LEN("DocumentIndexMark"));
const SwPropNameLen __FAR_DATA UNO_NAME_DOCUMENT_INDEX (MAP_CHAR_LEN("DocumentIndex"));
+const SwPropNameLen __FAR_DATA UNO_NAME_IS_GLOBAL_DOCUMENT_SECTION (MAP_CHAR_LEN("IsGlobalDocumentSection"));
const SwPropNameLen __FAR_DATA UNO_NAME_TEXT_FIELD (MAP_CHAR_LEN("TextField"));
const SwPropNameLen __FAR_DATA UNO_NAME_BOOKMARK (MAP_CHAR_LEN("Bookmark"));
const SwPropNameLen __FAR_DATA UNO_NAME_TEXT_TABLE (MAP_CHAR_LEN("TextTable"));
diff --git a/sw/source/core/unocore/unosect.cxx b/sw/source/core/unocore/unosect.cxx
index c28b729f5ae8..1a5ec00b1953 100644
--- a/sw/source/core/unocore/unosect.cxx
+++ b/sw/source/core/unocore/unosect.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unosect.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: dvo $ $Date: 2001-02-16 16:47:00 $
+ * last change: $Author: dvo $ $Date: 2001-02-20 13:46:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -873,6 +873,13 @@ Sequence< Any > SwXTextSection::getPropertyValues(
// else: no enclosing index found -> empty return value
}
break;
+ case WID_SECT_IS_GLOBAL_DOC_SECTION:
+ {
+ sal_Bool bRet = (NULL == pFmt) ? sal_False :
+ (NULL != pFmt->GetGlobalDocSection());
+ pRet[nProperty].setValue( &bRet, ::getCppuBooleanType());
+ }
+ break;
case FN_UNO_ANCHOR_TYPES:
case FN_UNO_TEXT_WRAP:
case FN_UNO_ANCHOR_TYPE: