Hi Marc,

> I could imagine some other very useful shortcuts especially - - but not
> only - for base:
> 
> - get a list of open documents (without going throught the desktop
> discriminating other doc types - not easy when having forms and writer
> docs, I think)

Item 1: Ever tried the TDOC UCP? If you do not know it, to get an idea:
Open a few documents, open the (internal!) File Open Dialog, and enter
"vnd.sun.star.tdoc:/" in the file URL box, press OK. So far for "through
the desktop" :)
Item 2: The module identifier is what best serves document
discrimination: Writer, Reports, and Forms have different module
identifiers (XModule::getIdentifier)

> e.g. aBaseDoc.Components().getByIndex()/.getByName()

As said in my response to Ariel: Yes, but that's a different topic.

> - get access to the four sections of a base doc container: tables,
> queries, forms and reports (although that should be easy doable as it is
> now ... lacking time to search and test)
> e.g. aBaseDoc.Forms() (doesn't this exeist already?)

Hmm - what exactly do you want to access here? The UI? That's the
selection supplier, I suppose. The component definitions? That already
exists. The open "sub documents"? That doesn't exist, and is the same as
you mentioned above.
I'm unclear what you exactly mean here, please elaborate.

>> Imagine a macro configured to appear in the toolbar of a form, but
>> located (as macro) in the embodying database document. You want to
>> execute this macro from within the form, perhaps from within the
>> database document, and surely from within the Basic IDE during
>> developing it.
>> What's your expectations how ThisComponent should behave?
> 
> Do I understand right: the base container doc is a component and each
> su-document contained is loaded as such when openened?

Yes.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

Reply via email to