Properties of a Type

From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 12:23, 1 November 2007 by Jsc (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Every type inside is specified by the properties shown in the table below. These values are accessible at the previously mentioned service using the interface Write access is not available here. All types are addressed by their internal names.

Properties of a Document Type, available at TypeDetection
Name string. The internal name of a type must be unique and is also used as a list entry. It contains any special characters, but they must been coded.
UIName string. Displays the type at the user interface under a localized name. You must assign a value for a language, thus supporting CJK versions. All Unicode characters are permitted here.
MediaType string. Describes the MIME type of the contents. The reason is that the internal names can be altered at any time without affecting the process.
ClipboardFormat string. The format is a unique description of this type for use in clipboards.
URLPattern sequence<string>. Important components of a type are the patterns. They enable the support of your own URL schemata, for example, in "private:factory/swriter" for opening an empty text document. The wildcards '*' or '?' are supported here.
Extensions sequence<string>. The type of a content can be derived from its URL by its extension. In most cases, the flat detection depends on them alone.
Preferred boolean. Since file extensions cannot always be assigned to a unique type, this flag was introduced. It indicates the preferred type for a group of types with similar properties, otherwise, the first match is used.
DocumentIconID int. You can assign an icon to a type. To do this, the ID is used as reference to a resource. This feature is currently not supported in
Content on this page is licensed under the Public Documentation License (PDL).
Personal tools