[api-dev] [EMAIL PROTECTED] REQUEST: unanswered questions

2006-12-19 Thread Michael Hoennig
Dear OpenOffice.org community, We really would like to see all questions answered, but we need your help to keep track of your questions and their answer status. Thus, if you still have a question unanswered for more than two days, feel free to place a reminder on the list. But maybe you should

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

2006-12-19 Thread Mathias Bauer
Tobias Krais wrote: > Hi together, > > this is my last day working for my current company and I'm hanging on > following thing: I have to write one more UNO package. In this > component, I need to get the current XComponent. I asked the question > how to get the current XComponent out of an XFram

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

2006-12-19 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 a

Re: [api-dev] Adding two radio buttons on a dialog

2006-12-19 Thread Tobias Krais
Hi Berned, thank you for this useful hint! I integrated it. Greetings, Tobias Berend Cornelius schrieb: > Hi Tobias, > apart from your failure I noticed that you assigned the model properties > by means of the interface "com.sun.star.beans.XPropetySet". The > interface "com.sun.star.beans.XMulti

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

2006-12-19 Thread Tobias Krais
Hi Stephan, > I did not follow this thread too closely. You should not worry about > what toString() on a UNO proxy gives you, as those are implementation > details, anyway. What is important is that those proxy objects offer > the expected functionality. What exactly is your problem with the J

[api-dev] Search & Replace with attributes

2006-12-19 Thread Matt S.
Hello: I was wondering if someone might be able to shed some light on attribute searching. I want to search and replace based on a character style. However I must be missing something in the code below, option 1 does not work but option 2 does work. The documentation states that "Any prope

[api-dev] aquireSystemWindow crashes (SystemWindowException)

2006-12-19 Thread Alamo Vallejo, Joan
This is an old problem but I think it wasn't solved... I used to open a document by clicking a button inside my applet containing the openoffice and it worked fine, but now I want to load the document automatically when I run the applet but it crashes at this point: aBean.loadFromURL( url, l

Re: [api-dev] listener in Calc

2006-12-19 Thread Niklas Nebel
Stephan Wunderlich wrote: Just a wild guess ... but when you switch to the print preview the original view is disposed and since the listener you added to the view isn't removed the office might crash. Similar. The view is closed, this is notified to the API object, but not checked later, so

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

2006-12-19 Thread Carsten Driesner
Tobias Krais wrote: Hi Carsten, I don't exactly know what you want to do. Do you want to pass arguments to a command that you want to dispatch? Hi Tobias, I wrote a little UNO component that should be able to print the document. I registered this component. Then I added a transient menu it

Re: [api-dev] Adding two radio buttons on a dialog

2006-12-19 Thread Berend Cornelius
Hi Tobias, apart from your failure I noticed that you assigned the model properties by means of the interface "com.sun.star.beans.XPropetySet". The interface "com.sun.star.beans.XMultiPropertySet" would be much more performant because by using "setPropertyValues() you can assign all control pr

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

2006-12-19 Thread Stephan Bergmann
Tobias Krais wrote: Hi Stephan, even though I'm not the Stephan you addressed ;-) I'd try to query the XPrintable at you xModel instead of myComp. Yes, that solved my first qestion: -%<- XController xController = xFrame.getController(); com.sun.star.frame.XModel xModel = xController.g