summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unotbl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unotbl.cxx')
-rw-r--r--sw/source/core/unocore/unotbl.cxx22
1 files changed, 20 insertions, 2 deletions
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();