Re: Open web page from dialog

2016-06-12 Thread Jan Rheinländer
Thanks everybody. This is how it works now: Reference< XControl > xDialogControl(xDialog, UNO_QUERY_THROW); Reference< XMultiServiceFactory > xControlFactory(xDialogControl->getModel(), UNO_QUERY_THROW); Reference< XPropertySet > xPSLinkHelp(xControlFactory->createInstance("com.s

Re: Open web page from dialog

2016-06-12 Thread Oliver Brinzing
Hi Jan, I found some examples: http://www.programcreek.com/java-api-examples/index.php?api=com.sun.star.awt.XControl Maybe this can help Regards Oliver Am 12.06.2016 um 19:36 schrieb Jan Rheinländer : > > Hi Fernand, > > thank you for the tip with UnoControlFixedHyperlinkModel. Now this i

Re: Open web page from dialog

2016-06-12 Thread Jan Rheinländer
Hi Fernand, thank you for the tip with UnoControlFixedHyperlinkModel. Now this is what I have: Reference xDialog; // Created from XDialogProvider somewhere earlier in the code First question: How do I get a MultiServiceFactory from XDialog to create the control? If I use the MultiComponentFactor

Re: Open web page from dialog

2016-06-12 Thread Fernand Vanrie
Op 11/06/2016 om 21:25 schreef Jan Rheinländer: jan, Andrew there is a special control who opens hyperlinks oDialogModel.createInstance( "com.sun.star.awt.UnoControlFixedHyperlinkModel") the control has a URL propperty hope it helps Greetz Fernand Hi, is it possible to open a website i

Re: Open web page from dialog

2016-06-11 Thread Andrew Pitonyak
I think this is usually done by invoking a command to the operating system. Cannot easily lookup how this is done right now It is likely os dependent. Sent from BlueMail On Jun 11, 2016, 3:24 PM, at 3:24 PM, "Jan Rheinländer" wrote: >Hi, > >is it possible to open a website in the user'

Open web page from dialog

2016-06-11 Thread Jan Rheinländer
Hi, is it possible to open a website in the user's preferred browser from a dialog (or from a Basic macro, or through the UNO API)? I see that the "Help" - "About" dialog does this, but it is defined in the source in Glade format, different to the Basic dialogs. Thanks for any ideas! Jan _