Hi Alexander,
On Wed, 2011-05-11 at 16:14 +0600, Alexander O. Anisimov wrote:
I need to work with cells in text tables using UNO API from Java.
Riight :-) so - you get to use the UNO API - fun ...
XCell xCell = xCellRange.getCellByPosition(j, i);
XPropertySet cellSet =
UnoRuntime.queryInterface(XPropertySet.class, xCell);
int v = (short) cellSet.getPropertyValue("VertOrient");
One of the best ways to work out how the UNO API really works - is to
read the underling C++ implementation. After a bit of doing this - you
also begin to realise that you wanted to write your extension as
something built into the core, in C++ as well ;-)
In default text table, value of VertOrient property is 0, which equal
to VertOrientation.NONE. But in fact, when I open LibreOffice Writer,
all cells in table have top vertical alignment.
http://cgit.freedesktop.org/libreoffice/writer/tree/sw/source/core/unocore/unoprnms.cxx#n373
or
http://cgit.freedesktop.org/libreoffice/writer/tree/sw/source/core/unocore/unotbl.cxx#n3931
or thereabouts - I guess (?).
HTH,
Michael.
--
michael.meeks@novell.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.