Hello Frank!
Am 28.11.2007 22:44 schrieb Frank Schönheit:
> Title : Macros in Database Documents
>
> Status : Preliminary
>
> Location:
> http://wiki.services.openoffice.org/wiki/Macros_in_Database_Documents
This sounds good. But let me annotate the following.
The migration of old base documents shouldn't edit the original document
rather then create a copy with the migrated informations. It is the
arbitration of the user to overwrite the old document.
- If the data source is external the new document and the old document
can be used with the right version of OOo furthermore.
- If the data source is embedded, then the document and the data can
only be accessed by the right OOo version.
So it would be nice, if there would be a new way to use a base document
as a external data source. Thus the new copy of the old base document
could link to the old base document as data source instead of copying
the tables into it. So the migration wizard would ask, if the data
source should be copied or only liked into the new base document.
In my opinion the macro migration should do (at least) three things:
1. Move the libraries from the embedded document to the main document
and rename the library so that the document name leads the old library
name: MyLibrary -> My_Form_MyLibrary. Thus all library names should be
distinct.
2. Replace all ThisComponent with ThisComponent.getByName( "My Form" )
(or the new equivalent).
3. Change the assignments of the macros to the events of the embedded
documents and there objects (forms, controls, frames, ...).
Thus, for many documents there should be no rework needed. For all other
documents it should be a good base for the rework.
But i can be this though is only for OOo Basic.
Greetings
Mathias
--
·-· cut here ·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·-·->8·-·
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]