[Fwd: info/CWS odfmetadata3 : new: services css.text.InContentMetadata, css.text.textfield.MetadataField]

FYI. This means (I think) that the next release of OOo will have
support for the new RDF-based extension mechanism. I’d encourage
implementers to start to think about this.---------- Forwarded message ----------
From: Michael Stahl xxxx@sun.com
Date: Mon, Sep 14, 2009 at 11:17 AM
Subject: [Fwd: info/CWS odfmetadata3 : new: services
css.text.InContentMetadata, css.text.textfield.MetadataField]

hi Bruce,

i’m not sure if you’re reading our interface-announce mailing list, so i
am forwarding this to you.
in short, with CWS odfmetadata3, already integrated in the last milestone
before the 3.2 branch-off (DEV300_m59), the writer will have an
implementation of ODF 1.2 text:meta and text:meta-field.
as a bonus, there is also: xml:id for text:bookmark(-start).

there are still some issues with the meta(-field) itself (such as: no UI
except for the usual grey background shading, the suffix of the meta-field
may not be displayed, no proper copy/paste for metadata…), but the
import/export and the UNO api should work well enough for extension
development.

regards,
michael

-------- Original Message --------
Type: info
Title: new: services css.text.InContentMetadata,
css.text.textfield.MetadataField
Posted by: mst@openoffice.org
Affected: offapi, sw
TaskId: i91565,i91566
http://www.openoffice.org/issues/show_bug.cgi?id=91565,i91566
Effective from: CWS odfmetadata3
CWS:
http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300/odfmetadata3
CWS status: integrated

Summary

  • com.sun.star.text.TextPortion: property InContentMetadata
  • com.sun.star.text.InContentMetadata
  • com.sun.star.text.textfield.MetadataField

Description

The TextPortion service is extended with a new portion type
"InContentMetadata" and corresponding property:

service TextPortion
{

  • /** contains the text range of a text portion of type
    InContentMetadata.
  •    @since OOo 3.2
    
  • */
    
  • [optional, readonly, property]
  • ::com::sun::star::text::XTextContent InContentMetadata;
    }

There is a new TextContent service InContentMetadata, which recursively
enumerates its contained TextContents:

/** is a TextContent that can be used to attach RDF metadata
to a range of text.

@since OOo 3.2
/
service InContentMetadata
{
/
* None of the properties of TextContent are
supported. */
service com::sun::star::text::TextContent;

/** The InContentMetadata can have RDF metadata
attached. */
interface com::sun::star::rdf::XMetadatable;

/** The TextContents that are contained in the
annotated range of text can be enumerated. */
interface com::sun::star::container::XEnumerationAccess;
};

There is a new TextField service MetadataField, which recursively
enumerates its contained TextContents:

/** is a TextField whose content is specified by RDF
metadata.

@since OOo 3.2

@see com::sun::star::rdf
/
service MetadataField
{
/
* None of the properties of TextContent are
supported. */
service com::sun::star::text::TextField;

/** The MetadataField can have RDF metadata attached. */
interface com::sun::star::rdf::XMetadatable;

/** Allows for insertion of text content into, and creating cursors
that are bound within, the MetadataField. */
interface com::sun::star::text::XText;

/** The TextContents that are contained in the
MetadataField can be enumerated. */
interface com::sun::star::container::XEnumerationAccess;

/** this is the number format for this field.
@see com::sun::star::util::NumberFormatter
*/
[optional, property] long NumberFormat;

/** determines whether changes in language attributes at the
position of the text field also change the number format
as appropriate for this language.
*/
[optional, property] boolean IsFixedLanguage;
};

Send feedback to interface-announce@openoffice.org