public class PrintSetupRecord extends Record
Description: Stores print setup options -- bogus for HSSF (and marked as such)
REFERENCE: PG 385 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)
Modifier and Type | Field and Description |
---|---|
private static BitField |
draft |
private short |
field_1_paper_size |
private double |
field_10_footermargin |
private short |
field_11_copies |
private short |
field_2_scale |
private short |
field_3_page_start |
private short |
field_4_fit_width |
private short |
field_5_fit_height |
private short |
field_6_options |
private short |
field_7_hresolution |
private short |
field_8_vresolution |
private double |
field_9_headermargin |
private static BitField |
landscape |
private static BitField |
lefttoright |
private static BitField |
nocolor |
private static BitField |
noOrientation |
private static BitField |
notes |
static short |
sid |
private static BitField |
usepage |
private static BitField |
validsettings |
Constructor and Description |
---|
PrintSetupRecord() |
PrintSetupRecord(RecordInputStream in)
Constructs a PrintSetup (SETUP) record and sets its fields appropriately.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
protected void |
fillFields(RecordInputStream in)
called by the constructor, should set class level fields.
|
short |
getCopies() |
boolean |
getDraft() |
short |
getFitHeight() |
short |
getFitWidth() |
double |
getFooterMargin() |
double |
getHeaderMargin() |
short |
getHResolution() |
boolean |
getLandscape() |
boolean |
getLeftToRight() |
boolean |
getNoColor() |
boolean |
getNoOrientation() |
boolean |
getNotes() |
short |
getOptions() |
short |
getPageStart() |
short |
getPaperSize() |
int |
getRecordSize()
gives the current serialized size of the record.
|
short |
getScale() |
short |
getSid()
return the non static version of the id for this record.
|
boolean |
getUsePage() |
boolean |
getValidSettings() |
short |
getVResolution() |
int |
serialize(int offset,
byte[] data)
called by the class that is responsible for writing this sucker.
|
void |
setCopies(short copies) |
void |
setDraft(boolean d) |
void |
setFitHeight(short height) |
void |
setFitWidth(short width) |
void |
setFooterMargin(double footermargin) |
void |
setHeaderMargin(double headermargin) |
void |
setHResolution(short resolution) |
void |
setLandscape(boolean ls) |
void |
setLeftToRight(boolean ltor) |
void |
setNoColor(boolean mono) |
void |
setNoOrientation(boolean orientation) |
void |
setNotes(boolean printnotes) |
void |
setOptions(short options) |
void |
setPageStart(short start) |
void |
setPaperSize(short size) |
void |
setScale(short scale) |
void |
setUsePage(boolean page) |
void |
setValidSettings(boolean valid) |
void |
setVResolution(short resolution) |
String |
toString()
get a string representation of the record (for biffview/debugging)
|
protected void |
validateSid(short id)
called by constructor, should throw runtime exception in the event of a
record passed with a differing ID.
|
isInValueSection, isValue, serialize
public static final short sid
private short field_1_paper_size
private short field_2_scale
private short field_3_page_start
private short field_4_fit_width
private short field_5_fit_height
private short field_6_options
private static final BitField lefttoright
private static final BitField landscape
private static final BitField validsettings
private static final BitField nocolor
private static final BitField draft
private static final BitField notes
private static final BitField noOrientation
private static final BitField usepage
private short field_7_hresolution
private short field_8_vresolution
private double field_9_headermargin
private double field_10_footermargin
private short field_11_copies
public PrintSetupRecord()
public PrintSetupRecord(RecordInputStream in)
in
- the RecordInputstream to read the record fromprotected void validateSid(short id)
Record
validateSid
in class Record
id
- alleged id for this recordprotected void fillFields(RecordInputStream in)
Record
fillFields
in class Record
in
- the RecordInputstream to read the record frompublic void setPaperSize(short size)
public void setScale(short scale)
public void setPageStart(short start)
public void setFitWidth(short width)
public void setFitHeight(short height)
public void setOptions(short options)
public void setLeftToRight(boolean ltor)
public void setLandscape(boolean ls)
public void setValidSettings(boolean valid)
public void setNoColor(boolean mono)
public void setDraft(boolean d)
public void setNotes(boolean printnotes)
public void setNoOrientation(boolean orientation)
public void setUsePage(boolean page)
public void setHResolution(short resolution)
public void setVResolution(short resolution)
public void setHeaderMargin(double headermargin)
public void setFooterMargin(double footermargin)
public void setCopies(short copies)
public short getPaperSize()
public short getScale()
public short getPageStart()
public short getFitWidth()
public short getFitHeight()
public short getOptions()
public boolean getLeftToRight()
public boolean getLandscape()
public boolean getValidSettings()
public boolean getNoColor()
public boolean getDraft()
public boolean getNotes()
public boolean getNoOrientation()
public boolean getUsePage()
public short getHResolution()
public short getVResolution()
public double getHeaderMargin()
public double getFooterMargin()
public short getCopies()
public String toString()
Record
public int serialize(int offset, byte[] data)
Record
public int getRecordSize()
Record
getRecordSize
in class Record
public short getSid()
Record
Copyright © 2015 Open Microscopy Environment