public final class Name extends XLSRecord
offset name size contents
---
4 grbit 2 option flags
6 chKey 1 Keyboard Shortcut
7 cch 1 length of name text
8 cce 2 length of name definition *stored in Excel parsed format
10 ixals 2 index to sheet containing name
12 itab 2 NAME SCOPE -- 0= workbook, 1+= sheet
14 cchCustMenu 1 length of custom menu text
15 cchDescript 1 length of description text
16 cchHelpTopic 1 length of help topic text
17 cchStatusText 1 length of status bar text
18 rgch var name text
var rgce var name definition
var rcchCustMenu var cust menu text
var rgchDescr var description text
var rgchHelpTopic var help text
var rgchStatusText var status bar text
| Modifier and Type | Field and Description |
|---|---|
protected static byte |
_FILTER_DATABASE |
protected static byte |
AUTO_ACTIVATE |
protected static byte |
AUTO_CLOSE |
protected static byte |
AUTO_DEACTIVATE |
protected static byte |
AUTO_OPEN |
byte |
builtInType |
protected static byte |
CONSOLIDATE_AREA |
protected static byte |
CRITERIA |
protected static byte |
DATA_FORM |
protected static byte |
DATABASE |
protected static byte |
EXTRACT |
protected static byte |
PRINT_AREA |
protected static byte |
PRINT_TITLES |
protected static byte |
RECORDER |
protected static byte |
SHEET_TITLE |
col, continues, DEBUGLEVEL, hyperlink, idx, isBlank, isBoolean, isContinueMerged, isString, lastidx, myxf, offset, rw, streamer, wkbook, worksheetAI, 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, CHART, 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 |
|---|
Name() |
Name(WorkBook bk,
boolean b)
Used for default name entry in formulas.
|
Name(WorkBook bk,
String namestr) |
Name(WorkBook bk,
String namestr,
String value,
int scope)
sets a namestring to a constant (non-reference) value
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIlblListener(IlblListener ptgname)
Store ptgName references to this Name record
so they can be accessed
|
void |
close()
clear out object references in prep for closing workbook
|
protected void |
finalize() |
Boundsheet[] |
getBoundSheets() |
byte |
getBuiltInType() |
String |
getCachedOOXMLExpression() |
Object |
getCalculatedValue()
return the calculated value of this Name
if it contains a parsed Expression (Formula)
|
String |
getCellAddress()
get a string address for the
cell based on row and col ie: "H22"
|
Ptg[] |
getCellRangePtgs()
Returns an array of ptgs that represent any BiffRec ranges in the formula.
|
Stack |
getExpression()
Get the expression for this Name record
|
String |
getExpressionString()
Return the expression string for this name record.
|
Externsheet |
getExternsheet() |
ArrayList |
getIlblListeners() |
short |
getItab()
Return the named range scope (0= workbook, 1 or more= sheet)
|
short |
getIxals() |
String |
getLocation()
Return the location of the Name record.
|
String |
getName()
get the display name
|
String |
getNameA()
return the case-insensitive version of the display name
|
Ptg |
getPtga() |
List |
getPtgsByLocation(String loc)
Returns the ptg that matches the string location sent to it.
|
void |
init()
Initialize the Name record
|
void |
init(boolean initExpression)
init Name record
|
void |
initializeExpression(String xpression)
Essentially a wrapped setLocation call that is handled for initialization of names
from OOXML files.
|
boolean |
isBuiltIn() |
boolean |
isStringReference()
Is this a string referencing Name?
|
void |
parseExpression()
parse Expression separately from init
|
void |
preStream()
do any pre-streaming processing such as expensive
index updates or other deferrable processing.
|
boolean |
remove(boolean b)
Removes this BiffRec from the WorkSheet
|
void |
removeIlblListener(IlblListener ptgname) |
void |
setBuiltIn(byte builtinType)
Set this name record as a built in type.
|
void |
setCachedOOXMLExpression(String cachedOOXMLExpression) |
void |
setExpression(Stack x)
set the expression for this Name record
|
void |
setExternsheetRef(int x)
set the Externsheet reference
for any associated PtgArea3d's
|
void |
setItab(short itab) |
void |
setIxals(short ixals) |
void |
setLocation(String newloc) |
void |
setLocation(String newloc,
boolean clearAffectedCells)
Set the location for the first ptg in the expression
|
boolean |
setLocationPolicy(String loc,
int l)
locks the Ptg at the specified location
|
void |
setName(String newname)
set the display name
Affects the following byte values:
7 cch 1 length of name text
18 rgch var name text
|
void |
setNewScope(int newitab)
Set the scope (itab) of this name
|
void |
setWorkBook(WorkBook b) |
String |
toString()
Return the name which identifies this Name record.
|
void |
updateIlblListeners() |
void |
updatePtgs()
Update the record byte array with the modified ptg records
|
void |
updateSheetReferences(Boundsheet newSheet)
Set all ptg3ds to the new sheet
Used when copying worksheets .. |
void |
updateSheetRefs(String origWorkBookName)
update Ptga ixti for moved/copied worksheets
|
addContinue, clone, copyFormat, getBooleanVal, getByteAt, getByteReader, getBytes, getBytesAt, 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, getWorkBook, getXfRec, hasContinues, initRowCol, isFormula, isNumber, isReadOnly, isValueForCell, mergeContinues, postStream, 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, setXFRecord, setXFRecord, shouldEncrypt, toHexDumppublic byte builtInType
protected static final byte CONSOLIDATE_AREA
protected static final byte AUTO_OPEN
protected static final byte AUTO_CLOSE
protected static final byte EXTRACT
protected static final byte DATABASE
protected static final byte CRITERIA
protected static final byte PRINT_AREA
protected static final byte PRINT_TITLES
protected static final byte RECORDER
protected static final byte DATA_FORM
protected static final byte AUTO_ACTIVATE
protected static final byte AUTO_DEACTIVATE
protected static final byte SHEET_TITLE
protected static final byte _FILTER_DATABASE
public Name()
public Name(WorkBook bk, boolean b)
bk - Workbook containing nameb - Use whatever, just a flag to use this different constructorpublic void addIlblListener(IlblListener ptgname)
public void removeIlblListener(IlblListener ptgname)
public ArrayList getIlblListeners()
public void updateIlblListeners()
public void init()
init in interface BiffRecinit in class XLSRecordXLSRecord.init()public void init(boolean initExpression)
initExpression - true if should parse formula/ref expression (will be false on wb load)public void parseExpression()
public Boundsheet[] getBoundSheets()
public String toString()
toString in class XLSRecordXLSRecord.toString()public String getExpressionString()
public Stack getExpression()
public void setExpression(Stack x)
public String getLocation() throws Exception
Exceptionpublic boolean isStringReference()
public void initializeExpression(String xpression)
xpression - public void setLocation(String newloc)
public void setLocation(String newloc, boolean clearAffectedCells) throws FunctionNotSupportedException
newloc - clearAffectedCells - true if should clear ptga formula cached valsFunctionNotSupportedException - TODOpublic boolean remove(boolean b)
XLSRecordpublic void setWorkBook(WorkBook b)
setWorkBook in interface BiffRecsetWorkBook in class XLSRecordpublic void setExternsheetRef(int x)
public void updateSheetRefs(String origWorkBookName)
public void setName(String newname)
public String getName()
public String getNameA()
public Object getCalculatedValue() throws FunctionNotSupportedException
FunctionNotSupportedExceptionpublic void preStream()
public void updatePtgs()
public String getCellAddress()
XLSRecordgetCellAddress in interface BiffRecgetCellAddress in class XLSRecordpublic Ptg[] getCellRangePtgs() throws FormulaNotFoundException
FormulaNotFoundExceptionpublic List getPtgsByLocation(String loc)
public void updateSheetReferences(Boundsheet newSheet)
newSheet - public boolean setLocationPolicy(String loc, int l)
public Externsheet getExternsheet()
public Ptg getPtga()
public boolean isBuiltIn()
public byte getBuiltInType()
public void setBuiltIn(byte builtinType)
builtinType - public short getIxals()
public void setIxals(short ixals)
public short getItab()
public void setItab(short itab)
public String getCachedOOXMLExpression()
public void setCachedOOXMLExpression(String cachedOOXMLExpression)
cachedOOXMLExpression - The cachedOOXMLExpression to set.public void setNewScope(int newitab)
throws WorkSheetNotFoundException
newitab - WorkSheetNotFoundExceptionpublic void close()
Copyright © 2002–2019 Starter Inc.. All rights reserved.