Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi Helmar,

On Thu, 2012-03-08 at 17:52 +0100, Helmar Spangenberg wrote:
I have difficulties to access table columns (and rows) via the UNO
interface. I have no problems to create a table, but I am not able to
manipulate the properties of the columns.

        I've no idea how all this is supposed to work :-) but if I wanted to
dig out something that did, I'd try to copy an existing sample - if you
'git grep TextTable' in the source checkout, you'll see where this is
implemented in writer, and some samples:

        odk/examples/CLI/VB.NET/WriterDemo/WriterDemo.vb

        for example. In this case you're going to need to read the code I think
to work out what's up. Personally, I loathe the (IMHO brain-damaged)
design choice of using (y, x) instead of (x, y) as all right thinking
people do ;-) but at least you seem to get that right - there are 5
columns.

tabelle->initialize(2, 5);
Reference<XTableColumns> tcols (tabelle->getColumns(), UNO_SET_THROW);
pval <<= tcols->getByIndex(2);

        So I'd read around sw/source/core/unocore/unotbl.cxx in particular:

uno::Any SwXTableColumns::getByIndex(sal_Int32 nIndex)

        And see what is going on there :-)

        HTH,

                Michael.

-- 
michael.meeks@suse.com  <><, Pseudo Engineer, itinerant idiot


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.