Re: [api-dev] Seeking code-snippets or hints for ...

2005-11-11 Thread Carsten Driesner
Hi Rony, A shutdown ought not be necessary, at least not for components, Basic scripts, type libraries etc. UI configuration may be problematic, because not all instances inside a running OOo process react on configuration changes. A restart is not necessary for user interface changes

Re: [api-dev] Add menu to XTopWindow

2005-11-11 Thread Carsten Driesner
Paolo Lacatena wrote: Hi, I want add a menu to a window. In Developer's Guide 2.0 I read that XTopWindow interface has a method setMenuBar() but this is not usable at this time because XMenuBar interface is deprecated. However, on IDL reference XMenuBar is not signed as deprecated. Can I use

Re: [api-dev] UNO package setting keybindings

2005-11-14 Thread Carsten Driesner
[EMAIL PROTECTED] wrote: How? Does anyone have an example that sets accelerators? Hi Jorge, here is a little Basic example on how to set accelerators. REM * BASIC * REM *** Example to set a keyboard shortcut with the new ui configuration API Sub Main REM *** Initialize

Re: [api-dev] Managing a menu system wide

2006-01-30 Thread Carsten Driesner
Hi Felix, you have to do the following: 1. Create a folder in Office installation/share/config/soffice.cfg 2. Copy your XML files (f.e. writermenubar.xml) to the folder. 3. Add the following XML snippet to Office installation/share/registry/data/org/openoffice/Office/Common.xcu ... node

Re: [api-dev] Managing a menu system wide

2006-02-01 Thread Carsten Driesner
Felix E. Klee wrote: Am Montag, 30. Januar 2006 13:16 schrieb Carsten Driesner: you have to do the following: Thanks for the quick reply. I do have a couple of questions left: 1. What do you mean by Office installation? Is it the system wide installation (e.g. /opt/OpenOffice.org1.1.4

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

2006-02-14 Thread Carsten Driesner
Jérémy Bethmont wrote: Hello, I'm trying to create a docking window inside OpenOffice (2.0.1) like the Gallery or the Media Player in the tools menu. I try to achieve this but i cannot find any documentation or snippet code about this. I can create a dockingwindow and i think i have to create

Re: [api-dev] Adding menus / menu items at Runtime

2006-02-20 Thread Carsten Driesner
Tobias Krais wrote: Hi Carsten, sounds very good. At the moment I am reading your document http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw You are right that examples are missing. The most important task of the document is to describe the design

Re: [api-dev] Java: Getting Access to a menu in menubar

2006-02-20 Thread Carsten Driesner
Tobias Krais wrote: Hi ML, in Java I try to get access to the file menu during runtime. Now I am able to create a new menu, but I don't get access the file menu to be able to change it, see comments -%- com.sun.star.ui.XUIElement myMenubar =

Re: [api-dev] Java: Getting Access to a menu in menubar

2006-02-21 Thread Carsten Driesner
Tobias Krais wrote: Hi Carsten, please allow me a more detailed question. -%- PropertyValue[] oDateiMenuSettings = (PropertyValue[]) UnoRuntime.queryInterface(PropertyValue[].class, oMenuBarSettings.getByIndex(0)); -%- I have now as you adviced a

Re: [api-dev] Java: Getting Access to a menu in menubar

2006-02-22 Thread Carsten Driesner
Hi Tobias, The problem is that I am a newbie. I'm doing this stuff since 2-3 weeks... Ok, now I see. I wasn't aware that you're a newbie. That gave me the hint. Here the steps: -%- PropertyValue[] oDateiMenuSettings = (PropertyValue[])

Re: [api-dev] Java: Getting Access to a menu in menubar

2006-02-27 Thread Carsten Driesner
Tobias Krais wrote: Hi Carsten, your ideas made me think... Applying all your ideas the code looks like this. I think it will be useful: Hi Tobias, I have two more comments to your code. -%- com.sun.star.frame.XDesktop xDesktop = (com.sun.star.frame.XDesktop)

Re: [api-dev] Renaming menu entries: changes don't apply

2006-02-28 Thread Carsten Driesner
Tobias Krais wrote: Hi together, again a question from me... I want to rename a menu entry, e.g. the entry Save as... to Secure Copy. Please see the code below (esp. the comment). after calling this routine I apply the changes to the root container. Do I miss something? Is this a bug or

Re: [api-dev] Java: Managing keyboard shortcuts - where to start

2006-02-28 Thread Carsten Driesner
Tobias Krais wrote: Once again hi to all, my next task is to remove and add some keyboard shortcuts to an OpenOffice... I looked up the Dev-Guide but it does not tell much about keybord shortcuts. Is it possible to manage the keyboard shortcuts via Java? If yes, where can I start? Can you help

Re: [api-dev] Disable Commands transient

2006-03-09 Thread Carsten Driesner
Tobias Krais wrote: Hi Carsten thanks for the hint. Since some days I read and try these chapters. If I understand right, to make such changes transient I have to disble the menu items, toolbar icons and shortcut keys transient concerning this special commandurl. And I have to hope that a user

Re: [api-dev] Calc addin - Custom toolbar not enabled - further info

2006-03-15 Thread Carsten Driesner
Tim Tow wrote: I put in some messageboxes to see when queryDispatch is called (and to see any exceptions thrown). It appears the queryDispatch method doesn't get called until I hit my custom menu (and those items are initialized). I was expecting them to be called on application startup

Re: [api-dev] UNO package setting keybindings

2006-03-17 Thread Carsten Driesner
Bart Aimar wrote: Hi, I need some help to modify the code below for set the shortcut in Calc document. I try to change the line: oModuleCfgMgr =_ oModuleCfgMgrSupplier.getUIConfigurationManager(com.sun.star.text.TextDocument ) to oModuleCfgMgr =_

Re: [api-dev] About LayoutManager

2006-03-20 Thread Carsten Driesner
Tuomas Räsänen wrote: Hi, I've been trying to find out how to hide UIElements in frames and come to a conclusion that the XLayoutManager interface is the key. Am I right? Alas, I haven't figured out how to do it properly. Following piece of code doesn't work. What should I do differently?

Re: [api-dev] toolbar glue or adding to standard toolbar groups

2006-03-23 Thread Carsten Driesner
[EMAIL PROTECTED] wrote: Hi, all! It seems to be new behaviour in OOo 2.0 that when a new toolbar group is added (by means of a .xcu) it appears floating by default so the user is free and encouraged to place it wherever they see fit. I myself find this great, but I have a client that find it

Re: [api-dev] toolbar glue or adding to standard toolbar groups

2006-03-23 Thread Carsten Driesner
Laurent Godard wrote: Hi Carsten Again, I don't know what you mean with a toolbar group. There is a set of default configuration properties for a toolbar. One of the properties controls the docking state, but you can only change the default for every toolbar. i think the question is - i

Re: [api-dev] toolbar glue or adding to standard toolbar groups

2006-03-24 Thread Carsten Driesner
[EMAIL PROTECTED] wrote: Thanks, Carsten! Selon Carsten Driesner [EMAIL PROTECTED]: Currently I only have a hard way to get this done. If you really need it, just tell me and I can give you a description. So you mean it's possible after all? If so, please just give a brief outline

[api-dev] Proposal: Easy to use complex toolbar controls for add-ons

2006-04-19 Thread Carsten Driesner
and give feedback. I hope that at least most of the controls can be ready for OOo 2.0.3. Regards, Carsten Driesner Technical paper URL: http://framework.openoffice.org/files/documents/25/3310/file_3310.dat?filename=Technical%20concept%20paper%20%2d%20Generic%20and%20easy%20to%20use%20complex

Re: [api-dev] Proposal: Easy to use complex toolbar controls for add-ons

2006-04-20 Thread Carsten Driesner
Paolo Mantovani wrote: Hi Carsten, This is really great, but I've just one question: In your tecnical specification I read: Every add-on which wants to support a toolbar must be a dispatch provider. Therefore one communication protocol for the new controls will be the normal duo

Re: [api-dev] Proposal: Easy to use complex toolbar controls for add-ons

2006-04-20 Thread Carsten Driesner
Paolo Mantovani wrote: Alle 09:44, giovedì 20 aprile 2006, Carsten Driesner ha scritto: [...] Hi Paolo, I see your point and want to discuss your proposal with the scripting developer. I will add more information after this discussion. Great! thank you! Currently I see some problems

Re: [api-dev] OfficeToolbar titlebar?

2006-04-20 Thread Carsten Driesner
Tim Tow wrote: In my Essbase addon, I have a custom toolbar that now works properly. However, if the users undocks the toolbar and drags it down into it's own window. The title bar on the resultant window is 'Add-on 1'. Is there a way I can customize that title bar to say 'Essbase'? I didn't

Re: [api-dev] OfficeToolbar titlebar?

2006-04-20 Thread Carsten Driesner
Didier Dorange-Pattoret wrote: Hello Tim, I hope that this code will work for you ... :-) The user have to restart OOo, included quickstarter. oConfigAccess = GetConfigAccess( /org.openoffice.Office.UI.WriterWindowState/UIElements/States, True ) If oConfigAccess.HasByName(

Re: [api-dev] OfficeToolbar Context property (enhancement request)

2006-05-08 Thread Carsten Driesner
Tim Tow wrote: I have a custom toolbar in my add-in for Calc and have specified the context for the toolbar buttons, however, some of my customers have reported the toolbar itself is showing up in Impress and Draw with no buttons. Is it possible to add a context property to the toolbar itself

[api-dev] Easy to use complex toolbar controls for add-ons

2006-05-10 Thread Carsten Driesner
Hi all, I have just finished the technical specification for Easy to use complex toolbar controls for add-ons. The latest OpenOffice.org developer build (SRC680m168) includes most of the specified controls. All missing controls will be part of OOo 2.0.4. I also created a demo add-on which

Re: [api-dev] adding action event to sub menus

2006-08-03 Thread Carsten Driesner
Madhan Ponnusamy wrote: hai, I had added menus and submenus in openoffice impress now i want to add action event to those submenus i.e) if the user click the submenu a java class file should be called. How to do this? Hi Madhan, You need to implement a protcol handler for your commands which

Re: [api-dev] adding action event to sub menus

2006-08-04 Thread Carsten Driesner
Madhan Ponnusamy wrote: Hi Carsten, Thank u...i had already searched in the code snippetbase but i cannot find the solution. any way now i got a doubt in macros. I had created menus programtically and i tried to link the menus to macros by the code PropertyValue[] oMenuItem = CreateMenuItem(

Re: [api-dev] Protocol handlers

2006-08-09 Thread Carsten Driesner
Madhan Ponnusamy wrote: Hi Madhan, Hi Carsten, As u told i am now trying to develop the menus using addons and protocol handlers. That's sounds good. Normally this is the best way to add your own menu items which should call your code. can u tell me this flow is corret or not Addons(creating

Re: [api-dev] Disabling Commands at runtime depending on context

2006-09-08 Thread Carsten Driesner
Jimmy wrote: 2.) How can I gray-out and enable commands at runtime? I got my DispatchInterceptor to gray out commands when initiated but how can I change the behaviour at runtime? Do I have to write more than one DispatchProviderInterceptor and release and register them all the time depending

Re: [api-dev] HoTo disable Close Document icon

2006-09-13 Thread Carsten Driesner
Harald Weyhing wrote: Hi everybody, I need to disable or better remove the small x like icon on the upper right. I tried to intercept .uno.CloseDoc, but this will only intercepts Ctrl-W, but not when you click the x. I am using OOo 2.0.3 and OOoBean. Any help would be greatly appreciated.

Re: [api-dev] Disabling Commands at runtime depending on context

2006-09-14 Thread Carsten Driesner
it? If so I'd have to build up a container that holds the corresponding Listeners for a specific Dispatch object, right? Hi Jimmy, Yes that's the clue. The dispatch object must maintain a container for all listeners (see first line in DispatchObject::addStatusListener in my pseudo code). Carsten

Re: [api-dev] Document Based Toolbars

2006-10-06 Thread Carsten Driesner
Fernand Vanrie wrote: This same question landed in a wrong thread so i repeat: Can a Document based custom_toolbar be copied or moved by the API, using a basic macro ? Hi Fernand, Yes it's possible to do it using the ui configuration manager API. Please have a look the following Basic

Re: [api-dev] Saving Toolbar In Document

2006-10-06 Thread Carsten Driesner
Knut Olav Bøhmer wrote: Hi, Is it possible to save toolbars an buttons dynamical created from a basic macro, in a document? Hi Knut, Yes it's possible to do it using the UI configuration manager API. I have just answered a question how someone can copy toolbars from one document to another

Re: [api-dev] Refreshing a modified menu bar

2006-10-13 Thread Carsten Driesner
Julien Galand wrote: Hi everybody, I have written an add-on which inserts its menu in the OfficeMenuBar as a top-level menu. Instead of using a .xcu installed with the add-on package, it creates and inserts its menu dynamically, using the com.sun.star.configuration module to modify OO's

Re: [api-dev] Refreshing a modified menu bar

2006-10-16 Thread Carsten Driesner
Christoph Jopp wrote: Hi Carsten, you wrote: You can use the layout manager from the frame to destroy and create the menu bar again. The current implementation doesn't listen to changes in the Addon.xcu file. The current implementation does it not. Will there be an upcoming implementation in

Re: [api-dev] Refreshing a modified menu bar

2006-10-16 Thread Carsten Driesner
Christoph Jopp wrote: Hi Carsten, thank you for the information. Just thought that the 'package registry' is somehow merged into the 'office registry' and so extensions could profit of the same updates/refreshing as the 'office'. Although I'm not sure, if the 'office' has such a update/refresh

Re: [api-dev] Refreshing a modified menu bar

2006-10-16 Thread Carsten Driesner
Julien Galand wrote: Le 13 oct. 06, à 16:54, Carsten Driesner a écrit : Although this is a possible way to implement your add-on it looks a bit strange and has a drawback you should consider. If the user choose to uninstall your add-on all the changes you did programmatically

Re: [api-dev] Refreshing a modified menu bar

2006-10-17 Thread Carsten Driesner
Julien Galand wrote: Le 16 oct. 06, à 13:38, Carsten Driesner a écrit : I checked my code and it works without any problem. OpenOffice.org internally uses the same mechanism, if you customize the menubar with Tools-Customize. Please check if you use the correct frame to destroy/create

Re: [api-dev] Set title of custom Writer toolbar

2006-10-18 Thread Carsten Driesner
Jimmy wrote: I tried to set the title of my Writer addon Toolbar (OfficeToolBar) but can't get it to display the new one instead of Add-On 1. The xcu's are in my zip file which installs without an error message. -- My WriterWindowState.xcu

Re: [api-dev] Refreshing a modified menu bar

2006-10-18 Thread Carsten Driesner
Julien Galand wrote: Le 17 oct. 06, à 17:02, Carsten Driesner a écrit : You're right that these APIs are not well documented, only the IDL files have comments. That's one reason why they are currently not published. We want to finalize them for OpenOffice.org 2.2 (a formal process

Re: [api-dev] Refreshing a modified menu bar

2006-10-19 Thread Carsten Driesner
Julien Galand wrote: Le 18 oct. 06, à 14:46, Carsten Driesner a écrit : I think you should use the API to set your keyboard shortcut. Just have a look the a the following code snippet how to do it: http://codesnippets.services.openoffice.org/Office/Office.ManagingKeyboardShortcuts.snip

Re: [api-dev] Refreshing a modified menu bar

2006-10-20 Thread Carsten Driesner
Bart Aimar wrote: Paolo Mantovani ha scritto: Hi Bart, Ciao Paolo, It works for me. It adds a new item named Standard.Module1.Test under the File menu of the current document. I am a stupid man... :-( I espected a NEW Menu... In seek to decipher the code, I have not read the first

Re: [api-dev] Refreshing a modified menu bar

2006-10-20 Thread Carsten Driesner
Julien Galand wrote: Le 19 oct. 06, à 14:52, Carsten Driesner a écrit : Julien Galand wrote: Thanks for this link. I had tried this previously and it didn't work, but I think I have now found the cause (there is apparently a bug in the C++ UNO binding about the awt::KeyEvent structure

Re: [api-dev] Re: How to make a ToolBar with Icons?

2006-10-24 Thread Carsten Driesner
Knut Olav Bøhmer wrote: So I undersdand that I have to set the style = ICON, But i don't understand where the icon comes from. from the pragramatic toolbar spesification ( http://specs.openoffice.org/ui_in_general/api/ProgrammaticControlOfMenuAndToolbarItems.sxw) it says that you have to add

Re: [api-dev] Registering Protocol Handler dynamically

2006-10-25 Thread Carsten Driesner
Julien Galand wrote: Hi everybody, I would like to register a protocol handler of my add-on dynamically, that is, without modifying the /org.openoffice.Office.ProtocolHandler/HandlerSet node of the OO user configuration file (whether by a .xcu or by using the configuration API). This way

Re: [api-dev] Re: How to make a ToolBar with Icons?

2006-10-25 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 10/24/06, Carsten Driesner [EMAIL PROTECTED] wrote: cut Function CreateToolbarItem( Command as String, Label as String ) as Variant Dim aToolbarItem(3) ' as new com.sun.star.beans.PropertyValue // The command you want to be dispatched if the user presses

Re: [api-dev] Re: How to make a ToolBar with Icons?

2006-10-25 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 10/25/06, Carsten Driesner [EMAIL PROTECTED] wrote: Knut Olav Bøhmer wrote: On 10/24/06, Carsten Driesner [EMAIL PROTECTED] wrote: cut Function CreateToolbarItem( Command as String, Label as String ) as Variant Dim aToolbarItem(3) ' as new

Re: [api-dev] Refreshing a modified menu bar

2006-10-27 Thread Carsten Driesner
Julien Galand wrote: Carsten Driesner a écrit : Julien Galand wrote: Hi Carsten, I have spent several hours to boil down the phenomenon. From my tests, I have concluded that this display connection of the shortcut with its menu line doesn't work when the menu line is in a submenu (i.e

Re: [api-dev] Re: How to make a ToolBar with Icons?

2006-10-27 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 10/25/06, Carsten Driesner [EMAIL PROTECTED] wrote: I'm not sure what you mean by reproduce the problem with Basic URL. I don't understand how to add an image to the toolbar I created through the API (I use StarBasic). So the problem is the documentation (maybe

Re: [api-dev] Refreshing a modified menu bar

2006-11-02 Thread Carsten Driesner
Julien Galand wrote: Le 27 oct. 06, à 08:12, Carsten Driesner a écrit : I wasn't able to run your example as I need a dedicated machine for testing. Currently I only have remote access (with and therefore cannot use a normal Office installation. That's why the script cannot create

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-03 Thread Carsten Driesner
Julien Galand wrote: Hi to all, My add-on has a toolbar created by a .xcu file, with the right protocol handler declared (as a node org.openoffice.Office.ProtocolHandler/HandlerSet of the configuration file). But there is no component registration in the package; in particular no

Re: [api-dev] Toolbar with dropdown box

2006-11-05 Thread Carsten Driesner
Knut Olav Bøhmer wrote: How can I make a toolbar that contains a drop down box or any other dialog component? Hi Knut, You can find more information how to do it on the framework wiki page: http://wiki.services.openoffice.org/wiki/Framework An article which describes how to create complex

Re: [api-dev] Enable toolbar items if dynamic protocol handler

2006-11-06 Thread Carsten Driesner
Julien Galand wrote: Le 3 nov. 06, à 09:59, Carsten Driesner a écrit : Julien Galand wrote: Hi to all, My add-on has a toolbar created by a .xcu file, with the right protocol handler declared (as a node org.openoffice.Office.ProtocolHandler/HandlerSet of the configuration file

Re: [api-dev] Command URL binding between menu and shortcut

2006-11-06 Thread Carsten Driesner
Julien Galand wrote: Hi to all, I have a menu on which some keyboard shortcuts have been set through ui::XAcceleratorConfiguration. When a shortcut is set with the same command URL of an existing menu line, OO automatically displays the shortcut on the menu line (or should; a bug prevents

Re: [api-dev] Toolbar with dropdown box

2006-11-06 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 11/6/06, Carsten Driesner [EMAIL PROTECTED] wrote: Knut Olav Bøhmer wrote: How can I make a toolbar that contains a drop down box or any other dialog component? Hi Knut, You can find more information how to do it on the framework wiki page: http

Re: [api-dev] Toolbar with dropdown box

2006-11-07 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 11/6/06, Carsten Driesner [EMAIL PROTECTED] wrote: Knut Olav Bøhmer wrote: How can I make a toolbar that contains a drop down box or any other dialog component? Hi Knut, You can find more information how to do it on the framework wiki page: http

Re: [api-dev] Toolbar with dropdown box

2006-11-07 Thread Carsten Driesner
Knut Olav Bøhmer wrote: On 11/6/06, Carsten Driesner [EMAIL PROTECTED] wrote: Knut Olav Bøhmer wrote: How can I make a toolbar that contains a drop down box or any other dialog component? Hi Knut, You can find more information how to do it on the framework wiki page: http

Re: [api-dev] Dispatching Macro URL from Java Addon?

2006-11-10 Thread Carsten Driesner
Jimmy wrote: How can I dispatch a macro Url from my Java Add-on? I'd like to dispatch the following function in the Tools/ModuleControles Library: StoreDocument(oDocument as Object, FilterNames() as String, DefaultName as String, DisplayDirectory as String, Optional iAddProcedure as

Re: [api-dev] Dispatching Macro URL from Java Addon?

2006-11-14 Thread Carsten Driesner
); URL aURL = URL[0]; dispatch(aURL, propertyvalue); Carsten Driesner schrieb: Jimmy wrote: How can I dispatch a macro Url from my Java Add-on? I'd like to dispatch the following function in the Tools/ModuleControles Library: StoreDocument(oDocument

Re: [api-dev] Dispatching Macro URL from Java Addon?

2006-11-15 Thread Carsten Driesner
); URL aURL = URL[0]; dispatch(aURL, propertyvalue); Carsten Driesner schrieb: Jimmy wrote: How can I dispatch a macro Url from my Java Add-on? I'd like to dispatch the following function in the Tools/ModuleControles Library: StoreDocument(oDocument

Re: [api-dev] Disable File / New Menu

2006-11-17 Thread Carsten Driesner
Alamo Vallejo, Joan wrote: That's it... Does anyone know how to disable the File / New Menu? Hi Joan, Could please be more specific. Do you want to remove the File - New menu? Just disable the File - New menu entry, so nobody can open the sub-menu? Or do you want to remove the entries in

Re: [api-dev] Disable File / New Menu

2006-11-17 Thread Carsten Driesner
Alamo Vallejo, Joan wrote: Hi Carsten, I want to remove them... I didn't have time to prove Tobias solution yet (yes, it was java ;) ) I'll let you know if it works Hi Joan, Ok, here is a very simple solution to remove the sub-menu from File - New. Just save the following snippet into a

Re: [api-dev] Disable File / New Menu

2006-11-17 Thread Carsten Driesner
Alamo Vallejo, Joan wrote: I finally found the New label in the Controller.xcu, it's called addDirect. Now I have to look for some other ones (Templates and Send) Hi Joan, Please be aware that not all sub-menus are created/controlled by popup menu controllers. There are static sub-menus

Re: [api-dev] Adding pictures to a Component

2006-11-22 Thread Carsten Driesner
Tobias Krais wrote: Hi Laurant, i personally use that prop oor:name=ImageIdentifier oor:type=xs:string value%origin%/icons/myImage/value /prop and provide the four bmp files : myImage_16.bmp, _26.bmp, _16h.bmp and _26h.bmp OK. Below the relevant part of my Addons.xcu. I only

[api-dev] Tutorials about framework user interface features

2006-12-07 Thread Carsten Driesner
/wiki/Framework/Tutorial/Popup_Menu_Controller Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

Re: [api-dev] Tutorials about framework user interface features

2006-12-08 Thread Carsten Driesner
Robert Vojta wrote: On 12/7/06, Carsten Driesner [EMAIL PROTECTED] wrote: Hi Carsten, I want to inform you that I've started a new tutorial series which wants to describe several user interface features provided by the framework project. this is wonderful, more tutorials like this one. I

Re: [api-dev] Tutorials about framework user interface features

2006-12-08 Thread Carsten Driesner
Juergen Schmidt wrote: Robert Vojta wrote: On 12/7/06, Carsten Driesner [EMAIL PROTECTED] wrote: Hi Carsten, I want to inform you that I've started a new tutorial series which wants to describe several user interface features provided by the framework project. this is wonderful, more

Re: [api-dev] Create simple toolbar in basic

2006-12-13 Thread Carsten Driesner
).Name = Type aToolbarItem(2).Value = 0 aToolbarItem(3).Name = Visible aToolbarItem(3).Value = true CreateToolbarItem = aToolbarItem() End Function Sub Test MsgBox Test End Sub Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org

Re: [api-dev] Create simple toolbar in basic

2006-12-15 Thread Carsten Driesner
Andrew Douglas Pitonyak wrote: I have been documenting all of this... I must remove the window state using configuration access. sigh Hi Andrew, On the first look this may seem to be complicated, but we chose to use two different configurations to store different aspects of a toolbar. The

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Carsten Driesner
Peter Eberlein wrote: Hi, Carsten showed an example of inserting a toolbar with StarBasic. If it is extended with a graphic, the UI has the possibilities to show icon, text or icon and text. How to handle this with api? Hi Peter, Every toolbar consist of two different parts: 1. Content

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Carsten Driesner
Peter Eberlein wrote: Hi Carsten, thanks for your fast answer and the example. Carsten Driesner schrieb: ... 2. Can be accessed via the window state configuration. You have to create the service com.sun.star.ui.WindowStateConfiguration and retrieve the window states for a specific module

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-18 Thread Carsten Driesner
Peter Eberlein wrote: Hi Carsten, Carsten Driesner schrieb: That's the drawback of the current solution and not possible. You can set a title for the document toolbar, but nothing more. The users have to change the settings via Tools - Options themselves. Hi Peter, You meant tools

Re: [api-dev] Create simple toolbar in basic

2006-12-18 Thread Carsten Driesner
Andrew Douglas Pitonyak wrote: Carsten Driesner wrote: Andrew Douglas Pitonyak wrote: I have been documenting all of this... I must remove the window state using configuration access. sigh Hi Andrew, On the first look this may seem to be complicated, but we chose to use two different

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

2006-12-18 Thread Carsten Driesner
. ?,,' ',...) if you use them in your arguments. command?arg1:type1=value2arg2:type2=value2 .uno:Open?FileName:string=file:///home/test/test.odt Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org

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

2006-12-19 Thread Carsten Driesner
my ProtocolHandler.xcu? No. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

[api-dev] 3rd part of the Popup Menu Controller Tutorial online

2006-12-22 Thread Carsten Driesner
will be an enhanced version of the recent file menu. http://wiki.services.openoffice.org/wiki/Framework/Tutorial/Popup_Menu_Controller Kind Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org

Re: [api-dev] Status bar API ?

2006-12-28 Thread Carsten Driesner
and the status bar environment. I also think about adding support for some generic status bar controller (like the complex toolbar controller). We shifted these ideas because until now nobody asked us for a better status bar support. Regards, Carsten -- Carsten Driesner (cd) - Project Lead

Re: [api-dev] ImageButton control: SetImage broken?

2007-01-08 Thread Carsten Driesner
team (component gsl). Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

Re: [api-dev] Addon: Menu item has an icon, but not toolbar item

2007-01-08 Thread Carsten Driesner
), but I have to be careful as this can create negative performance issues. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

Re: [api-dev] Addon: Menu item has an icon, but not toolbar item

2007-01-08 Thread Carsten Driesner
), but I have to be careful as this can create negative performance issues. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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

2007-01-09 Thread Carsten Driesner
. The framework code just asks your ProtocolHandler to handle the URL, so your code is responsible to parse the URL for optional arguments. It looks like that your implementation cannot handle the additional arguments. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org

Re: [api-dev] Search workaround for Bug 72119

2007-01-09 Thread Carsten Driesner
. Look at the following Basic example which associate an image for a Basic macro. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

[api-dev] Solver developer snapshot for Visual Studio 2005 users (SRC680m199)

2007-01-24 Thread Carsten Driesner
space this offering will only be available for one week. For download links see the attached html file. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http

Re: [api-dev] Changing images in dialog interactively

2007-02-25 Thread Carsten Driesner
right that your images are also part of your extension? Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

Re: [api-dev] InsertSheetFromFile

2007-03-29 Thread Carsten Driesner
you more information. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

Re: [api-dev] Disable possibility to adjust toolbars?

2007-04-27 Thread Carsten Driesner
oor:op=replace prop oor:name=Command valueConfigureDialog/value /prop /node /node /node /oor:component-data Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework Framework wiki: http://wiki.services.openoffice.org/wiki/Framework

Re: [api-dev] Disable possibility to adjust toolbars?

2007-04-29 Thread Carsten Driesner
Cor Nouws schrieb: Carsten Driesner wrote: You can remove the little arrow button with the help of Disable Commands feature. Just copy the following configuration file snippet into [...] Thanks Carsten! One more question: should I have been able to find that info somewhere? Hi Cor, I

Re: [api-dev] How to FIX the screen position of OO-dialogs

2007-06-28 Thread Carsten Driesner
Fernand Vanrie wrote: i have a project where i zoom in an out images presented is a OO-dialog using tha API and OO basic when the Iamge-sizes become to big to fit in the dialog, i have to rezise constantly he dialog but the Gui is puting the resised dialog everytime in the middle of miy screen

Re: [api-dev] How to disable MenuItems temporary ?

2007-07-02 Thread Carsten Driesner
possible that the application code doesn't work correctly if you call it in a situation where the command is normally disabled. You can find more information about dispatch interception in the Developer's Guide. Regards, Carsten -- Carsten Driesner (cd) - Project Lead OpenOffice.org Framework

Re: [api-dev] problem removing XDispatchProviderInterceptor ...

2007-07-23 Thread Carsten Driesner
Oliver Brinzing wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a problem unregistering my XDispatchProviderInterceptor: I a user selects a special named sheet, i register a XDispatchProviderInterceptor to disable some menu/toolbar commands temporary. This works fine. But if

Re: [api-dev] problem removing XDispatchProviderInterceptor ...

2007-07-27 Thread Carsten Driesner
Oliver Brinzing wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Carsten, done :-) Hi Oliver, I am sorry but I haven't received any e-mail from you. Could you please send it again. Regards, Carsten - To

Re: [api-dev] problem removing XDispatchProviderInterceptor ...

2007-07-31 Thread Carsten Driesner
Oliver Brinzing wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Carsten, ok, i will send it again ... did you get the source code ? Hi Oliver, Yes, I got your source code. Please give me some time as we are now short before code freeze (Thursday) and there are some important

Re: [api-dev] Getting the System Colors (missing feature in the AWT module?)

2007-09-03 Thread Carsten Driesner
Ariel Constenla-Haile wrote: Hello people, I was looking in the API and couldn't find any way to get the colors that the system actually uses. I think it is useful when performing custom painting to have an API just like java.awt.SystemColor

Re: [api-dev] Complex toolbars

2007-09-10 Thread Carsten Driesner
Dietmar Hiller wrote: Hi, I am investigating in using the complex toolbars for my extension BorderLiner. I know of the following sites http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls,

Re: [api-dev] Transient menu changes are too transient

2007-09-11 Thread Carsten Driesner
Tobias Krais wrote: Hi together, one year ago I implemented some additional menu items for OOo menus in Java. I added these items transient. But now we discovered that they are too transient for us: when opening a document, the menu items are added. When changing the document into Page view

Re: [api-dev] Transient menu changes are too transient

2007-09-19 Thread Carsten Driesner
Tobias Krais wrote: Hi again, I think the COMPONENT_REATTACHED is the proper place to change the menus again. well, this is not the right place to redo the changes: at the time this event is fired, I cannot retrieve the menubar, it is null. When changing to the page view I can perform the

Re: [api-dev] Changing the menu bar only for a document

2007-10-08 Thread Carsten Driesner
Jordi Sanchez wrote: Thanks for your quick reply. Meanwhile I was investigating a little bit and I realised that the ODF documents are able to store a set of custom settings per document. If I unzip, (for instance), a writer document we can see the following structure: (I customized the

Re: [api-dev] Questions about com.sun.star.awt.MenuBar and com.sun.star.awt.PopupMenu

2007-10-10 Thread Carsten Driesner
Ariel Constenla-Haile schrieb: Hi people, FIRST of all, I would like to thank the one who wrote the code of the GUI examples on the new SDK (OpenOffice.org_2.3_SDK/examples/DevelopersGuide/GUI): it answers some questions I had for a long time! Thanks hr (I don't know your real name!)! Hi

  1   2   >