public final class StyleRecord extends StandardRecord
REFERENCE: PG 390 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
static short |
sid |
Constructor and Description |
---|
StyleRecord()
creates a new style record, initially set to 'built-in'
|
StyleRecord(int index,
BuiltInStyle data) |
StyleRecord(int index,
XLUnicodeString user) |
StyleRecord(RecordInputStream in) |
Modifier and Type | Method and Description |
---|---|
protected int |
getDataSize() |
java.lang.String |
getName()
get the style's name
|
short |
getSid()
return the non static version of the id for this record.
|
int |
getXFIndex()
get the actual index of the style extended format record
|
boolean |
isBuiltin() |
void |
serialize(LittleEndianOutput out)
Write the data content of this BIFF record.
|
void |
setBuiltin(boolean flag) |
void |
setBuiltinStyle(int builtinStyleId)
if this is a builtin style set the number of the built in style
|
void |
setName(java.lang.String name)
set the style's name
|
void |
setOutlineStyleLevel(int level)
set the row or column level of the style (if builtin 1||2)
|
void |
setXFIndex(int xfIndex)
set the actual index of the style extended format record
|
java.lang.String |
toString()
get a string representation of the record (for biffview/debugging)
|
getRecordSize, serialize
clone, cloneViaReserialise, serialize
public static final short sid
public StyleRecord()
public StyleRecord(int index, XLUnicodeString user)
public StyleRecord(int index, BuiltInStyle data)
public StyleRecord(RecordInputStream in)
public void setXFIndex(int xfIndex)
xfIndex
- of the xf recordpublic int getXFIndex()
getXFIndex()
public void setName(java.lang.String name)
name
- of the stylepublic void setBuiltinStyle(int builtinStyleId)
builtinStyleId
- style number (0-7)public void setOutlineStyleLevel(int level)
public boolean isBuiltin()
public void setBuiltin(boolean flag)
public java.lang.String getName()
public java.lang.String toString()
Record
protected int getDataSize()
getDataSize
in class StandardRecord
public void serialize(LittleEndianOutput out)
StandardRecord
RecordBase.getRecordSize()
} minus four
( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
by thye superclass).serialize
in class StandardRecord
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.