Android Print

Miklos Vajna vmiklos at collabora.co.uk
Tue May 5 06:58:27 PDT 2015


Hi,

On Tue, May 05, 2015 at 03:05:36PM +0200, Massimiliano Fiori <massimiliano.fiori at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150505/6827eb6c/attachment.sig>


More information about the LibreOffice mailing list