Bug 57273 - XCell doesn't have ColSpan property
Summary: XCell doesn't have ColSpan property
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
(earliest affected) release
Hardware: x86 (IA32) Windows (All)
: medium trivial
Assignee: Not Assigned
Depends on:
Reported: 2012-11-19 12:38 UTC by John Drama
Modified: 2016-09-19 16:48 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description John Drama 2012-11-19 12:38:29 UTC
XCell xCell = xTable.getCellByName("A1");
XPropertySet xPS = UnoRuntime.queryInterface(XPropertySet.class, xCell);
Property[] props = xPS.getPropertySetInfo.getProperties();

We have "RowSpan" name in props[i].Name but we haven't got "ColSpan"
Comment 1 Michael Stahl (allotropia) 2014-02-03 20:28:58 UTC
Writer tables consist of rows and cells, there are no columns so ColSpan property doesn't make sense.

don't know about Calc tables.
Comment 2 Cor Nouws 2014-02-03 20:34:28 UTC
Hi John,

The column width is retrieved from an array TableColumnSeparators, from a row object.

I have done that in Basic some time ago.

HTH & sorry for the delay in response,
Comment 3 Eike Rathke 2014-02-04 09:55:47 UTC
There's also the XMergeableCell interface, http://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1table_1_1XMergeableCell.html
Comment 4 John Drama 2014-04-27 15:36:16 UTC
(In reply to comment #3)
> There's also the XMergeableCell interface,
> http://api.libreoffice.org/docs/idl/ref/
> interfacecom_1_1sun_1_1star_1_1table_1_1XMergeableCell.html

I've done my job another way, but thanks for this advise! It seems very useful!
Comment 5 Robinson Tryon (qubit) 2015-12-18 10:24:11 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2016-09-19 16:48:11 UTC Comment hidden (obsolete)