summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/unocore/unomap.cxx5
-rw-r--r--sw/source/core/unocore/unotbl.cxx22
2 files changed, 23 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx
index bb85b77e9c3a..3e87be37c22c 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.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: mib $ $Date: 2000-11-15 14:04:24 $
+ * last change: $Author: os $ $Date: 2000-11-16 15:26:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -975,6 +975,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_TEXT_WRAP), FN_UNO_WRAP, &::getCppuType((const sal_Int16*)0), PropertyAttribute::READONLY, 0xff },
{ SW_PROP_NAME(UNO_LINK_DISPLAY_NAME), FN_PARAM_LINK_DISPLAY_NAME, &::getCppuType((const OUString*)0), PropertyAttribute::READONLY, 0xff},
{ SW_PROP_NAME(UNO_NAME_USER_DEFINED_ATTRIBUTES), RES_UNKNOWNATR_CONTAINER, &::getCppuType((uno::Reference<container::XNameContainer>*)0), PropertyAttribute::MAYBEVOID, 0 },
+ { SW_PROP_NAME(UNO_NAME_TEXT_SECTION), FN_UNO_TEXT_SECTION, &::getCppuType((uno::Reference<text::XTextSection>*)0), PropertyAttribute::MAYBEVOID|PropertyAttribute::READONLY ,0 },
{0,0}
};
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index b7390d912e13..aeb7c5d18b97 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unotbl.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: os $ $Date: 2000-11-15 15:00:49 $
+ * last change: $Author: os $ $Date: 2000-11-16 15:26:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -74,6 +74,9 @@
#ifndef _UNOSTYLE_HXX
#include <unostyle.hxx>
#endif
+#ifndef _SECTION_HXX //autogen
+#include <section.hxx>
+#endif
#ifndef _UNOCRSR_HXX //autogen
#include <unocrsr.hxx>
@@ -3126,6 +3129,21 @@ uno::Any SwXTextTable::getPropertyValue(const OUString& rPropertyName) throw( be
case RES_ANCHOR:
//AnchorType ist readonly und maybevoid und wird nicht geliefert
break;
+ case FN_UNO_TEXT_SECTION:
+ {
+ SwDoc* pDoc = pFmt->GetDoc();
+ SwTable* pTable = SwTable::FindTable( pFmt );
+ SwTableNode* pTblNode = pTable->GetTableNode();
+ SwSectionNode* pSectionNode = pTblNode->FindSectionNode();
+ if(pSectionNode)
+ {
+ const SwSection& rSect = pSectionNode->GetSection();
+ Reference< XTextSection > xSect =
+ SwXTextSections::GetObject( *rSect.GetFmt() );
+ aRet <<= xSect;
+ }
+ }
+ break;
default:
{
const SwAttrSet& rSet = pFmt->GetAttrSet();