Ennio-Sr wrote:

> Hi all!
> [OOo-2.0.2-6 on Gnu/Linux - i386]
> 
> I have two versions of the same Calc spreadsheet: file.sxc and file.ods.
> A particular keyboard configuration for this file was saved in a file
> named AAA-KbdCfg using the Organize Macros command ; then I saved an
> OO-Basic macro to automatically load 'AAA-KbdCfg':
> 
> # rem ##################################################################
> # sub kbd_cfg_macro
> # rem ----------------------------------------------------------------------
> # rem define variables    
> # dim document   as object
> # dim dispatcher as object
> # rem ----------------------------------------------------------------------
> # rem get access to the document
> # document   = ThisComponent.CurrentController.Frame
> # dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
> # rem ----------------------------------------------------------------------
> # dispatcher.executeDispatch(document, ".uno:ConfigureDialog", "", 0, Array())
> # end sub
> rem #####################################################################
> 
> and included a call to this ('Kbd_cfg_macro') in another macro
> started automatically when the file is opened.
> 
> Now, if I open file.sxc, the 'Kbd_Cfg_macro' starts regularly and
> the "Customize" menu appears, where from I can hit 'Load' and choose the 
> 'AAA-KbdCfg' file, whereas opening the .ods file nothing happens!

Did you check wether the ods file contains the event binding of your
macro? And are you sure that the bound macro is started when the
document is loaded?

Best regards,
Mathias

-- 
Mathias Bauer - OpenOffice.org Application Framework Project Lead
Please reply to the list only, [EMAIL PROTECTED] is a spam sink.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to