LibreOffice Module xmerge (master) 1
|
An object of class Style
represents a style in an OpenOffice document.
More...
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 StyleCatalog to be used when looking up the Style parent. More... | |
String | getName () |
Returns the name of this Style . More... | |
void | setName (String newName) |
Sets the name of this Style . More... | |
String | getFamily () |
Return the family of this Style . More... | |
String | getParent () |
Return the name of the parent of this Style . More... | |
Style | getResolved () |
Return a Style object corresponding to this one, but with all of the inherited information from parent Style objects filled in. More... | |
Node | createNode (org.w3c.dom.Document parentDoc, String name) |
Write a Node in parentDoc representing this Style . More... | |
boolean | isSubset (Style style) |
Return true if Style is a subset of this one. More... | |
Protected Attributes | |
String | name = null |
Name of the Style . More... | |
String | family = null |
Family of the Style . More... | |
String | parent = null |
Parent of the Style . More... | |
StyleCatalog | sc |
A reference to the StyleCatalog to be used for looking up ancestor Style objects. More... | |
An object of class Style
represents a style in an OpenOffice document.
In practice subclasses of this Style
, such as TextStyle
, ParaStyle
are used.
Definition at line 34 of file Style.java.
|
inline |
Constructor for use when going from DOM to client device format.
node | A style:style or style:default-style Node from the document being parsed. No checking of Node is done, so if it is not of the proper type the results will be unpredictable. |
sc | The StyleCatalog , which is used for looking up ancestor Style objects. |
Definition at line 59 of file Style.java.
References org.openoffice.xmerge.converter.xml.Style.family, i, org.openoffice.xmerge.converter.xml.Style.name, org.openoffice.xmerge.converter.xml.Style.parent, and org.openoffice.xmerge.converter.xml.Style.sc.
Referenced by org.openoffice.xmerge.converter.xml.Style.getResolved().
|
inline |
Constructor for use when going from client device format to DOM.
name | Name of the Style . Can be null . |
family | Family of the Style - usually paragraph, text, etc. Can be null . |
parent | Name of the parent Style , or null if none. |
sc | The StyleCatalog , which is used for looking up ancestor Style 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.
|
inline |
Write a Node
in parentDoc
representing this Style
.
Note that the Node
is returned unconnected.
parentDoc | Document to which new Node will belong. |
name | Name to use for new Node . |
Reimplemented in org.openoffice.xmerge.converter.xml.ParaStyle, and org.openoffice.xmerge.converter.xml.TextStyle.
Definition at line 168 of file Style.java.
Referenced by org.openoffice.xmerge.converter.xml.StyleCatalog.writeNode().
|
inline |
Return the family of this Style
.
Style
. 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().
|
inline |
Returns the name of this Style
.
Style
. Definition at line 116 of file Style.java.
References org.openoffice.xmerge.converter.xml.Style.name, and String.
Referenced by org.openoffice.xmerge.converter.xml.StyleCatalog.lookup(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns(), and org.openoffice.xmerge.converter.xml.StyleCatalog.writeNode().
|
inline |
Return the name of the parent of this Style
.
Style
. 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().
|
inline |
Return a Style
object corresponding to this one, but with all of the inherited information from parent Style
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.
Style
object in which to look up ancestors. Reimplemented in org.openoffice.xmerge.converter.xml.ParaStyle, org.openoffice.xmerge.converter.xml.sxc.CellStyle, org.openoffice.xmerge.converter.xml.sxc.ColumnStyle, org.openoffice.xmerge.converter.xml.sxc.RowStyle, and org.openoffice.xmerge.converter.xml.TextStyle.
Definition at line 156 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.Style().
|
inline |
Return true
if Style
is a subset of this one.
Note that this will return true even if Style
is less specific than this Style
, so long as it does not contradict this Style
in any way.
This always returns true since only subclasses of Style
contain any actual Style
information.
style | The Style to check. |
true
if the Style
is a subset, false
otherwise. Reimplemented in org.openoffice.xmerge.converter.xml.ParaStyle, org.openoffice.xmerge.converter.xml.sxc.CellStyle, org.openoffice.xmerge.converter.xml.sxc.ColumnStyle, org.openoffice.xmerge.converter.xml.sxc.RowStyle, and org.openoffice.xmerge.converter.xml.TextStyle.
Definition at line 188 of file Style.java.
|
inline |
Set the StyleCatalog
to be used when looking up the Style
parent.
sc | The StyleCatalog , which is used for looking up ancestor Style objects. |
Definition at line 107 of file Style.java.
References org.openoffice.xmerge.converter.xml.Style.sc.
|
inline |
Sets the name of this Style
.
newName | The new name of this Style . |
Definition at line 125 of file Style.java.
References org.openoffice.xmerge.converter.xml.Style.name, and newName().
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns().
|
protected |
Family of the Style
.
Definition at line 39 of file Style.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.CellStyle.CellStyle(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.ColumnStyle(), org.openoffice.xmerge.converter.xml.ParaStyle.dumpCSV(), org.openoffice.xmerge.converter.xml.TextStyle.dumpCSV(), org.openoffice.xmerge.converter.xml.Style.getFamily(), org.openoffice.xmerge.converter.xml.ParaStyle.getResolved(), org.openoffice.xmerge.converter.xml.Style.getResolved(), org.openoffice.xmerge.converter.xml.sxc.CellStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.getResolved(), org.openoffice.xmerge.converter.xml.TextStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.RowStyle(), org.openoffice.xmerge.converter.xml.Style.Style(), and org.openoffice.xmerge.converter.xml.TextStyle.TextStyle().
|
protected |
Name of the Style
.
Definition at line 37 of file Style.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.CellStyle.CellStyle(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.ColumnStyle(), org.openoffice.xmerge.converter.xml.ParaStyle.createNode(), org.openoffice.xmerge.converter.xml.sxc.CellStyle.createNode(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.createNode(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.createNode(), org.openoffice.xmerge.converter.xml.TextStyle.createNode(), org.openoffice.xmerge.converter.xml.ParaStyle.dumpCSV(), org.openoffice.xmerge.converter.xml.TextStyle.dumpCSV(), org.openoffice.xmerge.converter.xml.Style.getName(), org.openoffice.xmerge.converter.xml.ParaStyle.getResolved(), org.openoffice.xmerge.converter.xml.Style.getResolved(), org.openoffice.xmerge.converter.xml.sxc.CellStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.getResolved(), org.openoffice.xmerge.converter.xml.TextStyle.getResolved(), org.openoffice.xmerge.converter.xml.ParaStyle.ParaStyle(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.RowStyle(), org.openoffice.xmerge.converter.xml.Style.setName(), org.openoffice.xmerge.converter.xml.Style.Style(), and org.openoffice.xmerge.converter.xml.TextStyle.TextStyle().
|
protected |
Parent of the Style
.
Definition at line 41 of file Style.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.CellStyle.CellStyle(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.ColumnStyle(), org.openoffice.xmerge.converter.xml.ParaStyle.dumpCSV(), org.openoffice.xmerge.converter.xml.TextStyle.dumpCSV(), org.openoffice.xmerge.converter.xml.Style.getParent(), org.openoffice.xmerge.converter.xml.ParaStyle.getResolved(), org.openoffice.xmerge.converter.xml.Style.getResolved(), org.openoffice.xmerge.converter.xml.sxc.CellStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.ColumnStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.getResolved(), org.openoffice.xmerge.converter.xml.TextStyle.getResolved(), org.openoffice.xmerge.converter.xml.sxc.RowStyle.RowStyle(), org.openoffice.xmerge.converter.xml.Style.Style(), and org.openoffice.xmerge.converter.xml.TextStyle.TextStyle().
|
protected |
A reference to the StyleCatalog
to be used for looking up ancestor Style
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().