Issue 51625 - one cell in a writer table is not selected
Summary: one cell in a writer table is not selected
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2005-07-06 10:28 UTC by steffen.grund
Modified: 2013-02-24 21:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Sample document with macro (7.51 KB, application/octet-stream)
2005-07-08 10:22 UTC, thomas.lange
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description steffen.grund 2005-07-06 10:28:02 UTC
to reproduce, insert a table in the document and execute:

	xText = ThisComponent.getText()
	xSelectionSupplier = ThisComponent.getCurrentController()
	xEnum = xText.createEnumeration()
	xTextTable = xEnum.nextElement()
	xCellRange = xTextTable.getCellRangeByName("A1:A1")

This works, if more than one cell is used, e.g. "A1:B1".
Comment 1 thomas.lange 2005-07-06 15:06:41 UTC
Comment 2 christianjunker 2005-07-07 23:13:56 UTC
Alright, reproduced for both 680 and 645 builds. Can we still get a possible fix
in 1.1.5 possibly? (tl?)
Comment 3 thomas.lange 2005-07-08 10:22:50 UTC
Created attachment 27785 [details]
Sample document with macro
Comment 4 thomas.lange 2005-07-08 10:38:17 UTC
TL->FME: The problem is in SwCrsrShell::UpdateCrsr 
we need to pass the if statement

:	if( ( pTstCrsr->HasMark() &&
:		  pDoc->IsIdxInTbl( pTstCrsr->GetPoint()->nNode ) &&
:		  ( pTblCrsr ||
:			pTstCrsr->GetNode( TRUE )->FindStartNode() !=
:			pTstCrsr->GetNode( FALSE )->FindStartNode() ))
:  	    )

then everything will be fine.

In order for this we need a function the explicitly fills 'pTblCrsr' member with
the correct values.

Please take over thanks!
Comment 5 steffen.grund 2005-07-27 15:55:15 UTC
retarget to Office later: too much rework needed for the fix.