Re: [api-dev] Styles and Formatting Dialog

2006-03-23 Thread Mathias Bauer
Tuomas Räsänen wrote: > Hi, > > Can I somehow (programmatically) access Styles and Formatting - dialog > and chage it's properties. My goal is to hide those default style > categories and propably to chage the name of Custom Styles - category. > I'd like to limit users to use only definite sty

Re: [api-dev] Re: [dev] Integrating external program with OOo on Windows - request for assistance!

2006-03-23 Thread Mathias Bauer
Anders S. Johansen wrote: > OK. I have a way to get the currently forground window, so that will work > nicely. I then need a way to check, say: > > bool isOOoWindow(const HWND w); Yes, as I wrote: this can be implemented in the following way: get all frames from the Desktop service of OOo, retr

Re: [api-dev] XComponentLoader event onload

2006-03-23 Thread Andreas Schlüns
Antoine POURCHEZ wrote: Hello, I want to load and next update an ODT in a java program. To do that, i write this code : Object vDesktop = OoBootstrap.createDesktop(); XComponentLoader vCompLoader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoader.class, vDeskto

Re: [api-dev] detecting "unrecoverable error" event

2006-03-23 Thread Stephan Wunderlich
Hi John, 1.) Most important: is there any way to suppress the dialog so that OO just goes away quietly without user intervention. you could start the office with the parameters "-nocrashreport" and "-norestore" ... e.g. soffice.exe -accept=... -norestore -nocrashreport 2.) Convenient: Is t

[api-dev] detecting "unrecoverable error" event

2006-03-23 Thread John Sisson
Scenario: We run OpenOffice 1.1.3 as a slave to a text processor via both a UNO library and the Xinterface calls; the processes run on XP workstations. Each station ‘imports’ about 1  text blocks a day; they are sent to the slave OO instance, composed, recovered and saved by the drive

Re: [api-dev] New Component in Java in order to implement XMultiPropertySet Support

2006-03-23 Thread Kent Gibson
thanks for your detailed response. --- Stephan Bergmann <[EMAIL PROTECTED]> wrote: > Kent Gibson wrote: > > Hi-ya > > > > I am rendering 500 page documents with loads of > > XTextFrames (about 20 per page) and most of the > > parameters I set are always the same. > > > > Unfortunately com.sun.

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

2006-03-23 Thread Jorge . Pelizzoni
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 of the procedure so I can have a

[api-dev] XComponentLoader event onload

2006-03-23 Thread Antoine POURCHEZ
Title: XComponentLoader event onload Hello, I want to load and next update an ODT in a java program. To do that, i write this code :     Object vDesktop = OoBootstrap.createDesktop();     XComponentLoader vCompLoader = (XComponentLoader) UnoRuntime.queryInterface(XComponentLoa

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 def

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

2006-03-23 Thread Jorge . Pelizzoni
Selon Laurent Godard <[EMAIL PROTECTED]>: > i think the question is > - i define an addon containing a toolbar > - when deploying the addon is floating > - user has to drag it to dock it manually > > How to deploy an addon containing a toolbar so that it is docked > automatically ? > I couldn't p

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

2006-03-23 Thread Laurent Godard
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 define an addon containing

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 a

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

2006-03-23 Thread Jorge . Pelizzoni
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 annoying... Well, so here I

Re: [api-dev] UNO package setting keybindings

2006-03-23 Thread Bart Aimar
Paolo Mantovani ha scritto: Hi Bart, In other way how I can clear the registrated shortcut at document level and give back (useable/active) the same shortcut from the global (or module) level. you should use the method : XAcceleratorConfiguration.removeKeyEvent(aKeyEvt) Thank's Paolo..

Re: [api-dev] [code snippet] Managing keyboard shortcuts

2006-03-23 Thread Paolo Mantovani
Hi, Sorry, but *just* after pressing "Send" I've seen that the code in the snippet uses some external function available only in the whole vocabulary package This is the fixed version Alle 11:16, giovedì 23 marzo 2006, Paolo Mantovani ha scritto: > Hi, > > I've retrieved a routine that I used i

Re: [api-dev] Styles and Formatting Dialog

2006-03-23 Thread Kent Gibson
You can do everything with styles programmatically that you can do with the UI. I only know of one exception and that is changing the name of the default style. However you can change the settings of the default style. I am not sure if you can hide somehow the default styles, there are some proper

[api-dev] [code snippet] Managing keyboard shortcuts

2006-03-23 Thread Paolo Mantovani
Hi, I've retrieved a routine that I used in my package Vocabulary in order to set a keyboard-shortcut, so I've thought to share it as a code-snippet. regards Paolo keybinding keyboard shortcut XAcceleratorConfiguration UIConfigurationManager Paolo

Re: [api-dev] How to chang a text to HyperLink

2006-03-23 Thread Michal TOMA
Hi Steffen, thanks a lot for your help, your code helped to solve my issue! I now have a search en repalce with formating! Micheal > Hi Michael, > > from your example I do not really see that you actually do a search: > > Adding some stuff to your example code: > > > xReplaceable = (com.sun.star

Re: [api-dev] UNO package setting keybindings

2006-03-23 Thread Paolo Mantovani
Hi Bart, Alle 09:17, giovedì 23 marzo 2006, Bart Aimar ha scritto: > A final question about shortcut... (I hope!) > > > Now I can register the shortcut at document level. > But what is the the code to unregister it? > > In other way how I can clear the registrated shortcut at document level > and

[api-dev] Re: [dev] Integrating external program with OOo on Windows - request for assistance!

2006-03-23 Thread Anders S. Johansen
OK, have not ahd much luck posting top [EMAIL PROTECTED], so am trying again... Quoting Mathias Bauer <[EMAIL PROTECTED]>: [Hide Quoted Text] Anders S. Johansen wrote: Our goal is to implement a few functions/methods, preferably encapsulated in an object (but not necessarily) that will allow

Re: [api-dev] UNO package setting keybindings

2006-03-23 Thread Bart Aimar
A final question about shortcut... (I hope!) Now I can register the shortcut at document level. But what is the the code to unregister it? In other way how I can clear the registrated shortcut at document level and give back (useable/active) the same shortcut from the global (or module) level

Re: [api-dev] New Component in Java in order to implement XMultiPropertySet Support

2006-03-23 Thread Stephan Bergmann
Kent Gibson wrote: Hi-ya I am rendering 500 page documents with loads of XTextFrames (about 20 per page) and most of the parameters I set are always the same. Unfortunately com.sun.star.text.TextFrame does not support XMultiPropertySet or XFastPropertySet. If I create my own Component as desc

[api-dev] Styles and Formatting Dialog

2006-03-23 Thread Tuomas Räsänen
Hi, Can I somehow (programmatically) access Styles and Formatting - dialog and chage it's properties. My goal is to hide those default style categories and propably to chage the name of Custom Styles - category. I'd like to limit users to use only definite styles. Thanks, Tuomas ---