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


I tried any value to not invoke warn window, it not helps. Maybe it is my foult wchile loading service manager?.

It is like this:
            xLocalContext = BootstrapSocketConnector
.bootstrap("C:\\Program Files (x86)\\LibreOffice 4\\program\\soffice.exe");
            xLocalServiceManager = xLocalContext.getServiceManager();
            urlResolver = xLocalServiceManager.createInstanceWithContext(
                    "com.sun.star.bridge.UnoUrlResolver", xLocalContext);
            xUnoUrlResolver = (XUnoUrlResolver) UnoRuntime.queryInterface(
                    XUnoUrlResolver.class, urlResolver);
            initialObject = xUnoUrlResolver
.resolve("uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager");
XPropertySet xPropertySet = (XPropertySet) UnoRuntime.queryInterface(
                    XPropertySet.class, initialObject);
defaultRemoteContext = xPropertySet.getPropertyValue("DefaultContext");
            xRemoteContext = (XComponentContext) UnoRuntime.queryInterface(
                    XComponentContext.class, defaultRemoteContext);
            xRemoteServiceManager = xRemoteContext.getServiceManager();
            desktop = xRemoteServiceManager.createInstanceWithContext(
                    "com.sun.star.frame.Desktop", xRemoteContext);

and load component like this:
            xComponentLoader = UnoRuntime.queryInterface(
                    XComponentLoader.class, desktop);
            xComponent = xComponentLoader.loadComponentFromURL(
                        sourceURL, "_blank", 0, properties);

In initialization of service in java console appears:
CE> Warning: -nologo is deprecated.  Use --nologo instead.
CE> Warning: -nodefault is deprecated.  Use --nodefault instead.
CE> Warning: -norestore is deprecated.  Use --norestore instead.
CE> Warning: -nolockcheck is deprecated.  Use --nolockcheck instead.
CE> Warning: -accept=socket,host=localhost,port=8100;urp; is deprecated. Use --accept=socket,host=localhost,port=8100;urp; instead.

It can be bug or it can be some king of old initialization from my side. Is another correct way to load service and not see this warnings?. (I wont use it from java code, not from system script)

W dniu 2015-02-25 o 17:58, Michael Stahl pisze:
On 25.02.2015 09:46, Bartłomiej Mikos PrimeSoft Polska wrote:
Good morning,

I solved the problem. I thougth than UpdateDocMode.NEVER_UPDATE will set
up loading without warning. It is not true, the problem solved set libre
office by hand in options -> set update document from on request to
never update. It solving the problem. I thinking now why UpdateDocMode
property not working and how set Never Update documents from code (its
not good idea to setting libre office conf by hand :D).
         PropertyValue[] properties = new PropertyValue[3];

         properties[0] = getHiddenProperty();

         properties[1] = new PropertyValue();
         properties[1].Name = "UpdateDocMode";
         properties[1].Value = new Short((short) 1);
which values did you try? 1 is QUIET_UPDATE which *does* update if that
is possible without asking information from user.

did you try NO_UPDATE = 0 too?  if that would also update links then
that would clearly be a bug.



Z poważaniem,
Bartłomiej Mikos
--
Bartłomiej Mikos
software engineer
bartlomiej.mikos@primesoft.pl <mailto:bartlomiej.mikos@primesoft.pl>
www.primesoft.pl <http://www.primesoft.pl>

PrimeSoft Polska Sp. z o.o.
ul. Perkuna 25, 61-615 Poznań tel/fax 61/833-17-72
NIP 7831592998 Regon 634610845 KRS 0000221565 Kapitał zakł. 50000pln
NORDEA Bank Polska S.A. PL 50 1440 1130 0000 0000 0336 0806

*Dla Państwa już od 10 lat*
Dnia 25 września 2014 roku odbyła się konferencja "10-lecie PrimeSoft Polska: okiem klienta, okiem dostawcy – wymiana doświadczeń biznesowych". W wydarzeniu wzięli udział przedstawiciele firm i instytucji będących klientami oraz partnerami biznesowymi PrimeSoft Polska. Relacja z wydarzenia <http://www.youtube.com/watch?v=FjsrjSmaNaQ>


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.