[api-dev] [code snippet] Adding a Combo-box to a Toolbar

2006-02-15 Thread Aidan Butler
for being an initial author. All Rights Reserved. -- snippet language=Java application=Office keywords keywordToolbarController/keyword keywordCombobox/keyword keywordCombo-Box/keyword keywordToolbar/keyword /keywords authors author id=aidan initial=true email=[EMAIL PROTECTED]Aidan Butler

Re: [api-dev] Creating a docking window in Java

2006-02-15 Thread Aidan Butler
Hi, I also read through the Programmatic control of Toolbar Items: ComboBox possible? thread, and while I found it useful, it missed out some of the practical steps for creating the toolbar controller. I have attached some code which may be of use below. Compiling this code and registering it

Re: [api-dev] TextPortion Enumeration not working with redlines

2005-10-07 Thread Aidan Butler
Hi, yes I have noticed that as well. I think that it has something to do with the redline itself, rather than the position of the cursor. That is, if the range that is to be enumerated starts inside the redline, the enumeration does not work correctly. -Aidan sos wrote: Aidan, I tryed out

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-09 Thread Aidan Butler
Hello, The URL of the document is stored as a property of the document component. The following python code will print the URL #ctx is the current context desktop = ctx.ServiceManager.createInstanceWithContext( \ com.sun.star.frame.Desktop, ctx ) document =