Hi Mathias,
Alle 13:09, domenica 27 novembre 2005, Mathias Bauer ha scritto: > Paolo Mantovani wrote: > > Hi all, > > > > Im playing with the css.frame.DispatchRecorder service and in my tests > > the service appear unable to record several dispatches in writer. > > > > For example in Writer, the dispatches .uno:GoUp (Down/Right/Left) are > > correctly recorded, other dispatches like .uno:InsertText or > > .uno:InsertPara are not recorded. > > > > What am I missing ? > > It is not enough to start the recorder, the Controller of the current > component also must know that recording is switched on. The only way to > achieve this is using the command to start recording (.uno:MacroRecorder). > > I think that omponents could react on an event at the frame that > recording was switched on but that's not implemented currently. Thank you very much. Effectively, this is the situation that I feared. So now let me say the whole story :-) I'm implementing (in Python) a DispatchRecorder for the Python language. The service itself is far from being complete but I don't see big difficulties at implementation level. After your answer I see a big problem at ui integration level... Initially, I have thought to implement my service as an alternative Dispatchrecorder. At integration level, I would have supplied a toolbox with two buttons in order to start/stop the recording, with the usual Addons.xcu file. After your answer the only way I see is to implement my PytonDispatchRecorder as a replacement for the original one. This means that In the XDispatchRecorder.getRecordedMacro() method I must supply a way (let's say a dialog) to let the user select the language for the macro. In case the user select "python" I must also find some dirty hack to avoid the "save macro" dialog and launch instead my alternative "save python" dialog Any comments or ideas will be greatly appreciated thank you Paolo Mantovani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
