On 21/02/13 17:58, Maxime de Roucy wrote:
Hello
[...]
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…
[...]
Can someone could help me ?
it's not the cell you want to look at but the picture/shape/graphic, it
will have an associated anchor, it is the anchor which
controls where it is located, try
Dim Anchor as Object
Dim Shape as Object
Dim Table as Object
Set Shape = ThisComponent.Drawpage(0) ' first shape on page
Set Anchor = Shape.Anchor
Set Table = Anchor.TextTable
MsgBox Shape.Name & " is located as cell " & Anchor.Cell.CellName & " in
Table " & Table.Name
Noel
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.