public final class Boundsheet extends XLSRecord implements Sheet
offset name size contents
---
4 lbPlyPos 4 Stream position of the BOF for the sheet
8 grbit 2 Option flags
10 cch 1 Length of sheet name
11 grbitChr 1 Compressed/Uncompressed Unicode
12 rgch var Sheet name
---- File Layout ----
BOUNDSHEET
Bof
Index
Row1 is first index in DBCELL
Row2 is the offset of any DBCELLS
Row...
CELLREC
CELLREC
CELLREC
DBCELL rgdb rg rg rg rg
ROWS
CELLS
DBCELL rg rg rg
...
EOF
----------------------
lbplypos used to be the most important thing on earth. now it is not an issue.| Modifier and Type | Field and Description |
|---|---|
protected AbstractList |
arrayformulas |
boolean |
fastCellAdds |
protected Footerrec |
ftr |
protected Headerrec |
hdr |
static byte |
HIDDEN |
HashMap |
imageMap |
int |
lastObjId |
static byte |
VERY_HIDDEN |
static byte |
VISIBLE |
col, continues, DEBUGLEVEL, hyperlink, idx, isBlank, isBoolean, isContinueMerged, isString, lastidx, myxf, offset, rw, streamer, wkbook, worksheetTYPE_CHART, TYPE_SHEET_DIALOG, TYPE_VBMODULE, TYPE_XL4_MACROAI, ALLOWDUPES, ALRUNS, AREA, AREAFORMAT, ARRAY, ATTACHEDLABEL, AUTOFILTER, AXCENT, AXESUSED, AXIS, AXISLINEFORMAT, AXISPARENT, BACKUP, BAR, BEGIN, BLANK, BOF, BOOKBOOL, BOOLERR, BOPPOP, BOPPOPCUSTOM, BOTTOM_MARGIN, BOTTOMMARGIN, BOUNDSHEET, CALC_MODE_PROP, CALCCOUNT, CALCMODE, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, CATLAB, CATSERRANGE, CF, CF12, CHART3DBARSHAPE, CHARTFORMAT, CHARTFORMATLINK, CHARTFRTINFO, CHARTLINE, CODENAME, COLINFO, CONDFMT, CONDFMT12, CONTINUE, COUNTRY, CRN, CRTLAYOUT12, CRTLAYOUT12A, DAT, DATAFORMAT, DATALABEXT, DATALABEXTCONTENTS, DATE1904, DBCELL, DCON, DCONBIN, DCONNAME, DCONREF, DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM, DEFAULTENCODING, DEFAULTROWHEIGHT, DEFAULTTEXT, DEFCOLWIDTH, DELTA, DIMENSIONS, DROPBAR, DSF, DV, DVAL, END, ENDBLOCK, ENDEXTSST, ENDOBJECT, EOF, EXCEL2K, EXTERNCOUNT, EXTERNNAME, EXTERNSHEET, EXTSST, FBI, FEATHEADR, FILE_LOCK, FILEPASS, FONT, FONTBASIS, FONTX, FOOTERREC, FORMAT, FORMULA, FRAME, FRTFONTLIST, FRTWRAPPER, GARBAGE, GELFRAME, GUTS, HCENTER, HEADERREC, HLINK, HORIZONTAL_PAGE_BREAKS, IFMT, INDEX, INTERFACE_HDR, ITERATION, LABEL, LABELSST, LEFT_MARGIN, LEFTMARGIN, LEGEND, LEGENDXN, LINE, LINEFORMAT, MARKERFORMAT, MAXCOLS, MAXCOLS_BIFF8, MAXRECLEN, MAXROWS, MAXROWS_BIFF8, MERGEDCELLS, MSODRAWING, MSODRAWINGGROUP, MSODRAWINGSELECTION, MULBLANK, MULRK, NAME, NOTE, NUMBER, OBJ, OBJECTLINK, OBJPROTECT, OBPROJ, PALETTE, PANE, PASSWORD, PHONETIC, PICF, PIE, PIEFORMAT, PIVOTCHARTBITS, PIVOTCHARTLINK, PLOTAREA, PLOTGROWTH, PLS, PLV, POS, PRECISION, PRINT_GRIDLINES, PRINT_ROW_HEADERS, PRINTGRID, PRINTROWCOL, PROT4REV, PROTECT, QSISXTAG, RADAR, RADARAREA, RANGEPROTECTION, REFMODE, REFTRACK_PROP, RIGHT_MARGIN, RIGHTMARGIN, RK, ROW, RRD_HEAD, RRD_INFO, RSTRING, RTENTEXU, RTMERGECELLS, SBASEREF, SCATTER, SCENPROTECT, SCL, SELECTION, SERAUXERRBAR, SERAUXTREND, SERFMT, SERIES, SERIESLIST, SERIESTEXT, SERPARENT, SERTOCRT, SETUP, SHAREDUPES, SHEETLAYOUT, SHEETPROTECTION, SHRFMLA, SHTPROPS, SIIINDEX, SST, STARTBLOCK, STARTOBJECT, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE, STRINGREC, STYLE, SUPBOOK, SURFACE, SXADDL, SXBOOL, SXDB, SXDBB, SXDBEX, SXDI, SXEX, SXFDB, SXFDBTYPE, SXFORMAT, SXIVD, SXLI, SXNUM, SXPI, SXSTREAMID, SXSTRING, SXVD, SXVDEX, SXVI, SXVIEW, SXVIEWEX9, SXVIEWLINK, SXVS, TABID, TABLE, TABLESTYLES, TEXTDISP, THREED, TICK, TOP_MARGIN, TOPMARGIN, TXO, TYPE_BLANK, TYPE_BOOLEAN, TYPE_DOUBLE, TYPE_FORMULA, TYPE_FP, TYPE_INT, TYPE_STRING, UNICODEENCODING, UNITS, USERBVIEW, USERSVIEWBEGIN, USERSVIEWEND, USETEMPFILE_PROP, USR_EXCL, VALIDATEWORKBOOK, VALUERANGE, VB_MODULE, VCENTER, VERTICAL_PAGE_BREAKS, WINDOW_PROTECT, WINDOW1, WINDOW2, WK_CHART, WK_FILE, WK_GLOBALS, WK_MACROSHEET, WK_WORKSHEET, WSBOOL, XCT, XF, XLS_MAX_COLS, YMULT| Constructor and Description |
|---|
Boundsheet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addArrayFormula(Array a)
associate an Array formula with this Boundsheet
|
AutoFilter |
addAutoFilter(int column)
Adds a new AutoFilter to the specified column
|
void |
addCell(CellRec cell)
Add a cell to this boundsheet record and populate the cells array
|
Chart |
addChart(byte[] inbytes,
short[] coords)
Adds a chart from a bytestream, keeps the title intact.
|
Chart |
addChart(byte[] inbytes,
String NewChartName,
short[] coords) |
void |
addChart(Chart c)
add chart to sheet-specific list of charts
|
void |
addColinfo(Colinfo c)
column formatting records
Note that it checks if exists.
|
Colinfo |
addColinfo(int begCol,
int endCol,
int width,
int ixfe,
int grbit)
Add a new colinfo
|
void |
addConditionalFormat(Condfmt cf)
add a new Condtional Format rec for this sheet
|
protected static void |
addExternalInfo(Map<String,String> externalobjs,
org.xmlpull.v1.XmlPullParser xpp)
associates external reference info with the r:id of the external reference
for instance, oleObject elements are associated with a shape Id that links back to a .vml file entry
|
void |
addLocalName(Name name)
Add a sheet-scoped name record to the boundsheet
Note this is not that primary repository for names, it just contains the name records
that are bound to this sheet, adding them here will not add them to the workbook;
|
void |
addMarginRecord(BiffRec r)
add pritner setting record to worksheet recs
|
Mergedcells |
addMergedCellRec()
adds a merged cell to this sheet
|
void |
addMergedCellsRec(Mergedcells r) |
void |
addOOXMLObject(Object o)
adds the object-specific signature of the external or auxillary Excel 2007 object
e.g.
|
void |
addOOXMLShape(Object vml)
Store Excel 2007 legacy drawing shapes
|
void |
addOOXMLShape(OneCellAnchor oca)
store Excel 2007 shape via Shape Name
|
void |
addOOXMLShape(TwoCellAnchor tca)
store Excel 2007 shape via Shape Name
|
void |
addParentArrayRef(String addr,
String ref)
map array formula range reference to the parent array formula address
for Array Formula Parent Records only boundsheet |
Sxview |
addPivotTable(String ref,
WorkBookHandle wbh,
int sId,
String tablename)
adds a sxview - pivot table lead record - and required associated records to the worksheet
other methods that add data, row, col and page fields will fill in the pivot table fields and formatting info |
void |
addPrintRec(BiffRec record)
Adds a print-related record to the list of said.
|
void |
addRecord(BiffRec rec,
int[] rc)
Add an XLSRecord to a WorkSheet.
|
void |
addRowRec(Row r)
associate an existing Row with this Boundsheet
if the row already exists...
|
BiffRec |
addValue(Object obj,
int[] rc,
boolean fixNumberAsString)
adds a value to the sheet
|
BiffRec |
addValue(Object obj,
int[] rc,
int FORMAT_ID)
adds a cell to the Sheet
|
BiffRec |
addValue(Object obj,
int[] rc,
int FORMAT_ID,
boolean fixNumberAsString)
adds a cell to the Sheet
|
BiffRec |
addValue(Object obj,
String address)
Add a Value record to a WorkSheet.
|
BiffRec |
addValue(Object obj,
String address,
boolean fixNumberAsString)
Add a Value record to a WorkSheet.
|
List |
assembleSheetRecs()
assembleSheetRecs assembles the array of records, then ouputs
the ordered list to the bytestreamer, which should be the only
thing calling this.
|
void |
close()
clear out object references in prep for closing workbook
|
Cf |
createCf(Condfmt cfx)
Create a Cf (Conditional format rule) record and
add it to sheet recs
|
Colinfo |
createColinfo(int first,
int last) |
Colinfo |
createColinfo(int first,
int last,
Colinfo template)
Create a colinfo using the values from an existing colinfo
|
Colinfo |
createColinfo(int first,
int last,
int width,
int ixfe,
int grbit)
Add a new colinfo
|
Condfmt |
createCondfmt(String location,
WorkBookHandle wbh)
Create a Condfmt (Conditional format) record and
add it to sheet recs
|
Dv |
createDv(String location)
Create a dv (validation record)
record gets inserted into the byte stream from
within Dval
|
Note |
createNote(String address,
String txt,
String author)
Adds a new Note or Comment to the sheet at the desired address
|
Note |
createNote(String address,
Unicodestring txt,
String author)
Adds a new Note or Comment to the sheet at the desired address
with Formatting (Font) information
|
void |
evaluateAutoFilters()
update row filter (hidden status) by evaluating AutoFilter conditions on the sheet
Must do after autofilter updates or additions |
Name[] |
getAllNames()
Get all the names for this boundsheet
|
Array |
getArrayFormula(String addr)
Returns an array formula for the set address
|
Object |
getArrayFormulaParent(int[] rc)
see if an array formula is part of an existing array formula
by checking to see if the address in quesion is referenced by any array formula references on this sheet |
String |
getArrayRef(String formAddress)
given an parent array formula at address formAddress,
look up in saved arrFormulaLocs for the cell range it references
|
List |
getAutoFilters()
return the AutoFilter record for this Boundsheet, if any
TODO: Merge with OOXML Autofilter
|
BiffRec |
getCell(int row,
int col)
Gets a cell on this sheet by its row and column indexes.
|
BiffRec |
getCell(String address)
Deprecated.
Use
getCell(int, int) instead. |
BiffRec[] |
getCells()
get an array of all cells for this worksheet
|
ArrayList<BiffRec> |
getCellsByCol(int colNum)
Access an arrayList of cells by column
|
ArrayList<BiffRec> |
getCellsByRow(int rowNum)
Access an arrayList of cells by column
|
List |
getCharts()
This seems incorrect, should we not be just returning
charts for the boundsheet in question?
|
Colinfo |
getColInfo(int col)
get a handle to a specific column of cells in this sheet
|
Colinfo |
getColinfo(String c)
get a colinfo by name
|
Collection<Colinfo> |
getColinfos()
get the Collection of Colinfos
|
List |
getColNames()
get the FastAddVector of columns defined on this sheet
|
List |
getConditionalFormats() |
float |
getDefaultColumnWidth()
return the default column width in # characters of the maximum digit width of the normal style's font
This is currently a floating point value, something I question.
|
double |
getDefaultRowHeight()
return the default row height in points (Excel 2007-Specific)
|
DefColWidth |
getDefColWidth() |
Dimensions |
getDimensions()
the beginning of the Dimensions record
is the index of the RowBlocks
|
Dval |
getDvalRec() |
List |
getDvRecs()
Return an array of all the dvRecs within
this boundsheet (Dval parent rec)
|
Footerrec |
getFooter() |
byte |
getGrbitChr() |
Guts |
getGuts() |
Headerrec |
getHeader() |
boolean |
getHidden()
get whether this sheet is hidden upon opening (either regular or "very hidden"
|
ImageHandle |
getImageByMsoIndex(int index)
obtain the desired image handle via the MsoDrawing Image Index
used for mapping images from copied worksheets
|
ImageHandle[] |
getImages()
for whatever reason, we return a Handle from an internal class
|
List |
getImageVect()
returns the images list
|
int |
getIndexOf(short opc) |
int |
getIndexOfDimensions() |
int |
getIndexOfMsodrawingselection() |
int |
getIndexOfWindow2() |
BiffRec |
getLastCell()
get the last BiffRec added to this sheet
|
Selection |
getLastselection() |
long |
getLbPlyPos()
return the pos of the Bof for this Sheet
|
List |
getLocalRecs() |
int |
getMaxCol() |
int |
getMaxRow()
return true maximum/last row on the sheet
|
List |
getMergedCells()
return existing merged cell records without adding new blank
|
Mergedcells |
getMergedCellsRec() |
List |
getMergedCellsRecs() |
int |
getMinCol() |
int |
getMinRow() |
Bof |
getMyBof() |
Eof |
getMyEof() |
Name |
getName(String name)
Get a sheet scoped name record from the boundsheet
|
ArrayList |
getNotes()
returns an arrayList of notes in the worksheet
|
int |
getNumCells()
get the number of defined cells on this sheet
|
int |
getNumCols()
get the Number of columns defined on this sheet
|
int |
getNumRows()
get the number of defined rows on this sheet
|
AutoFilter |
getOOAutoFilter()
returns the Excel 2007 autoFilter element for this sheet (temporarily hides rows based upon filter criteria)
TODO: Merge with 2003 AutoFilter
|
List |
getOOXMLObjects()
returns the list of Excel 2007 objects which are external or auxillary to this sheet
e.g printerSeettings, vmlDrawings
|
HashMap |
getOOXMLShapes()
return map of Excel 2007 shapes in this workbook
|
Pane |
getPane()
retrieve the Pane rec for this sheet
|
String |
getPrintArea()
Get the print area set for this WorkSheetHandle.
|
protected Name |
getPrintAreaNameRec()
Get the print area name rec for this
boundsheet, return null if not exists
|
protected Name |
getPrintAreaNameRec(byte type)
Get the print area or titles name rec for this
boundsheet, return null if not exists
|
PrinterSettingsHandle |
getPrinterSetupHandle()
Gets the printer setup handle for this sheet.
|
List |
getPrintRecs()
Gets a list of the print related records for this sheet.
|
String |
getPrintTitles()
Get the Print Titles range set for this WorkSheetHandle.
|
SheetProtectionManager |
getProtectionManager()
Gets this sheet's SheetProtectionManager.
|
int |
getRealMaxCol()
Returns the *real* last col num.
|
Row |
getRowByNumber(int r)
get a handle to the Row at the specified
row index
Zero-based Index.
|
Map |
getRowMap()
return a Map of the Rows
|
List |
getRowNums()
get the FastAddVector of rows defined on this sheet
|
Row[] |
getRows()
return an Array of the Rows
|
Scl |
getScl()
scl is for zoom
|
Name |
getScopedName(String nameRef)
returns a scoped named range by name string
|
byte[] |
getSheetBytes()
Returns a serialized copy of this Boundsheet
|
String |
getSheetHash()
Sheet hash is a cross-workbook identifier for OpenXLS.
|
Index |
getSheetIDX()
set the associated sheet index
|
String |
getSheetName()
get the name of the sheet
|
int |
getSheetNum()
set the numeric sheet number
|
SheetPr |
getSheetPr()
returns the Excel 2007 sheetPr sheet Properties element for this sheet (controls codename, tabColor ...)
|
BiffRec |
getSheetRec(short opc)
return the desired record from the sheetrecs, or null if doesn't exist
|
List |
getSheetRecs() |
Name[] |
getSheetScopedNames()
Get a collection of all names in the worksheet
|
short |
getSheetType()
get the type of sheet as a short
|
String |
getSheetTypeString()
get the type of sheet as a string
|
SheetView |
getSheetView()
returns the Excel 2007 sheetView element for this sheet (controls topLeftCell, pane attributes ...
|
SortedMap |
getSortedRows()
return the map of row in this sheet sorted by row #
(will be unsorted if insertions and deletions)
|
protected List |
getTransferFonts()
return local Font records, used for boundsheet transferral.
|
protected List |
getTransferXfs()
return local XF records, used for boundsheet transferral.
|
boolean |
getVeryHidden() |
Window2 |
getWindow2() |
WorkBook |
getWorkBook() |
WsBool |
getWsBool() |
boolean |
hasCustomHeight()
return true if defaultrowheight is manually set (Excel 2007-Specific)
|
boolean |
hasMergedCells()
return truth of "has merged cells"
|
boolean |
hasThickBottom()
set if row has thick bottom by default (Excel 2007-Specific)
|
boolean |
hasThickTop()
return true if row has thick top by default (Excel 2007-Specific)
|
boolean |
hasZeroHeight()
return true if rows are hidden by default (Excel 2007-Specific)
|
void |
init()
initialize the SheetImpl with data from
the byte array.
|
void |
insertCols(int first,
int count)
inserts a col and shifts all of the other rows over one
|
int |
insertDropDownBox(int colNum)
Handles the MSO records necessary for defining a DropDown list object
|
Dval |
insertDvalRec()
For workbooks that do not contain a dval record,
insert a default dval rec
|
void |
insertImage(ImageHandle im)
Insert an image into the WorkBook
|
void |
insertImage(ImageHandle im,
boolean bAddUnconditionally)
Please add comments for this method
|
Row |
insertRow(int rownum,
int firstcol,
int flag,
boolean shiftrows)
Inserts a row and shifts subsequent rows down by one.
|
void |
insertSheetRecordAt(BiffRec r,
int index) |
boolean |
isArrayFormulaParent(String addr)
return true if address refers to an Array Formula Parent
i.e. |
boolean |
isChartOnlySheet()
Determine if the boundsheet is a chart only boundsheet
|
boolean |
isShiftInclusive()
return whether to shift (formula cells, named ranges) "inclusive" or not
|
void |
moveCell(String startaddr,
String endaddr)
Moves a cell location from one address to another
|
protected void |
parseSheetElements(WorkBookHandle bk,
ZipFile zip,
ArrayList cl,
String parentDir,
String externalDir,
ArrayList formulas,
ArrayList hyperlinks,
HashMap inlineStrs,
HashMap<String,WorkSheetHandle> pivotTables)
parses OOXML content files given a content list cl from zip file zip
recurses if content file has it's own content
*************************************
NOTE: certain elements we do not as of yet process; we "pass-through" or store such elements along with any embedded objects associated with them
for example, activeX objects, vbaProject.bin, etc.
|
void |
populateForTransfer()
populateForTransfer is a method that takes all of the shared resources (SST, XF, Font, etc) records and
verifies that they are populated for use in a destination workbook
|
void |
preStream()
do all of the expensive updating here
only right before streaming record.
|
void |
removeAllRecords()
remove all Sheet records from Sheet.
|
void |
removeAutoFilter()
removes all autofilters from this sheet
|
void |
removeCell(BiffRec cell)
remove a BiffRec from the worksheet.
|
void |
removeCell(int row,
int col)
Remove a BiffRec from this WorkSheet.
|
void |
removeCell(String celladdr)
Deprecated.
Use
removeCell(int, int) instead. |
void |
removeCols(int first,
int count,
boolean shift)
Removes a set of columns and their associated cells from this sheet.
|
boolean |
removeImage(ImageHandle img)
removes an image from the imagehandle cache (should be in WSH)
Jan 22, 2010
|
void |
removeLocalName(Name name)
Remove a sheet-scoped name record from the boundsheet.
|
void |
removeMulrk(Rk thisrk)
Called from removeCell(), removeMulrk() handles the fact that you
are trying to delete a rk that is really just a part of a Mulrk.
|
void |
removeNote(Note n)
removes the desired note from the sheet
|
void |
removePane()
remove pane rec, effectively unfreezing
|
void |
removeRecFromVec(BiffRec rec)
remove rec from the vector, includes firing
a changeevent.
|
void |
removeRecFromVec(int idx)
remove a record from the vector via it's index
into the SheetRecs aray, includes firing a change event
|
void |
removeRowContents(int rownum)
Remove a row, do not shift any other rows
|
void |
removeRows(int first,
int count,
boolean shift)
Removes some rows and all associated cells from this sheet.
|
boolean |
selected()
returns the selected sheet status
|
void |
setBOF(Bof b)
set the Bof record for this Boundsheet
|
void |
setCopyPriorCellFormats(boolean f) |
void |
setDefaultColumnWidth(float w)
set the default column width in # characters of the maximum digit width of the normal style's font
|
void |
setDefaultRowHeight(double h)
set the default row height in points (Excel 2007-Specific)
|
void |
setDefColWidth(DefColWidth defColWidth) |
void |
setDimensions(Dimensions d) |
void |
setDvalRec(Dval d) |
void |
setEOF(Eof f) |
void |
setFastCellAdds(boolean fastCellAdds)
Set to true to turn off checking for existing cells, conditional formats and merged ranges in order to
accelerate adding new cells
|
void |
setFooter(BiffRec ftr) |
void |
setGrbitChr(byte gb) |
void |
setGuts(Guts g) |
void |
setHasCustomHeight(boolean b)
set if defaultrowheight is manually set (Excel 2007-Specific)
|
void |
setHeader(BiffRec h) |
void |
setHidden(int gr)
set whether this sheet is hidden upon opening
|
void |
setLastselection(Selection lastselection) |
void |
setLbPlyPos(long newpos)
set the pos of the Bof for this Sheet
|
void |
setLocalRecs()
prior to serializing the worksheet,
we need to initialize the records which belong to this sheet
instance.
|
void |
setLocalRecs(FastAddVector l) |
void |
setOOAutoFilter(AutoFilter a)
set the Excel 2007 autoFilter element for this sheet (temporarily hides rows based upon filter criteria)
TODO: Merge with 2003 AutoFilter
|
void |
setPane(Pane p)
set/save the Pane rec for this sheet
also links the Window2 rec to the pane rec
|
void |
setPrintArea(String range)
Set the print area for this worksheet.
|
void |
setPrintArea(String printarea,
byte type)
Set the print area or titles for this worksheet.
|
void |
setPrintTitles(String range)
Set the print titles for this worksheet= row(s) or col(s) to repeat at the top of each page
|
void |
setScl(Scl s)
scl is for zoom
|
void |
setSelected(boolean b)
set whether this sheet is selected upon opening
|
void |
setSheetIDX(Index idx)
set the associated sheet index
|
void |
setSheetName(String newname)
change the displayed name of the sheet
Affects the following byte values:
10 cch 1 Length of sheet name
11 grbitChr 1 Compressed/Uncompressed Unicode
12 rgch var Sheet name
|
void |
setSheetPr(SheetPr s)
set the Excel 2007 sheetView element for this sheet (controls topLeftCell, pane attributes ...
|
void |
setSheetRecs(AbstractList shtRecs) |
void |
setSheetView(SheetView s)
set the Excel 2007 sheetView element for this sheet (controls topLeftCell, pane attributes ...
|
void |
setShiftRule(boolean bShiftInclusive)
Set whether to shift formula cells inclusively
i.e.
|
void |
setThickBottom(boolean b)
set if row has thick bottom by default (Excel 2007-Specific)
|
void |
setThickTop(boolean b)
set if row has thick top by default (Excel 2007-Specific)
|
void |
setWindow2(Window2 w) |
void |
setWsBool(WsBool ws) |
void |
setZeroHeight(boolean b)
set if rows are hidden by default (Excel 2007-Specific)
|
String |
toString()
get the name of the sheet
|
void |
updateCellReferences(BiffRec c,
String endaddr)
Moves a cell location from one address to another,
without any clearing of previous locations.
|
void |
updateDimensions(int row,
int c)
update the INDEX record with the new max Row #
why we need so many redundant references to the Min/Max Row/Cols
is a question for the Redmond sages.
|
void |
updateMergedCells()
shifts Merged cells.
|
void |
writeAsTabbedText(OutputStream dest)
write this sheet as tabbed text output:
All rows and all characters in each cell are saved. |
addContinue, clone, copyFormat, getBooleanVal, getByteAt, getByteReader, getBytes, getBytesAt, getCellAddress, getCellAddressWithSheet, getCellType, getColNumber, getColorTable, getContinueVect, getData, getDataType, getDblVal, getDefaultVal, getEncryptedByteReader, getFirstBlock, getFloatVal, getFont, getFormatPattern, getFormulaRec, getHyperlink, getInternalVal, getIntLocation, getIntVal, getIxfe, getLastBlock, getLength, getMergeRange, getOffset, getOpcode, getPrototype, getRealRecordIndex, getRecDesc, getRecordIndex, getRow, getRowNumber, getSheet, getStreamer, getStringVal, getStringVal, getXfRec, hasContinues, initRowCol, isFormula, isNumber, isReadOnly, isValueForCell, mergeContinues, postStream, remove, removeContinues, resetCacheBytes, setBooleanVal, setByteReader, setCol, setData, setDebugLevel, setDoubleVal, setEncryptedByteReader, setFirstBlock, setFloatVal, setHyperlink, setIndex, setIntVal, setIsValueForCell, setIxfe, setLastBlock, setLength, setMergeRange, setOffset, setOpcode, setRow, setRowCol, setRowNumber, setSheet, setStreamer, setStringVal, setValueForCell, setWorkBook, setXFRecord, setXFRecord, shouldEncrypt, toHexDumpequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddContinue, copyFormat, getBooleanVal, getByteAt, getByteReader, getBytes, getBytesAt, getCellAddress, getColNumber, getContinueVect, getData, getDataType, getDblVal, getDefaultVal, getEncryptedByteReader, getFloatVal, getFont, getFormatPattern, getFormulaRec, getHyperlink, getInternalVal, getIntVal, getIxfe, getLength, getMergeRange, getOffset, getOpcode, getRecordIndex, getRow, getRowNumber, getSheet, getStreamer, getStringVal, getStringVal, getXfRec, hasContinues, isReadOnly, isValueForCell, postStream, remove, removeContinues, setBooleanVal, setByteReader, setCol, setData, setDebugLevel, setDoubleVal, setEncryptedByteReader, setHyperlink, setIndex, setIntVal, setIsValueForCell, setIxfe, setLength, setMergeRange, setOffset, setOpcode, setRow, setRowCol, setRowNumber, setSheet, setStreamer, setStringVal, setWorkBook, setXFRecord, setXFRecord, toHexDumpprotected AbstractList arrayformulas
public HashMap imageMap
protected Headerrec hdr
protected Footerrec ftr
public int lastObjId
public static final byte VISIBLE
public static final byte HIDDEN
public static final byte VERY_HIDDEN
public boolean fastCellAdds
public void setDvalRec(Dval d)
public Dval getDvalRec()
public SheetProtectionManager getProtectionManager()
public BiffRec getLastCell()
getLastCell in interface Sheetpublic List getSheetRecs()
getSheetRecs in interface Sheetpublic void insertImage(ImageHandle im)
im - public void insertImage(ImageHandle im, boolean bAddUnconditionally)
bAddUnconditionally - public List getImageVect()
public Name[] getSheetScopedNames()
public ImageHandle[] getImages()
public void addColinfo(Colinfo c)
addColinfo in interface Sheetpublic Dval insertDvalRec()
public Dv createDv(String location)
location - public Condfmt createCondfmt(String location, WorkBookHandle wbh)
location - public Cf createCf(Condfmt cfx)
Conditional - formatrange - public ImageHandle getImageByMsoIndex(int index)
index - public int getIndexOfMsodrawingselection()
public int getIndexOfWindow2()
public int getIndexOfDimensions()
public int getIndexOf(short opc)
public BiffRec getSheetRec(short opc)
opc - public void insertSheetRecordAt(BiffRec r, int index)
public String getSheetHash()
public List assembleSheetRecs()
public void writeAsTabbedText(OutputStream dest) throws IOException
IOExceptionpublic void preStream()
public List getDvRecs()
public List getConditionalFormats()
public void addConditionalFormat(Condfmt cf)
cf - public void setWindow2(Window2 w)
setWindow2 in interface Sheetpublic Window2 getWindow2()
getWindow2 in interface Sheetpublic void setPane(Pane p)
p - public Pane getPane()
public void removePane()
public WorkBook getWorkBook()
getWorkBook in interface BiffRecgetWorkBook in class XLSRecord@Deprecated public void removeCell(String celladdr)
removeCell(int, int) instead.removeCell in interface Sheetpublic void removeCell(int row,
int col)
public void removeCell(BiffRec cell)
removeCell in interface Sheetpublic boolean removeImage(ImageHandle img)
img - public void removeRecFromVec(int idx)
idx - public void removeRows(int first,
int count,
boolean shift)
ReferenceTracker.first - the zero-based index of the first row to be removedcount - the number of rows to be removedshift - whether to shift subsequent rows up to fill the empty spacepublic void removeRecFromVec(BiffRec rec)
removeRecFromVec in interface Sheetpublic void removeMulrk(Rk thisrk)
removeMulrk in interface Sheetpublic void removeRowContents(int rownum)
throws RowNotFoundException
RowNotFoundExceptionpublic void removeCols(int first,
int count,
boolean shift)
WorkSheetHandle.removeCols(int, int).first - this zero-based index of the first column to be removedcount - the number of columns to removeshift - whether to shift subsequent columns leftpublic ArrayList<BiffRec> getCellsByCol(int colNum) throws CellNotFoundException
colNum - CellNotFoundExceptionpublic ArrayList<BiffRec> getCellsByRow(int rowNum) throws CellNotFoundException
colNum - CellNotFoundExceptionpublic Colinfo getColInfo(int col)
getColInfo in interface Sheetpublic void removeAllRecords()
removeAllRecords in interface Sheetpublic void setBOF(Bof b)
public boolean isChartOnlySheet()
isChartOnlySheet in interface Sheetpublic long getLbPlyPos()
getLbPlyPos in interface Sheetpublic void setLbPlyPos(long newpos)
setLbPlyPos in interface Sheetpublic Dimensions getDimensions()
getDimensions in interface Sheetpublic void setDimensions(Dimensions d)
setDimensions in interface Sheetpublic int getMaxRow()
public void updateDimensions(int row,
int c)
updateDimensions in interface Sheetpublic void setSheetIDX(Index idx)
setSheetIDX in interface Sheetpublic Index getSheetIDX()
public int getSheetNum()
getSheetNum in interface Sheetpublic Row insertRow(int rownum, int firstcol, int flag, boolean shiftrows)
rownum - the zero-based index of the row to be createdpublic void updateMergedCells()
updateMergedCells in interface Sheetpublic void addRowRec(Row r)
public boolean getHidden()
public boolean getVeryHidden()
public void setHidden(int gr)
public boolean selected()
public void setSelected(boolean b)
setSelected in interface Sheetpublic void addArrayFormula(Array a)
public Array getArrayFormula(String addr)
public void addParentArrayRef(String addr, String ref)
public Object getArrayFormulaParent(int[] rc)
rc - row col of cell in questionaddArrayFormulapublic boolean isArrayFormulaParent(String addr)
addr - public String getArrayRef(String formAddress)
formAddress - public void insertCols(int first,
int count)
first - zero-based int for the column (0='A')public int getNumRows()
getNumRows in interface Sheetpublic int getNumCells()
getNumCells in interface Sheetpublic List getColNames()
getColNames in interface Sheetpublic int getNumCols()
getNumCols in interface Sheetpublic Colinfo createColinfo(int first, int last, int width, int ixfe, int grbit)
first - The beginning column number (0 based)last - The end column numberwidth - Initial width of the columnixfe - formattinggrbit - ??public Colinfo createColinfo(int first, int last, Colinfo template)
first - first col in the colinfolast - last col in the colinfotemplate - template columnpublic Colinfo createColinfo(int first, int last)
public Row getRowByNumber(int r)
getRowByNumber in interface Sheetpublic List getRowNums()
getRowNums in interface Sheetpublic SortedMap getSortedRows()
public Map getRowMap()
public BiffRec addValue(Object obj, String address)
Sheetpublic BiffRec addValue(Object obj, String address, boolean fixNumberAsString)
obj - the value of the new Celladdress - the address of the new Cellpublic BiffRec addValue(Object obj, int[] rc, boolean fixNumberAsString)
obj - rc - public BiffRec addValue(Object obj, int[] rc, int FORMAT_ID)
obj - rc - FORMAT_ID - public BiffRec addValue(Object obj, int[] rc, int FORMAT_ID, boolean fixNumberAsString)
obj - rc - FORMAT_ID - fixNumberAsString - - whether to attempt to convert to a number if it is a NSaS situationpublic void addRecord(BiffRec rec, int[] rc)
public void addCell(CellRec cell)
public void setCopyPriorCellFormats(boolean f)
setCopyPriorCellFormats in interface Sheetpublic int getRealMaxCol()
public Colinfo addColinfo(int begCol, int endCol, int width, int ixfe, int grbit)
begCol - The beginning column number (0 based)endCol - The end column numberwidth - Initial width of the columnixfe - formattinggrbit - ??public Colinfo getColinfo(String c)
getColinfo in interface Sheetpublic Collection<Colinfo> getColinfos()
getColinfos in interface Sheetpublic void moveCell(String startaddr, String endaddr)
public void updateCellReferences(BiffRec c, String endaddr)
@Deprecated public BiffRec getCell(String address)
getCell(int, int) instead.public BiffRec getCell(int row, int col) throws CellNotFoundException
getCell in interface Sheetrow - the zero-based index of the cell's parent rowcol - the zero-based index of the cell's parent columnCellNotFoundException - if no cell exists at the given addresspublic BiffRec[] getCells()
public void addMergedCellsRec(Mergedcells r)
addMergedCellsRec in interface Sheetprotected Name getPrintAreaNameRec(byte type)
protected Name getPrintAreaNameRec()
public String getPrintArea()
public String getPrintTitles()
public void setPrintArea(String range)
public void setPrintTitles(String range)
public void setPrintArea(String printarea, byte type)
public ArrayList getNotes()
public Mergedcells getMergedCellsRec()
getMergedCellsRec in interface Sheetpublic List getMergedCellsRecs()
getMergedCellsRecs in interface Sheetpublic Mergedcells addMergedCellRec()
public List getMergedCells()
public boolean hasMergedCells()
public String getSheetName()
getSheetName in interface Sheetpublic String toString()
public void init()
public void setSheetName(String newname)
setSheetName in interface Sheetpublic byte[] getSheetBytes()
throws IOException
getSheetBytes in interface SheetIOExceptionpublic void setLocalRecs()
setLocalRecs in interface Sheetpublic List getCharts()
public short getSheetType()
getSheetType in interface Sheetpublic String getSheetTypeString()
getSheetTypeString in interface Sheetpublic void addChart(Chart c)
c - WorkBook.addRecordpublic Chart addChart(byte[] inbytes, short[] coords)
inbytes - public void populateForTransfer()
protected List getTransferXfs()
protected List getTransferFonts()
public List getLocalRecs()
getLocalRecs in interface Sheetpublic void setLocalRecs(FastAddVector l)
localrecs - The localrecs to set.public void setSheetRecs(AbstractList shtRecs)
public byte getGrbitChr()
getGrbitChr in interface Sheetpublic void setGrbitChr(byte gb)
setGrbitChr in interface SheetgrbitChr - The grbitChr to set.public Selection getLastselection()
public void setLastselection(Selection lastselection)
lastselection - The lastselection to set.public void setFastCellAdds(boolean fastCellAdds)
fastCellAdds - The fastCellAdds to set.public Scl getScl()
public void setScl(Scl s)
scl - public void setShiftRule(boolean bShiftInclusive)
public boolean isShiftInclusive()
public PrinterSettingsHandle getPrinterSetupHandle()
public List getPrintRecs()
public void addPrintRec(BiffRec record)
public List getAutoFilters()
public Note createNote(String address, String txt, String author)
address - - String cell addresstxt - - Text of Noteauthor - - String Author of Notepublic int insertDropDownBox(int colNum)
public Note createNote(String address, Unicodestring txt, String author)
address - - String cell addresstxt - - Unicode string reprentation of the note, including formattingauthor - - String Author of Notepublic void removeNote(Note n)
n - public AutoFilter addAutoFilter(int column)
int - column - 0-based column numberpublic void removeAutoFilter()
public Sxview addPivotTable(String ref, WorkBookHandle wbh, int sId, String tablename)
ref - Cell Range which identifies pivot table data rangewbh - WorkBookHandlesId - Stream or cachid Id -- links back to SxStream set of recordspublic void evaluateAutoFilters()
public List getOOXMLObjects()
public void addOOXMLObject(Object o)
o - public boolean hasThickBottom()
public boolean hasThickTop()
public boolean hasZeroHeight()
public boolean hasCustomHeight()
public double getDefaultRowHeight()
public float getDefaultColumnWidth()
public void setThickBottom(boolean b)
public void setThickTop(boolean b)
public void setZeroHeight(boolean b)
public void setHasCustomHeight(boolean b)
public void setDefaultRowHeight(double h)
public void setDefaultColumnWidth(float w)
public void addOOXMLShape(TwoCellAnchor tca)
tca - public void addOOXMLShape(OneCellAnchor oca)
tca - public void addOOXMLShape(Object vml)
vml - public HashMap getOOXMLShapes()
public SheetView getSheetView()
public void setSheetView(SheetView s)
s - public SheetPr getSheetPr()
public void setSheetPr(SheetPr s)
s - public AutoFilter getOOAutoFilter()
public void setOOAutoFilter(AutoFilter a)
strref - public Name getScopedName(String nameRef)
t - public void addLocalName(Name name)
sheetNameRecs - public void removeLocalName(Name name)
sheetNameRecs - public Name getName(String name)
public Name[] getAllNames()
public void addMarginRecord(BiffRec r)
r - printer setting record (Margins, PLS)protected static void addExternalInfo(Map<String,String> externalobjs, org.xmlpull.v1.XmlPullParser xpp)
externalobjs - xpp - protected void parseSheetElements(WorkBookHandle bk, ZipFile zip, ArrayList cl, String parentDir, String externalDir, ArrayList formulas, ArrayList hyperlinks, HashMap inlineStrs, HashMap<String,WorkSheetHandle> pivotTables) throws org.xmlpull.v1.XmlPullParserException, CellNotFoundException
bk - WorkBookHandlesheet - WorkSheetHandle (set if recursing)zip - currently open ZipOutputStreamcl - ArrayList of Contents (type, filename, rId) to parseparentDir - Parent Directory for relative paths in content listsformulas, - hyperlinks, inlineStrs -- ArrayLists/Hashmaps stores sheet-specific info for later entryCellNotFoundExceptionorg.xmlpull.v1.XmlPullParserExceptionpublic void close()
public DefColWidth getDefColWidth()
public void setDefColWidth(DefColWidth defColWidth)
Copyright © 2002–2019 Starter Inc.. All rights reserved.