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


On Sat, Aug 12, 2017 at 05:36:58AM +0200, jan d <dittrich.c.jan@gmail.com> wrote:
Just for documenting it for people who might try this in the future: I
managed to create the UnoService and have it reaact to the shortcut.
It seems that services can only be created directly and in the scope of the
file/import that is run: Having it created inside a function did not work,
moving it out to the first level (in python this means: no indention) it
works. If someone knows why that is the case, I'd be ahppy if we could add
a sentence on it to the PyUno documentation or so.

One reason might be that some services are specific to a document,
others are not. E.g. you can create a new text document as a global
object but when you create a new bookmark, you have to created it inside
a text document. That means it does matter what factory (global or the
one of an existing object) you use when you create new objects.

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.