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


Hi,

On Tue, May 05, 2015 at 03:05:36PM +0200, Massimiliano Fiori <massimiliano.fiori@aol.it> wrote:
I'm trying to do this hack:
https://bugs.documentfoundation.org/show_bug.cgi?id=89860
<https://bugs.documentfoundation.org/show_bug.cgi?id=89860> , i see
that all menu options in LibreOfficeMainActivity.java send an Event to
UNO, so my question is: to implement a print option i have to write a
new UNO command? I’m new in LO project, what is UNO and where can i
find documentation to hack the code?

There is .uno:Print already, but that brings up the print dialog on the
desktop, so it won't work as-is.

From the bug description, I imagine what would be better is just
exporting to PDF, and then handling the printing from the Java part.

See include/LibreOfficeKit/LibreOfficeKit.hxx, lok::Document::saveAs()
can do PDF export for you.

Documentation links:

https://wiki.documentfoundation.org/Development
https://wiki.documentfoundation.org/Development/Android

Regards,

Miklos

Attachment: signature.asc
Description: Digital signature


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.