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

This is a class to define a table-column structure. More...

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

Public Member Functions

 ColumnRowInfo (int type)
 Constructor for a. More...
 
 ColumnRowInfo (int dimension, int repeated, int type, boolean userDefined)
 Constructor for a. More...
 
void setFormat (Format fmt)
 Sets the format. More...
 
Format getFormat ()
 Get the current. More...
 
int getSize ()
 Get the height (for rows) or width (for columns). More...
 
void setSize (int dimension)
 Set the height (for rows) or width (for columns). More...
 
int getRepeated ()
 Get the repeat count for this item. More...
 
void setRepeated (int repeated)
 Set the repeat count for this item. More...
 
boolean isRow ()
 Does this. More...
 
boolean isColumn ()
 Does this. More...
 
boolean isUserDefined ()
 Test if the row height has been set manually. More...
 
boolean isDefaultSize ()
 Test if the row height is default. More...
 

Static Public Attributes

final static int COLUMN = 0x01
 
final static int ROW = 0x02
 

Private Member Functions

 ColumnRowInfo (int dimension, int repeated, int type)
 Constructor for a. More...
 

Private Attributes

int type
 
int dimension = 0
 
int repeated = 1
 
boolean userDefined = true
 
Format fmt = new Format()
 

Static Private Attributes

final static int DEFAULTROWSIZE_MIN = 250
 
final static int DEFAULTROWSIZE_MAX = 260
 

Detailed Description

This is a class to define a table-column structure.

This can then be used by plug-ins to write or read their own column types.

Definition at line 27 of file ColumnRowInfo.java.

Constructor & Destructor Documentation

org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.ColumnRowInfo ( int  type)
inline

Constructor for a.

.

Parameters
typewhether or record.

Definition at line 46 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.type.

org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.ColumnRowInfo ( int  dimension,
int  repeated,
int  type 
)
inlineprivate

Constructor for a.

.

Parameters
dimensionif it's a row the height, a column the width.
repeatedhow many times it is repeated.
typewhether or record.

Definition at line 58 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.dimension, org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.repeated, and org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.type.

org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.ColumnRowInfo ( int  dimension,
int  repeated,
int  type,
boolean  userDefined 
)
inline

Constructor for a.

that includes userDefined field.

Parameters
dimensionif it's a row the height, a column the width.
repeatedhow many times it is repeated.
typewhether or record.
userDefinedwhether the record is manually set.

Definition at line 73 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.dimension, org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.repeated, org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.type, and org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.userDefined.

Member Function Documentation

Format org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getFormat ( )
inline
int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getRepeated ( )
inline
int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getSize ( )
inline
boolean org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.isColumn ( )
inline
boolean org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.isDefaultSize ( )
inline

Test if the row height is default.

Returns
true
if default otherwise
false
.

Definition at line 174 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.DEFAULTROWSIZE_MAX.

boolean org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.isRow ( )
inline

Does this.

represent a row?

Returns
true
if a row,
false
if not.

Definition at line 144 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.ROW.

Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells().

boolean org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.isUserDefined ( )
inline

Test if the row height has been set manually.

Returns
true
if user defined otherwise
false
.

Definition at line 164 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.userDefined.

void org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.setFormat ( Format  fmt)
inline

Sets the format.

Parameters
fmtThe new format to use.

Definition at line 84 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.fmt.

Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseTableColumn().

void org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.setRepeated ( int  repeated)
inline

Set the repeat count for this item.

Parameters
repeatedThe number of times this item is repeated.

Definition at line 134 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.repeated.

Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseTableColumn().

void org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.setSize ( int  dimension)
inline

Set the height (for rows) or width (for columns).

Parameters
dimensionThe height or width.

Definition at line 114 of file ColumnRowInfo.java.

References org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.dimension.

Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseTableColumn().

Member Data Documentation

final static int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.COLUMN = 0x01
static
final static int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.DEFAULTROWSIZE_MAX = 260
staticprivate
final static int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.DEFAULTROWSIZE_MIN = 250
staticprivate

Definition at line 32 of file ColumnRowInfo.java.

int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.dimension = 0
private
Format org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.fmt = new Format()
private
int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.repeated = 1
private
final static int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.ROW = 0x02
static
int org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.type
private
boolean org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.userDefined = true
private

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