Issue 23386 - API: sw.SwXTableColumns::XTableColumns
Summary: API: sw.SwXTableColumns::XTableColumns
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P4 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
: 35453 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-12-10 09:55 UTC by stephan.wunderlich
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stephan.wunderlich 2003-12-10 09:55:40 UTC
The method insertByIndex() doesn't throw an exception if the index is greater
the the column count.

To reproduce the behaviour just run the following macro.

Dim nRows As Long, nCols As Long

nRows = 5
nCols = 5

oDoc = ThisComponent

oCursor = oDoc.Text.createTextCursor()
oTable = oDoc.createInstance("com.sun.star.text.TextTable")
oTable.initialize(nRows, nCols)

oCursor.gotoEnd(false)
oDoc.Text.insertTextContent(oCursor, oTable, false)

oColumns = oTable.Columns	

'oColumns.insertByIndex(-1,1)
oColumns.insertByIndex(17,1)
Comment 1 thomas.lange 2003-12-16 11:25:13 UTC
.
Comment 2 stephan.wunderlich 2004-05-03 12:23:39 UTC
SW: doesn't seem to be essential for OOo2.0 => target OOo Later 
Comment 3 thomas.lange 2005-07-25 13:01:23 UTC
Fixed in CWS tl14.

Files changed:
offapi:
- com/sun/star/table/XTableColumns.idl  new revision: 1.7.212.1
- com/sun/star/table/XTableRows.idl  new revision: 1.7.212.1
sw:
- unotbl.cxx  new revision: 1.91.168.3


Added comments about exceptions being throen when the index/count combination
is out of bounds.

TL: Note need to ask OS about the change to SwXCellRange::setPropertyValue where
lcl_setCrsrPropertyValue is used now.

Comment 4 thomas.lange 2005-08-08 10:16:36 UTC
*** Issue 35453 has been marked as a duplicate of this issue. ***
Comment 5 chne 2005-09-21 08:41:33 UTC
new target OO2.0.1
Comment 6 Oliver Specht 2005-11-08 12:20:35 UTC
Reassigned for verification

re-open issue and reassign to sw@openoffice.org
Comment 7 Oliver Specht 2005-11-08 12:20:48 UTC
reassign to sw@openoffice.org
Comment 8 Oliver Specht 2005-11-08 12:20:53 UTC
reset resolution to FIXED
Comment 9 stephan.wunderlich 2005-11-09 11:36:39 UTC
ok in cws_tl14 => verified
Comment 10 stephan.wunderlich 2005-11-17 13:11:56 UTC
sw: works as expected in src680_m140 => closed