Bug 57273

Summary: XCell doesn't have ColSpan property
Product: LibreOffice Reporter: John Drama <daermon>
Component: sdkAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: trivial CC: cno, erack, jmadero.dev, michael.stahl
Priority: medium    
Version: 3.6.3.2 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

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,
Cor
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)