Re: [api-dev] [SOLVED] How to get the state of a radio button on a XDialog in Java

2006-12-23 Thread Tobias Krais
Hi Cor, I wrote a little XDialog showing two radio buttons. But now I have the problem, that I don't know how to find out which radio Button was selected when the OK Button is pressed. Can you tell me where to start. In OOoBasic the getState of a radio-button returns Ttrue if it is

Re: [api-dev] Getting the XComponent out of a XFrame in a UNO Component

2006-12-23 Thread Tobias Krais
Hi Matthias, Am I right when I assume that myComp is the same as in the first line and that it does not make a difference in using it? No. If so, why is the xStorable derived from myComp = null and the xStorable derived from this.xComponent the correct value? myComp points to a

Re: [api-dev] Getting the XComponent out of a XFrame in a UNO Component

2006-12-23 Thread Tobias Krais
Hi again, one addition: Now the things I wanted to do are working. Thank you for your explanations. I had a method taking an XComponent. After your explanations I understood, that I can give over a XModel instead. The method did not complain. That is one thing I did not understand. Greetings

Re: [api-dev] Passing a String to a CommandURL

2006-12-23 Thread Tobias Krais
Hi Carsten, Second solution: I can extend the CommandURL: -%- menuItemProperties[0] = new PropertyValue(); menuItemProperties[0].Name = CommandURL; menuItemProperties[0].Value = .Judas:PrintTrays?Printer:string=LJ1100; -%- Is this correct? But how can I access the values?

[api-dev] Protocol handler and Thread.sleep()

2006-12-23 Thread Tobias Krais
Hi together again, I implemented a protocol handler for the CommandURL .Judas:PrintTrays. The target of this new protocol is to print a document on different printer trays (page one on tray with letter paper, the others on the tray with normal paper). After sending the print command via API I