Hi, On Tue, May 05, 2015 at 03:05:36PM +0200, Massimiliano Fiori <massimiliano.fi...@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
signature.asc
Description: Digital signature
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice