Re: [sc-dev] Rubber/Pencil function for Calc

2007-08-02 Thread Eike Rathke
Hi Max, On Tuesday, 2007-07-31 21:55:18 +0200, Max Giesbert wrote: The constructor gets a XComponentContext passed over. Now how do I get the XComponent of the actually opened spreadsheet from it? XComponentContext is not related to the current application or documents. It provides

Re: [sc-dev] Rubber/Pencil function for Calc

2007-07-31 Thread Max Giesbert
Short question now that I have the Netbeans plug-in running (http://www.openoffice.org/issues/show_bug.cgi?id=80183): The constructor gets a XComponentContext passed over. Now how do I get the XComponent of the actually opened spreadsheet from it? thx for help!

Re: [sc-dev] Rubber/Pencil function for Calc

2007-07-27 Thread Niklas Nebel
Max Giesbert wrote: thx to Niklas and Daniel i got it running. Attached you find a Java class which can be registered with XEnhancedMouseClickBroadcaster. please have a look at it. i am looking forward to your feedback. Now I finally found the time to look at this. Yes, it looks good. still

Re: [sc-dev] Rubber/Pencil function for Calc

2007-06-26 Thread Max Giesbert
Hi everyone, thx to Niklas and Daniel i got it running. Attached you find a Java class which can be registered with XEnhancedMouseClickBroadcaster. please have a look at it. i am looking forward to your feedback. still some questions remain: 1. does it make sense to create a UNO package out of

Re: [sc-dev] Rubber/Pencil function for Calc

2007-06-22 Thread Daniel Rentz
Max Giesbert schrieb: actually i have problems with the very first line of code you sent: acc = ThisComponent.CurrentController.Frame.ComponentWindow.AccessibleContext i am doing development right now using java. so i do get the ComponentWindow by: XWindow window =

Re: [sc-dev] Rubber/Pencil function for Calc

2007-06-21 Thread Daniel Rentz
Max Giesbert schrieb: Thx again. feels like i am already there. i got the XCell now from the Target but how can i get the location of the cell on the screen. i read about XAccessibleComponent but XCell doesn't seem to implement it... I have written a tiny test script in Basic recently, that

Re: [sc-dev] Rubber/Pencil function for Calc

2007-06-20 Thread Niklas Nebel
Max Giesbert wrote: Thanks for pointing to XEnhancedMouseClickBroadcaster . I register a XEnhancedMouseClickHandler to it. But I only have an EnhancedMouseEvent in the mousePressed method. How can i find out the cell clicked with that? I didn't find any suiting methods. It's in the Target

Re: [sc-dev] Rubber/Pencil function for Calc

2007-06-20 Thread Max Giesbert
Thx again. feels like i am already there. i got the XCell now from the Target but how can i get the location of the cell on the screen. i read about XAccessibleComponent but XCell doesn't seem to implement it... Niklas Nebel wrote: Max Giesbert wrote: Thanks for pointing to