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

Represents a text. More...

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

Public Member Functions

 RowStyle (Node node, StyleCatalog sc)
 Constructor for use when going from DOM to client device format. More...
 
 RowStyle (String name, String family, String parent, int rowHeight, StyleCatalog sc)
 Constructor for use when going from client device format to DOM. More...
 
int getRowHeight ()
 Returns the height of this row. More...
 
Style getResolved ()
 Return a. More...
 
Node createNode (org.w3c.dom.Document parentDoc, String name)
 Create a new. More...
 
boolean isSubset (Style style)
 Return true if. More...
 
- Public Member Functions inherited from org.openoffice.xmerge.converter.xml.Style
 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...
 

Private Member Functions

void setRowHeight (int RowHeight)
 Sets the height of this row. More...
 
int parseRowHeight (String value)
 Parse a rowheight in the form { "1.234cm"} to twips. More...
 
void handleAttribute (String attr, String value)
 Set an attribute. More...
 
void writeAttributes (Element node)
 Write this. More...
 

Private Attributes

int rowHeight = 255
 

Additional Inherited Members

- Protected Attributes inherited from org.openoffice.xmerge.converter.xml.Style
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

Represents a text.

in an OpenOffice document.

Definition at line 34 of file RowStyle.java.

Constructor & Destructor Documentation

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

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

Parameters
nodeThe style:style containing the . (This is assumed have a family attribute of text).
scThe
StyleCatalog
, which is used for looking up ancestor objects.

Definition at line 46 of file RowStyle.java.

References org.openoffice.xmerge.converter.xml.sxc.RowStyle.handleAttribute(), i, and String.

Referenced by org.openoffice.xmerge.converter.xml.sxc.RowStyle.getResolved(), and org.openoffice.xmerge.converter.xml.sxc.RowStyle.isSubset().

org.openoffice.xmerge.converter.xml.sxc.RowStyle.RowStyle ( String  name,
String  family,
String  parent,
int  rowHeight,
StyleCatalog  sc 
)
inline

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

Parameters
nameName of text . Can be
null
.
familyFamily of text (usually text). Can be
null
.
parentName of parent text , or
null
for none.
rowHeightThe height of this row.
scThe
StyleCatalog
, which is used for looking up ancestor objects.

Definition at line 97 of file RowStyle.java.

References org.openoffice.xmerge.converter.xml.sxc.RowStyle.rowHeight.

Member Function Documentation

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

Create a new.

in the

, and write this

to it.

Parameters
parentDocParent of the to create.
nameName to use for the new (e.g. style:style)
Returns
Created .

Definition at line 207 of file RowStyle.java.

References org.openoffice.xmerge.converter.xml.sxc.RowStyle.writeAttributes().

Style org.openoffice.xmerge.converter.xml.sxc.RowStyle.getResolved ( )
inline
int org.openoffice.xmerge.converter.xml.sxc.RowStyle.getRowHeight ( )
inline
void org.openoffice.xmerge.converter.xml.sxc.RowStyle.handleAttribute ( String  attr,
String  value 
)
inlineprivate

Set an attribute.

Parameters
attrThe attribute to set.
valueThe attribute value to set.

Definition at line 137 of file RowStyle.java.

References org.openoffice.xmerge.util.Debug.INFO, org.openoffice.xmerge.util.Debug.log(), and org.openoffice.xmerge.converter.xml.sxc.RowStyle.parseRowHeight().

Referenced by org.openoffice.xmerge.converter.xml.sxc.RowStyle.RowStyle().

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

Return true if.

specifies as much or less than this

, and nothing it specifies contradicts this

.

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

Definition at line 223 of file RowStyle.java.

References getClass(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.getRowHeight(), and org.openoffice.xmerge.converter.xml.sxc.RowStyle.RowStyle().

int org.openoffice.xmerge.converter.xml.sxc.RowStyle.parseRowHeight ( String  value)
inlineprivate

Parse a rowheight in the form { "1.234cm"} to twips.

Parameters
value

Definition at line 127 of file RowStyle.java.

References org.openoffice.xmerge.util.TwipsConverter.convert2twips().

Referenced by org.openoffice.xmerge.converter.xml.sxc.RowStyle.handleAttribute().

void org.openoffice.xmerge.converter.xml.sxc.RowStyle.setRowHeight ( int  RowHeight)
inlineprivate

Sets the height of this row.

Parameters
RowHeightThe height of this row.

Definition at line 116 of file RowStyle.java.

Referenced by org.openoffice.xmerge.converter.xml.sxc.RowStyle.getResolved().

void org.openoffice.xmerge.converter.xml.sxc.RowStyle.writeAttributes ( Element  node)
inlineprivate

Write this.

object's attributes to a

in the

.

Parameters
nodeThe to add attributes.

Definition at line 237 of file RowStyle.java.

References String, and org.openoffice.xmerge.util.TwipsConverter.twips2cm().

Referenced by org.openoffice.xmerge.converter.xml.sxc.RowStyle.createNode().

Member Data Documentation

int org.openoffice.xmerge.converter.xml.sxc.RowStyle.rowHeight = 255
private

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