[Libreoffice-bugs] [Bug 114312] UNO services for Document Settings absent from API

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Dec 18 18:48:50 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=114312

Maxim Monastirsky <momonasmon at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |momonasmon at gmail.com

--- Comment #3 from Maxim Monastirsky <momonasmon at gmail.com> ---
I can't reproduce the problem under Fedora 27 with LO 5.4.4.2-1.fc27. This code
works perfectly for me:

XComponent xComp = xCLoader.loadComponentFromURL("private:factory/swriter",
"_blank", 0, new PropertyValue[0]);
XMultiServiceFactory xMSF =
UnoRuntime.queryInterface(XMultiServiceFactory.class, xComp);
Object xSettings = xMSF.createInstance("com.sun.star.text.DocumentSettings");
XPropertySet xDocProps = UnoRuntime.queryInterface(XPropertySet.class,
xSettings);
xDocProps.setPropertyValue("EmbedFonts", new Boolean(true));

Does this minimal example work for you?

(In reply to Fernando Volquind from comment #2)
> Is there any way to edit the original post?
No way currently.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171218/33bc6c4a/attachment.html>


More information about the Libreoffice-bugs mailing list