Re: [dev] Trying to read a form in Java

2008-06-09 Thread Sascha Jensen
Hi, just guessing: You use the wrong variable to extract the ControlProperties. Your for-loop defines a virable j, but you are using i. Agnisys schrieb: Hello all, I'm trying to read a Writer (OO 2.4) form in Java (IDE: Netbeans 6.1, java 1.6u6) on Windows 2003. I have two buttons in the

Re: [dev] Cursor Position during DD operation

2007-11-05 Thread Sascha Jensen
Hi Ariel, thank for your advice ;) regards Sascha Ariel Constenla-Haile schrieb: Hi Sascha, Sascha Jensen escribió: Hi again, since nobody answered to my question, is there maybe a more appropriate place to ask those things? Should this rather be placed on the writer list? if you

[dev] Cursor Position during DD operation

2007-10-25 Thread Sascha Jensen
Hi, i have a question about the TextCursor position during a drag and drop operation. I use dd in OOo Writer where i would like to insert some text at the cursors position that is displayed while dragging over the document. I use the TextViewCursor available at the TextViewCursorSupplier of

Re: [dev] Tracking the caret

2006-08-18 Thread Sascha Jensen
Sascha Jensen schrieb: W schrieb: [Originally posted in OOoForum.org Forum - OpenOffice.org Macros and API] lo, I don´t know if this might help you, but I used the Accessibility API to install DragDrop Listeners. The problem is that afaik events are not posted through the window hierarchy

Re: [dev] paragraph number

2006-07-18 Thread Sascha Jensen
Mohammad Alhammouri schrieb: Hello there, is there a similar function to the page number function xPageCursor.getPage(), that finds the paragraph number within the text document. if not is there any way to find that number in JAVA ? thanks in advance. Regards, Mohammad. hi, i am not

Re: [dev] how to select a paragraph

2006-07-17 Thread Sascha Jensen
Mohammad Alhammouri schrieb: You can install an XSelectionChangeListener. This will notify you whenever selection changes. Inside the listener you can use the principle demostrated in the script xsel = thiscomponent.currentcontroller.getselection xrange = xsel(0) xcur =

[dev] Problems with listeners in text document / SWriter crash

2006-06-07 Thread Sascha Jensen
hi , currently i develope a reporting system. As Template-Editor for my Report-Templates I use swriter, which is embedded in my application window. References to items are inserted by dragging items from a tree onto the document view using an XDropTargetListener which is installed into some

Re: [dev] Problems with listeners in text document / SWriter crash

2006-06-07 Thread Sascha Jensen
Sascha Jensen schrieb: hi , currently i develope a reporting system. As Template-Editor for my Report-Templates I use swriter, which is embedded in my application window. References to items are inserted by dragging items from a tree onto the document view using an XDropTargetListener which

Re: [dev] Problems with listeners in text document / SWriter crash

2006-06-07 Thread Sascha Jensen
Christian Junker schrieb: I just tested a bit with the SelectionChangeListener, but cannot confirm a crash upon opening up FilePrintPreview. In your case it is very likely due to some IO processing you're doing (in wrong manner or at a wrong time). So in order to see what is giving you

Re: [dev] Problems with listeners in text document / SWriter crash

2006-06-07 Thread Sascha Jensen
hi christian, So in order to see what is giving you problems, it would be nice to catch a glimpse at the relevant code portion(s). I have some code for my installation of the XDropTargetListener since the other problem is resolved (see attachment). This thing is really mysterious to me. If