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


Hello

I am trying to write a test case for a my patch :
https://gerrit.libreoffice.org/#/c/2243/

Basically I have to test if the only picture of the document is in the
first or the second cell of the only table of the document (Writer).

As explained in this page : 
http://opengrok.libreoffice.org/xref/core/sw/qa/extras/
Before going to the C++ I am trying to write a macro doing my test.

I don't know much about macro. I use XrayTool but I can't figured out
how to do my test.
I tried to list the element of the cells but didn't find the picture in
it…

oTable = oDoc.getTextTables().getByIndex(0)
oCell = oTable.getCellByName("B1")
xray oCell
oElementEnum = oCell.createEnumeration()
xray oElementEnum.nextElement()
While oElementEnum.hasMoreElements()
  xray oElementEnum.nextElement()
Wend

Can someone could help me ?

Thank you in advance

-- 
Maxime de Roucy
Groupe LINAGORA - OSSA
✉ : 80 rue Roque de Fillol 92800 PUTEAUX
☎ : 01.46.96.63.44 ☏ : 06.42.00.49.09

Attachment: signature.asc
Description: This is a digitally signed message part


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.