LibreOffice Module xmerge (master)  1
Public Member Functions | Protected Attributes | List of all members
org.openoffice.xmerge.converter.xml.Style Class Reference

An object of class. More...

Inheritance diagram for org.openoffice.xmerge.converter.xml.Style:
[legend]
Collaboration diagram for org.openoffice.xmerge.converter.xml.Style:
[legend]

Public Member Functions

 Style (Node node, StyleCatalog sc)
 Constructor for use when going from DOM to client device format. More...
 
 Style (String name, String family, String parent, StyleCatalog sc)
 Constructor for use when going from client device format to DOM. More...
 
void setCatalog (StyleCatalog sc)
 Set the. More...
 
String getName ()
 Returns the name of this. More...
 
void setName (String newName)
 Sets the name of this. More...
 
String getFamily ()
 Return the family of this. More...
 
String getParent ()
 Return the name of the parent of this. More...
 
Style getResolved ()
 Return a. More...
 
Node createNode (org.w3c.dom.Document parentDoc, String name)
 Write a. More...
 
boolean isSubset (Style style)
 Return. More...
 

Protected Attributes

String name = null
 Name of the. More...
 
String family = null
 Family of the. More...
 
String parent = null
 Parent of the. More...
 
StyleCatalog sc
 A reference to the. More...
 

Detailed Description

An object of class.

represents a style in an OpenOffice document.

In practice subclasses of this

, such as

TextStyle

,

ParaStyle

are used.

See also
TextStyle
ParaStyle

Definition at line 34 of file Style.java.

Constructor & Destructor Documentation

org.openoffice.xmerge.converter.xml.Style.Style ( Node  node,
StyleCatalog  sc 
)
inline

Constructor for use when going from DOM to client device format.

Parameters
nodeA style:style or style:default-style from the document being parsed. No checking of is done, so if it is not of the proper type the results will be unpredictable.
scThe
StyleCatalog
, which is used for looking up ancestor objects.

Definition at line 59 of file Style.java.

References i, and org.openoffice.xmerge.converter.xml.Style.sc.

Referenced by org.openoffice.xmerge.converter.xml.Style.getResolved().

org.openoffice.xmerge.converter.xml.Style.Style ( String  name,
String  family,
String  parent,
StyleCatalog  sc 
)
inline

Constructor for use when going from client device format to DOM.

Parameters
nameName of the . Can be
null
.
familyFamily of the { -} usually paragraph, text, etc. Can be
null
.
parentName of the parent , or
null
if none.
scThe
StyleCatalog
, which is used for looking up ancestor objects.

Definition at line 93 of file Style.java.

References org.openoffice.xmerge.converter.xml.Style.family, org.openoffice.xmerge.converter.xml.Style.name, org.openoffice.xmerge.converter.xml.Style.parent, and org.openoffice.xmerge.converter.xml.Style.sc.

Member Function Documentation

Node org.openoffice.xmerge.converter.xml.Style.createNode ( org.w3c.dom.Document  parentDoc,
String  name 
)
inline

Write a.

in

parentDoc

representing this

.

Note that the

is returned unconnected.

Parameters
parentDocDocument to which new will belong.
nameName to use for new .

Definition at line 168 of file Style.java.

Referenced by org.openoffice.xmerge.converter.xml.StyleCatalog.writeNode().

String org.openoffice.xmerge.converter.xml.Style.getFamily ( )
inline

Return the family of this.

.

Returns
The family of this .

Definition at line 134 of file Style.java.

References org.openoffice.xmerge.converter.xml.Style.family, and String.

Referenced by org.openoffice.xmerge.converter.xml.StyleCatalog.lookup(), and org.openoffice.xmerge.converter.xml.StyleCatalog.writeNode().

String org.openoffice.xmerge.converter.xml.Style.getName ( )
inline
String org.openoffice.xmerge.converter.xml.Style.getParent ( )
inline

Return the name of the parent of this.

.

Returns
The parent of this .

Definition at line 143 of file Style.java.

References org.openoffice.xmerge.converter.xml.Style.parent, and String.

Referenced by org.openoffice.xmerge.converter.xml.StyleCatalog.lookup(), and org.openoffice.xmerge.converter.xml.StyleCatalog.writeNode().

Style org.openoffice.xmerge.converter.xml.Style.getResolved ( )
inline

Return a.

object corresponding to this one, but with all of the inherited information from parent

objects filled in.

The object returned will be a new object, not a reference to this object, even if it does not need any information added.

Returns
A resolved object in which to look up ancestors.

Definition at line 156 of file Style.java.

References org.openoffice.xmerge.converter.xml.Style.Style().

boolean org.openoffice.xmerge.converter.xml.Style.isSubset ( Style  style)
inline

Return.

true

if

is a subset of this one.

Note that this will return true even if

is less specific than this

, so long as it does not contradict this

in any way.

This always returns true since only subclasses of

contain any actual

information.

Parameters
styleThe to check.
Returns
true
if the is a subset,
false
otherwise.

Definition at line 188 of file Style.java.

Referenced by org.openoffice.xmerge.converter.xml.StyleCatalog.getMatching().

void org.openoffice.xmerge.converter.xml.Style.setCatalog ( StyleCatalog  sc)
inline

Set the.

StyleCatalog

to be used when looking up the

parent.

Parameters
scThe
StyleCatalog
, which is used for looking up ancestor objects.

Definition at line 107 of file Style.java.

References org.openoffice.xmerge.converter.xml.Style.sc.

void org.openoffice.xmerge.converter.xml.Style.setName ( String  newName)
inline

Member Data Documentation

String org.openoffice.xmerge.converter.xml.Style.family = null
protected
String org.openoffice.xmerge.converter.xml.Style.name = null
protected
String org.openoffice.xmerge.converter.xml.Style.parent = null
protected
StyleCatalog org.openoffice.xmerge.converter.xml.Style.sc
protected

A reference to the.

StyleCatalog

to be used for looking up ancestor

objects.

Definition at line 47 of file Style.java.

Referenced by org.openoffice.xmerge.converter.xml.Style.setCatalog(), and org.openoffice.xmerge.converter.xml.Style.Style().


The documentation for this class was generated from the following file: