Documentation
¶
Index ¶
- Constants
- Variables
- func AdjustCellAddrBiff8(rowval, colval uint16, reldelta bool) (int, int, bool, bool)
- func AdjustCellAddrBiffLE7(rowval uint16, colval byte, reldelta bool) (int, int, bool, bool)
- func AdjustCellAddrBiffLe7(rowval uint16, colval byte, reldelta bool) (int, int, bool, bool)
- func BIFFCountRecords(stream []byte, writer io.Writer) error
- func BIFFDump(stream []byte, writer io.Writer, unnumbered bool) error
- func BiffRecordName(code uint16) string
- func CellNameToRowCol(cellName string, allowNoCol bool) (int, int, error)
- func Cellname(rowx, colx int) string
- func CellnameAbs(rowx, colx int, r1c1 bool) string
- func Cellnamerel(rowx, colx int, rowRel, colRel bool, baseRow, baseCol *int, r1c1 bool) string
- func Colname(colx int) string
- func Colnamerel(colx int, colRel bool, baseCol *int, r1c1 bool) string
- func CountRecords(filename string, writer io.Writer) error
- func DecompileFormula(book *Book, formula []byte, opts FormulaOptions) (string, error)
- func DisplayCellAddress(rowx, colx int, rowRel, colRel bool) string
- func Dump(filename string, writer io.Writer, unnumbered bool) error
- func DumpFormula(book *Book, formula []byte, opts FormulaOptions) (string, error)
- func ExpandCellAddress(rowx, colx int) (int, int)
- func HexCharDump(data []byte, offset, length int, writer io.Writer, unnumbered bool) error
- func IsCellOpcode(opcode uint16) bool
- func IsDateFormatString(format string) bool
- func NearestColourIndex(colourMap map[int]*RGB, rgb RGB) int
- func Quotedsheetname(sheetNames []string, sheetIndex int) string
- func Rangename2D(rlo, rhi, clo, chi int, r1c1 bool) string
- func Rangename2DRel(coords [4]int, relFlags [4]bool, baseRow, baseCol *int, r1c1 bool) string
- func Rangename3D(book *Book, ref Ref3D) string
- func Rangename3DRel(book *Book, ref Ref3D, rowRel1, rowRel2, colRel1, colRel2 bool) string
- func Rownamerel(rowx int, rowRel bool, baseRow *int, r1c1 bool) string
- func Sheetrange(book *Book, slo, shi int) string
- func Sheetrangerel(book *Book, sheetRange [2]int, sheetRangeRel [2]bool) string
- func UnpackRk(data []byte) float64
- func UnpackString(data []byte, pos int, encoding string, lenLen int) (string, error)
- func UnpackStringUpdatePos(data []byte, pos int, encoding string, lenLen int, knownLen *int) (string, int, error)
- func UnpackUnicode(data []byte, pos int, lenLen int) (string, error)
- func UnpackUnicodeUpdatePos(data []byte, pos int, lenLen int, knownLen *int) (string, int, error)
- func XLDateAsDateTime(value float64, datemode int) time.Time
- func XLDateAsTuple(value float64, datemode int) ([6]int, error)
- func XLDateFromDateTimeTuple(dt [6]int, datemode int) (float64, error)
- func XLDateFromDateTuple(date [3]int, datemode int) (float64, error)
- func XLDateFromTimeTuple(t [3]int) (float64, error)
- func XLDateToTime(value float64, datemode int) time.Time
- type Book
- func OpenWorkbook(filename string) (*Book, error)
- func OpenWorkbookBytes(data []byte) (*Book, error)
- func OpenWorkbookBytesWithOptions(data []byte, options OpenOptions) (*Book, error)
- func OpenWorkbookWithOptions(filename string, options OpenOptions) (*Book, error)
- func OpenWorkbookXLS(filename string, options OpenOptions) (*Book, error)
- func OpenWorkbookXls(filename string, options OpenOptions) (*Book, error)
- func (b *Book) AddinFunctions() []string
- func (b *Book) AllNameKeys() []NameKey
- func (b *Book) AllSheets() []*Sheet
- func (b *Book) BiffVersionText() string
- func (b *Book) Close() error
- func (b *Book) Enter() *Book
- func (b *Book) Exit() error
- func (b *Book) FindName(name string) (*Name, bool)
- func (b *Book) FirstSheet() *Sheet
- func (b *Book) FontCount() int
- func (b *Book) Fonts() []Font
- func (b *Book) FormatCount() int
- func (b *Book) Formats() []*Format
- func (b *Book) FormattingInfo() bool
- func (b *Book) GetSheet(sheetNameOrIndex any) (*Sheet, error)
- func (b *Book) GetSheets() []*Sheet
- func (b *Book) GlobalNames() []*Name
- func (b *Book) HasGlobalName(name string) bool
- func (b *Book) HasMacroName(name string) bool
- func (b *Book) HasName(name string) bool
- func (b *Book) HasSheet(name string) bool
- func (b *Book) HasSheets() bool
- func (b *Book) HiddenSheets() []*Sheet
- func (b *Book) IgnoreWorkbookCorruption() bool
- func (b *Book) IsEmpty() bool
- func (b *Book) Item(item any) (*Sheet, error)
- func (b *Book) IterNames() <-chan *Name
- func (b *Book) IterSheets() <-chan *Sheet
- func (b *Book) LastSheet() *Sheet
- func (b *Book) LoadTimeStage1() float64
- func (b *Book) LoadTimeStage2() float64
- func (b *Book) MacroNames() []*Name
- func (b *Book) NSheets() int
- func (b *Book) Name(name string) []*Name
- func (b *Book) NameAndScopeMapView() map[NameKey]*Name
- func (b *Book) NameDetails(name string) []*Name
- func (b *Book) NameDetailsInScope(name string, scope any) (*Name, int, bool, error)
- func (b *Book) NameInScope(name string, scope int) (*Name, bool)
- func (b *Book) NameMapView() map[string][]*Name
- func (b *Book) NameObjListView() []*Name
- func (b *Book) NameVisible(name string, scope int) (*Name, bool)
- func (b *Book) NameVisibleInScope(name string, scope any) (*Name, int, bool, error)
- func (b *Book) Names() []*Name
- func (b *Book) NamesInScope(scope int) []*Name
- func (b *Book) NumNames() int
- func (b *Book) OnDemand() bool
- func (b *Book) PropsView() map[string]string
- func (b *Book) QueryNamesInScope(scope any) ([]*Name, error)
- func (b *Book) RaggedRows() bool
- func (b *Book) ReleaseResources()
- func (b *Book) ResolveScope(scope any) (int, error)
- func (b *Book) ResourcesReleased() bool
- func (b *Book) ScopeAsString(scope int) string
- func (b *Book) SheetByIndex(index int) (*Sheet, error)
- func (b *Book) SheetByName(name string) (*Sheet, error)
- func (b *Book) SheetIndexByName(name string) (int, error)
- func (b *Book) SheetLoaded(sheetNameOrIndex any) bool
- func (b *Book) SheetNames() []string
- func (b *Book) SheetNumbers() []int
- func (b *Book) SheetOrNil(sheetNameOrIndex any) *Sheet
- func (b *Book) Sheets() []*Sheet
- func (b *Book) SheetsList() []*Sheet
- func (b *Book) SheetsView() []*Sheet
- func (b *Book) String() string
- func (b *Book) UnloadSheet(sheetNameOrIndex any) error
- func (b *Book) UnloadSheets() error
- func (b *Book) UseMmap() bool
- func (b *Book) VeryHiddenSheets() []*Sheet
- func (b *Book) VisibleNamesInScope(scope any) ([]*Name, error)
- func (b *Book) VisibleSheets() []*Sheet
- func (b *Book) XFCount() int
- func (b *Book) XFs() []*XF
- type Cell
- func (c Cell) BoolValue() (bool, bool)
- func (c Cell) ErrorText() string
- func (c Cell) FloatValue() (float64, bool)
- func (c Cell) IntValue() (int, bool)
- func (c Cell) IsBlank() bool
- func (c Cell) IsBoolean() bool
- func (c Cell) IsDate() bool
- func (c Cell) IsEmpty() bool
- func (c Cell) IsError() bool
- func (c Cell) IsNumber() bool
- func (c Cell) IsText() bool
- func (c Cell) String() string
- func (c Cell) TextValue() (string, bool)
- func (c Cell) TypeString() string
- type Colinfo
- type CompDoc
- type CompDocError
- type DirNode
- type Font
- type Format
- type FormulaOptions
- type Hyperlink
- func (h Hyperlink) ContainsCell(row, col int) bool
- func (h Hyperlink) Coords() [4]int
- func (h Hyperlink) Description() string
- func (h Hyperlink) FirstCol() int
- func (h Hyperlink) FirstRow() int
- func (h Hyperlink) HasDescription() bool
- func (h Hyperlink) HasQuickTip() bool
- func (h Hyperlink) HasTarget() bool
- func (h Hyperlink) HasTextMark() bool
- func (h Hyperlink) HasURL() bool
- func (h Hyperlink) LastColInclusive() int
- func (h Hyperlink) LastRowInclusive() int
- func (h Hyperlink) QuickTipValue() string
- func (h Hyperlink) TextMarkValue() string
- func (h Hyperlink) URLOrPath() string
- type MSODrawing
- type MSObj
- type MSTxo
- type MergeRange
- type Name
- func (n *Name) Area2D(clipped bool) (*Sheet, int, int, int, int, error)
- func (n *Name) Area2d(clipped bool) (*Sheet, int, int, int, int, error)
- func (n *Name) BuiltinCode() int
- func (n *Name) Cell() (Cell, error)
- func (n *Name) Evaluate() (*Operand, error)
- func (n *Name) FormulaBytes() []byte
- func (n *Name) FormulaLen() int
- func (n *Name) FunctionGroup() int
- func (n *Name) HasFormulaText() bool
- func (n *Name) HasRawFormula() bool
- func (n *Name) HasResult() bool
- func (n *Name) HasSingleRef() bool
- func (n *Name) IsBinary() bool
- func (n *Name) IsBuiltin() bool
- func (n *Name) IsComplex() bool
- func (n *Name) IsFunction() bool
- func (n *Name) IsGlobal() bool
- func (n *Name) IsHidden() bool
- func (n *Name) IsInvalidScope() bool
- func (n *Name) IsMacro() bool
- func (n *Name) IsMacroScope() bool
- func (n *Name) IsReferenceResult() bool
- func (n *Name) IsRelativeResult() bool
- func (n *Name) IsVBasic() bool
- func (n *Name) PublicResult() *Operand
- func (n *Name) References() []Ref3D
- func (n *Name) ResultKindString() string
- func (n *Name) ResultOperand() *Operand
- func (n *Name) ResultText() string
- func (n *Name) ResultValue() any
- func (n *Name) ScopeSheet() *Sheet
- func (n *Name) ScopeString() string
- func (n *Name) SingleRef() (*Ref3D, bool)
- func (n *Name) String() string
- func (n *Name) VisibleInScope(scope int) bool
- type NameKey
- type NameResult
- type Note
- type OpenOptions
- type Operand
- func (o Operand) BoolValue() (bool, bool)
- func (o Operand) ErrorText() string
- func (o Operand) FloatValue() (float64, bool)
- func (o Operand) HasText() bool
- func (o Operand) HasValue() bool
- func (o Operand) IsBoolean() bool
- func (o Operand) IsError() bool
- func (o Operand) IsMissing() bool
- func (o Operand) IsNumber() bool
- func (o Operand) IsReference() bool
- func (o Operand) IsRelative() bool
- func (o Operand) IsScalar() bool
- func (o Operand) IsString() bool
- func (o Operand) KindString() string
- func (o Operand) References() []Ref3D
- func (o Operand) String() string
- func (o Operand) StringValue() (string, bool)
- type RGB
- type Ref3D
- func (r Ref3D) ColCount() int
- func (r Ref3D) ColRange() (int, int)
- func (r Ref3D) ContainsCell(sheet, row, col int) bool
- func (r Ref3D) ContainsSheet(sheet int) bool
- func (r Ref3D) Coords() [6]int
- func (r Ref3D) HasNegativeCoords() bool
- func (r Ref3D) IsSingleCell() bool
- func (r Ref3D) IsSingleSheet() bool
- func (r Ref3D) RowCount() int
- func (r Ref3D) RowRange() (int, int)
- func (r Ref3D) SheetCount() int
- func (r Ref3D) SheetRange() (int, int)
- func (r Ref3D) String() string
- type Rowinfo
- type Sheet
- func (s *Sheet) Book() *Book
- func (s *Sheet) Cell(row, col int) (Cell, error)
- func (s *Sheet) CellType(row, col int) (int, error)
- func (s *Sheet) CellValue(row, col int) (any, error)
- func (s *Sheet) CellXFIndex(row, col int) (int, error)
- func (s *Sheet) CellXfIndex(row, col int) (int, error)
- func (s *Sheet) Col(col int) ([]Cell, error)
- func (s *Sheet) ColLabelRangeCount() int
- func (s *Sheet) ColLabelRangesView() []MergeRange
- func (s *Sheet) ColSlice(col int, bounds ...int) ([]Cell, error)
- func (s *Sheet) ColTypes(col int, bounds ...int) ([]int, error)
- func (s *Sheet) ColValues(col int, bounds ...int) ([]any, error)
- func (s *Sheet) ComputedColumnWidth(col int) (int, error)
- func (s *Sheet) Dimensions() (int, int)
- func (s *Sheet) FirstVisible() (int, int)
- func (s *Sheet) FormattingInfo() bool
- func (s *Sheet) GetRows() <-chan []Cell
- func (s *Sheet) GetUsedCells() ([]Cell, error)
- func (s *Sheet) GridlineColour() int
- func (s *Sheet) HasCell(row, col int) bool
- func (s *Sheet) HasCol(col int) bool
- func (s *Sheet) HasHyperlink(row, col int) bool
- func (s *Sheet) HasHyperlinks() bool
- func (s *Sheet) HasMergedCells() bool
- func (s *Sheet) HasNote(row, col int) bool
- func (s *Sheet) HasNotes() bool
- func (s *Sheet) HasPageBreaks() bool
- func (s *Sheet) HasRow(row int) bool
- func (s *Sheet) HasSCL() bool
- func (s *Sheet) HasTarget() bool
- func (s *Sheet) HorizontalBreaks() [][3]int
- func (s *Sheet) Hyperlink(row, col int) (Hyperlink, bool)
- func (s *Sheet) HyperlinkCount() int
- func (s *Sheet) HyperlinkMapView() map[[2]int]Hyperlink
- func (s *Sheet) Hyperlinks() []Hyperlink
- func (s *Sheet) Index() int
- func (s *Sheet) IsActive() bool
- func (s *Sheet) IsCellUsed(row, col int) bool
- func (s *Sheet) IsEmpty() bool
- func (s *Sheet) IsHidden() bool
- func (s *Sheet) IsSelected() bool
- func (s *Sheet) IsVeryHidden() bool
- func (s *Sheet) IsVisible() bool
- func (s *Sheet) Item(item any) (any, error)
- func (s *Sheet) IterRows() <-chan []Cell
- func (s *Sheet) MergedCellCount() int
- func (s *Sheet) MergedRanges() []MergeRange
- func (s *Sheet) Note(row, col int) (Note, bool)
- func (s *Sheet) NoteCount() int
- func (s *Sheet) NoteMapView() map[[2]int]Note
- func (s *Sheet) Notes() []Note
- func (s *Sheet) PutCell(row, col int, ctype int, value any, xfIndex int)
- func (s *Sheet) PutCellWithFormula(row, col int, ctype int, value any, xfIndex int, formula string)
- func (s *Sheet) RaggedRows() bool
- func (s *Sheet) ReqFmtInfo() error
- func (s *Sheet) RichTextMapView() map[[2]int][][2]int
- func (s *Sheet) Row(row int) ([]Cell, error)
- func (s *Sheet) RowLabelRangeCount() int
- func (s *Sheet) RowLabelRangesView() []MergeRange
- func (s *Sheet) RowLen(row int) (int, error)
- func (s *Sheet) RowSlice(row int, bounds ...int) ([]Cell, error)
- func (s *Sheet) RowTypes(row int, bounds ...int) ([]int, error)
- func (s *Sheet) RowValues(row int, bounds ...int) ([]any, error)
- func (s *Sheet) Rows() ([][]Cell, error)
- func (s *Sheet) RowsIter() <-chan []Cell
- func (s *Sheet) SCL() (int, bool)
- func (s *Sheet) String() string
- func (s *Sheet) Target() string
- func (s *Sheet) TidyDimensions()
- func (s *Sheet) UpdateCookedMagFactors()
- func (s *Sheet) UsedCellCoords() [][2]int
- func (s *Sheet) UsedCells() ([]Cell, error)
- func (s *Sheet) VerticalBreaks() [][3]int
- func (s *Sheet) Visibility() int
- func (s *Sheet) VisibilityString() string
- func (s *Sheet) ZoomFactors() (cachedPreview, cachedNormal int, cookedPreview, cookedNormal int)
- type StyleRef
- type XF
- type XFAlignment
- type XFBackground
- type XFBorder
- type XFProtection
- type XLDateError
- type XLRDError
Constants ¶
View Source
const ( FormatTypeUnknown = iota FormatTypeDate FormatTypeNumber FormatTypeGeneral FormatTypeText )
View Source
const ( FUN = FormatTypeUnknown FDT = FormatTypeDate FNU = FormatTypeNumber FGE = FormatTypeGeneral FTX = FormatTypeText )
View Source
const ( FMLATypeCell = 1 FMLATypeArray = 4 FMLATypeCondFmt = 8 FMLATypeDataVal = 16 FMLATypeName = 32 AllFMLATypes = 63 )
View Source
const ( FMLA_TYPE_CELL = FMLATypeCell FMLA_TYPE_SHARED = FMLATypeShared FMLA_TYPE_ARRAY = FMLATypeArray FMLA_TYPE_COND_FMT = FMLATypeCondFmt FMLA_TYPE_DATA_VAL = FMLATypeDataVal FMLA_TYPE_NAME = FMLATypeName ALL_FMLA_TYPES = AllFMLATypes )
View Source
const ( OUNK = 0 OSTRG = 1 ONUM = 2 OBOOL = 3 OERR = 4 OMSNG = 5 OARR = 6 OREF = -1 OREL = -2 )
View Source
const ( XLCellEmpty = iota XLCellText XLCellNumber XLCellDate XLCellBoolean XLCellError XLCellBlank )
View Source
const ( XL_CELL_EMPTY = XLCellEmpty XL_CELL_TEXT = XLCellText XL_CELL_NUMBER = XLCellNumber XL_CELL_DATE = XLCellDate XL_CELL_BOOLEAN = XLCellBoolean XL_CELL_ERROR = XLCellError XL_CELL_BLANK = XLCellBlank )
View Source
const BIFFFirstUnicode = 80
View Source
const DATEFORMAT = FDT
View Source
const NUMBERFORMAT = FNU
View Source
const Version = "1.3.4"
View Source
const VersionString = Version
Variables ¶
View Source
var BiffTextFromNum = map[int]string{
0: "(not BIFF)",
20: "2.0",
21: "2.1",
30: "3",
40: "4S",
45: "4W",
50: "5",
70: "7",
80: "8",
85: "8X",
}
View Source
var EmptyCell = Cell{Ctype: XLCellEmpty, Value: "", XFIndex: -1}
View Source
var ErrUnsupportedXLS = errors.New("legacy .xls BIFF workbooks are not supported by the Go implementation yet")
View Source
var ErrorTextFromCode = map[int]string{
0x00: "#NULL!",
0x07: "#DIV/0!",
0x0f: "#VALUE!",
0x17: "#REF!",
0x1d: "#NAME?",
0x24: "#NUM!",
0x2a: "#N/A",
}
View Source
var FMLATypedescrMap = map[int]string{ FMLATypeCell: "CELL", FMLATypeShared: "SHARED", FMLATypeArray: "ARRAY", FMLATypeCondFmt: "COND-FMT", FMLATypeDataVal: "DATA-VAL", FMLATypeName: "NAME", }
Functions ¶
func AdjustCellAddrBiff8 ¶
func AdjustCellAddrBiffLE7 ¶
func AdjustCellAddrBiffLe7 ¶
func BiffRecordName ¶
func CellnameAbs ¶
func Cellnamerel ¶
func DecompileFormula ¶
func DecompileFormula(book *Book, formula []byte, opts FormulaOptions) (string, error)
func DisplayCellAddress ¶
func DumpFormula ¶
func DumpFormula(book *Book, formula []byte, opts FormulaOptions) (string, error)
func ExpandCellAddress ¶
func HexCharDump ¶
func IsCellOpcode ¶
func IsDateFormatString ¶
func Quotedsheetname ¶
func Rangename2D ¶
func Rangename2DRel ¶
func Rangename3D ¶
func Rangename3DRel ¶
func Sheetrange ¶
func Sheetrangerel ¶
func UnpackString ¶
func UnpackStringUpdatePos ¶
func UnpackUnicodeUpdatePos ¶
func XLDateFromDateTimeTuple ¶
func XLDateFromTimeTuple ¶
Types ¶
type Book ¶
type Book struct {
Datemode int
BiffVersion int
CodePage int
Encoding string
Countries [2]int
Props map[string]string
UserName string
AddinFuncNames []string
NameObjList []*Name
NameAndScopeMap map[NameKey]*Name
NameMap map[string][]*Name
FontList []Font
XFList []*XF
FormatList []*Format
FormatMap map[int]*Format
StyleNameMap map[string]StyleRef
ColourMap map[int]*RGB
ColourIndexesUsed map[int]bool
PaletteRecord []RGB
// contains filtered or unexported fields
}
func OpenWorkbook ¶
func OpenWorkbookBytes ¶
func OpenWorkbookBytesWithOptions ¶
func OpenWorkbookBytesWithOptions(data []byte, options OpenOptions) (*Book, error)
func OpenWorkbookWithOptions ¶
func OpenWorkbookWithOptions(filename string, options OpenOptions) (*Book, error)
func OpenWorkbookXLS ¶
func OpenWorkbookXLS(filename string, options OpenOptions) (*Book, error)
func OpenWorkbookXls ¶
func OpenWorkbookXls(filename string, options OpenOptions) (*Book, error)
func (*Book) AddinFunctions ¶
func (*Book) AllNameKeys ¶
func (*Book) BiffVersionText ¶
func (*Book) FirstSheet ¶
func (*Book) FormatCount ¶
func (*Book) FormattingInfo ¶
func (*Book) GlobalNames ¶
func (*Book) HasGlobalName ¶
func (*Book) HasMacroName ¶
func (*Book) HiddenSheets ¶
func (*Book) IgnoreWorkbookCorruption ¶
func (*Book) IterSheets ¶
func (*Book) LoadTimeStage1 ¶
func (*Book) LoadTimeStage2 ¶
func (*Book) MacroNames ¶
func (*Book) NameAndScopeMapView ¶
func (*Book) NameDetails ¶
func (*Book) NameDetailsInScope ¶
func (*Book) NameMapView ¶
func (*Book) NameObjListView ¶
func (*Book) NameVisibleInScope ¶
func (*Book) NamesInScope ¶
func (*Book) RaggedRows ¶
func (*Book) ReleaseResources ¶
func (b *Book) ReleaseResources()
func (*Book) ResourcesReleased ¶
func (*Book) ScopeAsString ¶
func (*Book) SheetLoaded ¶
func (*Book) SheetNames ¶
func (*Book) SheetNumbers ¶
func (*Book) SheetOrNil ¶
func (*Book) SheetsList ¶
func (*Book) SheetsView ¶
func (*Book) UnloadSheet ¶
func (*Book) UnloadSheets ¶
func (*Book) VeryHiddenSheets ¶
func (*Book) VisibleSheets ¶
type CompDocError ¶
type CompDocError string
func (CompDocError) Error ¶
func (e CompDocError) Error() string
type FormulaOptions ¶
type Hyperlink ¶
type Hyperlink struct {
RowLo int
RowHi int
ColLo int
ColHi int
Type string
URL string
Desc string
TextMark string
Target string
QuickTip string
}
func (Hyperlink) ContainsCell ¶
func (Hyperlink) Description ¶
func (Hyperlink) HasDescription ¶
func (Hyperlink) HasQuickTip ¶
func (Hyperlink) HasTextMark ¶
func (Hyperlink) LastColInclusive ¶
func (Hyperlink) LastRowInclusive ¶
func (Hyperlink) QuickTipValue ¶
func (Hyperlink) TextMarkValue ¶
type MSODrawing ¶
type MSODrawing struct{}
type MergeRange ¶
func UnpackCellRangeAddressListUpdatePos ¶
func UnpackCellRangeAddressListUpdatePos(output []MergeRange, data []byte, pos int, biffVersion int, addrSize int) ([]MergeRange, int, error)
func (MergeRange) ContainsCell ¶
func (m MergeRange) ContainsCell(row, col int) bool
func (MergeRange) Coords ¶
func (m MergeRange) Coords() [4]int
func (MergeRange) Height ¶
func (m MergeRange) Height() int
func (MergeRange) Width ¶
func (m MergeRange) Width() int
type Name ¶
type Name struct {
Hidden bool
Func bool
VBasic bool
Macro bool
Complex bool
Builtin bool
FuncGroup int
Binary bool
NameIndex int
Name string
RawFormula []byte
FormulaText string
Scope int
OptionFlags int
ExtSheetNum int
ExcelSheetIndex int
BasicFormulaLen int
Result *NameResult
// contains filtered or unexported fields
}
func (*Name) BuiltinCode ¶
func (*Name) FormulaBytes ¶
func (*Name) FormulaLen ¶
func (*Name) FunctionGroup ¶
func (*Name) HasFormulaText ¶
func (*Name) HasRawFormula ¶
func (*Name) HasSingleRef ¶
func (*Name) IsFunction ¶
func (*Name) IsInvalidScope ¶
func (*Name) IsMacroScope ¶
func (*Name) IsReferenceResult ¶
func (*Name) IsRelativeResult ¶
func (*Name) PublicResult ¶
func (*Name) References ¶
func (*Name) ResultKindString ¶
func (*Name) ResultOperand ¶
func (*Name) ResultText ¶
func (*Name) ResultValue ¶
func (*Name) ScopeSheet ¶
func (*Name) ScopeString ¶
func (*Name) VisibleInScope ¶
type NameResult ¶
type Note ¶
type Note struct {
Author string
Row int
Col int
Text string
RichTextRunlist [][2]int
ObjectID int
Show bool
RowHidden bool
ColHidden bool
}
func (Note) HasRichText ¶
type OpenOptions ¶
type Operand ¶
func EvaluateFormula ¶
func EvaluateFormula(book *Book, formula []byte, opts FormulaOptions) (*Operand, error)
func EvaluateNameFormula ¶
func (Operand) FloatValue ¶
func (Operand) IsReference ¶
func (Operand) IsRelative ¶
func (Operand) KindString ¶
func (Operand) References ¶
func (Operand) StringValue ¶
type Ref3D ¶
type Ref3D = ref3D
func (Ref3D) ContainsCell ¶
func (Ref3D) ContainsSheet ¶
func (Ref3D) HasNegativeCoords ¶
func (Ref3D) IsSingleCell ¶
func (Ref3D) IsSingleSheet ¶
func (Ref3D) SheetCount ¶
func (Ref3D) SheetRange ¶
type Sheet ¶
type Sheet struct {
BiffVersion int
Name string
Number int
BoundsheetType int
NRows int
NCols int
Cells [][]Cell
ColinfoMap map[int]*Colinfo
RowinfoMap map[int]*Rowinfo
MergedCells []MergeRange
ColLabelRanges []MergeRange
RowLabelRanges []MergeRange
RichTextRunlistMap map[[2]int][][2]int
CellNoteMap map[[2]int]Note
HyperlinkList []Hyperlink
HyperlinkMap map[[2]int]Hyperlink
DefColWidth *int
StandardWidth *int
DefaultRowHeight *int
DefaultRowHeightMismatch bool
DefaultRowHidden bool
DefaultAdditionalSpaceAbove bool
DefaultAdditionalSpaceBelow bool
GCW [256]bool
HorizontalPageBreaks [][3]int
VerticalPageBreaks [][3]int
ShowFormulas bool
ShowGridLines bool
ShowSheetHeaders bool
PanesAreFrozen bool
ShowZeroValues bool
AutomaticGridLineColour bool
ColumnsFromRightToLeft bool
ShowOutlineSymbols bool
RemoveSplitsIfPaneFreezeRemoved bool
SheetSelected bool
SheetVisible bool
ShowInPageBreakPreview bool
FirstVisibleRow int
FirstVisibleCol int
GridlineColourIndex int
CachedPageBreakPreviewMagFactor int
CachedNormalViewMagFactor int
SCLMagFactor *int
CookedPageBreakPreviewMagFactor int
CookedNormalViewMagFactor int
// contains filtered or unexported fields
}
func (*Sheet) ColLabelRangeCount ¶
func (*Sheet) ColLabelRangesView ¶
func (s *Sheet) ColLabelRangesView() []MergeRange
func (*Sheet) Dimensions ¶
func (*Sheet) FirstVisible ¶
func (*Sheet) FormattingInfo ¶
func (*Sheet) GetUsedCells ¶
func (*Sheet) GridlineColour ¶
func (*Sheet) HasHyperlink ¶
func (*Sheet) HasHyperlinks ¶
func (*Sheet) HasMergedCells ¶
func (*Sheet) HasPageBreaks ¶
func (*Sheet) HorizontalBreaks ¶
func (*Sheet) HyperlinkCount ¶
func (*Sheet) HyperlinkMapView ¶
func (*Sheet) Hyperlinks ¶
func (*Sheet) IsCellUsed ¶
func (*Sheet) IsSelected ¶
func (*Sheet) IsVeryHidden ¶
func (*Sheet) MergedCellCount ¶
func (*Sheet) MergedRanges ¶
func (s *Sheet) MergedRanges() []MergeRange
func (*Sheet) NoteMapView ¶
func (*Sheet) PutCellWithFormula ¶
func (*Sheet) RaggedRows ¶
func (*Sheet) ReqFmtInfo ¶
func (*Sheet) RichTextMapView ¶
func (*Sheet) RowLabelRangeCount ¶
func (*Sheet) RowLabelRangesView ¶
func (s *Sheet) RowLabelRangesView() []MergeRange
func (*Sheet) TidyDimensions ¶
func (s *Sheet) TidyDimensions()
func (*Sheet) UpdateCookedMagFactors ¶
func (s *Sheet) UpdateCookedMagFactors()
func (*Sheet) UsedCellCoords ¶
func (*Sheet) VerticalBreaks ¶
func (*Sheet) Visibility ¶
func (*Sheet) VisibilityString ¶
func (*Sheet) ZoomFactors ¶
type XF ¶
type XF struct {
IsStyle bool
Lotus123Prefix bool
ParentStyleIndex int
FormatFlag bool
FontFlag bool
AlignmentFlag bool
BorderFlag bool
BackgroundFlag bool
ProtectionFlag bool
XFIndex int
FontIndex int
FormatKey int
Protection XFProtection
Background XFBackground
Alignment XFAlignment
Border XFBorder
}
type XFAlignment ¶
type XFBackground ¶
type XFProtection ¶
type XLDateError ¶
func (XLDateError) Error ¶
func (e XLDateError) Error() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.