![]() ![]() These styles are described in styles.xml just like named styles, but they appear to the end user with localised names (in their local language), so the really displayed style name is neither the 'name' nor the 'display-name' stored attributes. So, such a method as getStyleElement("style name") uses the 'name' attribute to retrieve a style descriptor and, in case of failure, it attempts to retrieve the same element by 'display-name' (unless you change this behaviour through the 'retrieve_by' document property).Ĭare should be taken particularly with predefined base styles in. Remember that the 'name' (and not the 'display-name') is the main identifier of a style element. In the other hand, the 'name' and the 'display-name' generally don't differ when they contain letters and/or digits only. For example, with 2, the well-known pre-defined style whose display name is "Text body" is named "Text_20_body" (the space character is replaced by its hexadecimal value between two "_" characters). For a given 'display-name', the application software is allowed to set any arbitrary 'name'. Both are displayable character strings, but they often differ. The 'display-name' is the name as it's displayed by the office software, while the 'name' is the main identifier. But an OpenDocument-compliant style may own two names, so-called 'name' and 'display-name'. Such styles usually have meaningful names and are stored in the styles.xml member. Remember that named styles are those that the end user can see and edit using through the GUI of an interactive office software (for ex. Practically, the present manual is provided to describe the style processing features of OpenOffice::OODoc::Document (knowing that these features are technically supported by the OpenOffice::OODoc::Styles component of the API). This class should not be explicitly used in an ordinary application, because all its features are available in the OpenOffice::OODoc::Document class, in combination with other features. It inherits from the common OpenOffice::OODoc::XPath class and brings style-focused features. This class is designed to handle styles, whether automatic or named, contained in styles.xml or content.xml. ![]() OpenOffice::OODoc::Styles - Document styles and layout processing DESCRIPTION
0 Comments
Leave a Reply. |