summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2000-11-17 13:06:06 +0000
committerOliver Specht <os@openoffice.org>2000-11-17 13:06:06 +0000
commit11adca29577f11895d7bbd963e2e20cb7d4a326f (patch)
tree2ccbfa46057bb4811d501d1967dc90bd29a0d0a6
parentcd7f9a9c38b1a27a7fa50b8ff9497cc8041a9bc5 (diff)
SwXCell: TextSection property added
-rw-r--r--sw/source/core/unocore/unomap.cxx5
-rw-r--r--sw/source/core/unocore/unotbl.cxx15
2 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/unocore/unomap.cxx b/sw/source/core/unocore/unomap.cxx
index 3e87be37c22c..28d9ec2edaab 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.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: os $ $Date: 2000-11-16 15:26:37 $
+ * last change: $Author: os $ $Date: 2000-11-17 14:06:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1002,6 +1002,7 @@ const SfxItemPropertyMap* SwUnoPropertyMapProvider::GetPropertyMap(sal_uInt16
{ SW_PROP_NAME(UNO_NAME_TOP_BORDER_DISTANCE), RES_BOX, &::getCppuType((const sal_Int32*)0), 0, TOP_BORDER_DISTANCE |CONVERT_TWIPS },
{ SW_PROP_NAME(UNO_NAME_BOTTOM_BORDER_DISTANCE), RES_BOX, &::getCppuType((const sal_Int32*)0), 0, BOTTOM_BORDER_DISTANCE|CONVERT_TWIPS },
{ 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,0,0}
};
aMapArr[nPropertyId] = aCellMap_Impl;
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 27f72fe6f794..963721c26049 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.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: mib $ $Date: 2000-11-17 07:36:13 $
+ * last change: $Author: os $ $Date: 2000-11-17 14:06:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -961,13 +961,12 @@ uno::Reference< XTextCursor > SwXCell::createTextCursorByRange(const uno::Refer
if((pStartNode || IsValid()) && SwXTextRange::XTextRangeToSwPaM(aPam, xTextPosition))
{
const SwStartNode* pSttNd = pStartNode ? pStartNode : pBox->GetSttNd();
- const SwStartNode* pTmp = aPam.GetNode()->FindStartNode();
- while(pTmp && pTmp->IsSectionNode())
- {
- pTmp = pTmp->FindStartNode();
- }
+ //skip sections
+ SwStartNode* p1 = aPam.GetNode()->FindStartNode();
+ while(p1->IsSectionNode())
+ p1 = p1->FindStartNode();
- if(pTmp == pSttNd)
+ if( p1 == pSttNd )
aRef = (XWordCursor*)new SwXTextCursor(this , *aPam.GetPoint(), CURSOR_TBLTEXT, GetDoc(), aPam.GetMark());
}
else