On 13.02.2019 12:45, Miklos Vajna via LibreOffice wrote:
Hi,
On Tue, Feb 12, 2019 at 09:27:15AM +0000, LORENZO Vincent <vincent.lorenzo@cea.fr> wrote:
I would like to add a caption, to an inserted image in a text
document, but I don't find how to do that... Please do you have
pointer/documentation for me ?
I think captions are just a UI feature. The doc model just stores a text
frame around the image and the image is followed by the caption itself.
(I.e. later it's not possible to reliably detect if some content around
an image in a frame was created by hand or using the captions UI code.)
So you can do the same "manually" using the UNO API. When in doubt, see
what UNO API the ODT import uses to create the doc model based on the
input markup.
And actually, if an image is not intended to be floating, but (as seen
in majority of cases) is a part of normal text flow, then the frame
could be not needed at all - simply add an image anchored as character,
then add a paragraph with required style and numbering range field, then
continue with other paragraphs. This makes the document structure
clearer. Just an advise based on own experience.
--
Best regards,
Mike Kaganski
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.