Werner Schulte wrote:

> In can create the layered figure, name the single objects and find that
> objects in the content.xml file,
> which can be extracted from my application easy. The only thing I am
> missing is the fact, that I would
> need to add some kind of meta data to each object, which can be used for
> filtering during runtime.
> 
> Whould that be a big goal to implement that, e.g. provide a
> "Object->MetaData" context menu and allow
> to fill in one or more meta information fields, which then are stored
> into the odg file ?

Meta data in ODF files is stored in the "meta.xml" stream, in a
simplified description they are name/value pairs. Since OOo2.0 you can
add your own meta data to this stream with arbitrary names and a wide
range of possible types.

So a possible way to implement your feature is using the object name as
 a "namespace" and use "objectname.dataname" as the names of your meta
data properties. There is a simple API to add, set and retrieve such
data, of course it is a little bit cumbersome to retrieve all meta data
for only one object.

You can use Basic or Java to create a dialog working with this meta data.

So this is a way how it could be done, but maybe there is a better or
smarter one. In case you don't get further answers here please try the
[email protected] mailing list because that's the place where
the Draw specialists can be met with a higher probability than here.

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