diff options
author | Oliver Specht <os@openoffice.org> | 2000-11-17 09:51:18 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2000-11-17 09:51:18 +0000 |
commit | 19d15b2b3620a51268d3b1660cacd02540867e17 (patch) | |
tree | 84359589ad17274987846010c910eeca3fd6910f | |
parent | 91b26812a74108d5bdc92f1dfc640b6ddaf60a93 (diff) |
SwXTextRange::getText correced
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index 8855be5e90cd..0da4e52e30d2 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unoobj.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: os $ $Date: 2000-11-15 15:00:48 $ + * last change: $Author: os $ $Date: 2000-11-17 10:51:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3797,11 +3797,17 @@ uno::Reference< XText > SwXTextRange::getText(void) throw( uno::RuntimeExceptio ((SwModify*)aObjectDepend.GetRegisteredIn())-> Remove(&((SwXTextRange*)this)->aObjectDepend); } - else if(eRangePosition == RANGE_IN_CELL && - aObjectDepend.GetRegisteredIn()) + else if(eRangePosition == RANGE_IS_TABLE && + aObjectDepend.GetRegisteredIn() ) { - //die Tabelle muss schon einen Parent kennen! - DBG_WARNING("not implemented") + SwFrmFmt* pTblFmt = (SwFrmFmt*)aObjectDepend.GetRegisteredIn(); + SwDoc* pDoc = pTblFmt->GetDoc(); + SwTable* pTable = SwTable::FindTable( pTblFmt ); + SwTableNode* pTblNode = pTable->GetTableNode(); + SwPosition aPosition( *pTblNode ); + Reference< XTextRange > xRange = CreateTextRangeFromPosition(pDoc, + aPosition, 0); + xParentText = xRange->getText(); } else { |