Hi Peter,
ptoye schrieb:
I wanted to transfer a dialogue from a text document to the live version. So
I went into the test doc "organise dialogs|Edit" window and exported the
dialogue, which was called "OneOff"
How do you make it 'called "OneOff"'?
, to a file. Went into the live version,
found that I had to edit a dummy dialogue before I could import the saved
one,
The document needs to have a library (likely 'Standard') and at least
one module. Then you have an 'Import Dialog' in the toolbar in the
module in the IDE. Because you need the module anyway for the macros to
execute the dialog, first generate the module and then insert the dialog.
imported the file. And found that the new dialogue was called
"One-Off", which had been its name some days ago. I looked at the exported
.xdl file and there's a section saying So I have 2 questions/comments:
1) Why is the imported file getting a different name? Alternatively, why has
the exported file got an out-of-date ID?
In my tests it gets the name of the tab in the Basic-IDE as value of the
attribute 'dlg:id' and on import this value is used in the Basic-IDE as
tab name. If such tab already exists, you get the option to rename or
replace.
2) Is there a way of importing a dialogue without having to edit a dummy
dialogue?
See above, you need a module.
BTW, I find is useful to have an own toolbar for macros. I use the commands
'Edit Macros' = .uno:BasicIDEAppear (from category Application) and name
it 'IDE'.
'LibreOffice Basic' = .uno:MacroOrganizer (from category BASIC) and name
it 'Run'
'LibreOffice Basic Macro Organizer' = .uno:MacroOrganizer (fro, category
BASIC) and name it 'Organize'
That make access quicker than via Tools > Macros.
Kind regards
Regina
--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted