Documentation ¶
Overview ¶
Implements functions required commands on a sheet.
Index ¶
- Constants
- type Address
- type Cell
- type ColumnFormat
- type Sheet
- func (s *Sheet) ClearCell(address Address)
- func (s *Sheet) DecreaseColumnPrecision(column string)
- func (s *Sheet) DecreaseColumnWidth(column string)
- func (s *Sheet) DisplayFormat(address Address) string
- func (s *Sheet) GetCell(address Address) (*Cell, error)
- func (s *Sheet) GoTo(adrs Address)
- func (s *Sheet) IncreaseColumnPrecision(column string)
- func (s *Sheet) IncreaseColumnWidth(column string)
- func (s *Sheet) Load()
- func (s *Sheet) MoveDown()
- func (s *Sheet) MoveLeft()
- func (s *Sheet) MoveRight()
- func (s *Sheet) MoveUp()
- func (s *Sheet) PutColumn()
- func (s *Sheet) PutRow()
- func (s *Sheet) Save() error
- func (s *Sheet) SetCell(address Address, cell *Cell)
- func (s *Sheet) YankColumn()
- func (s *Sheet) YankRow()
Constants ¶
const ( DISPLAY_RAW_VALUE_ROW = 0 DISPLAY_COMMAND_HELP_ROW = 1 DISPLAY_SHEET_START_ROW = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address string
func NewAddress ¶
Creates and address given an integer row and column.
func (Address) Column ¶
Returns the integer value of the given address.
Columns are zero-based, using the letters A-Z, starting with A = 0.
func (Address) ColumnHeader ¶
Returns the column portion of the address as a string.
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
func (*Cell) Copy ¶
Creates a copy of the cell, altering any formula that is contained based on where the cell is being moved. It uses the relative change between the old address and new address to figure out the differences to apply to every cell referenced in the formula.
func (*Cell) StatusBarVal ¶
Gets the raw value in a format the also specifies any alignment defined in cell.
type ColumnFormat ¶
type ColumnFormat struct {
// contains filtered or unexported fields
}
type Sheet ¶
type Sheet struct { Filename string SelectedCell Address // contains filtered or unexported fields }
func (*Sheet) DecreaseColumnPrecision ¶
For a given column header string, decreases column precision.
func (*Sheet) DecreaseColumnWidth ¶
For a given column header string, decreases column width.
func (*Sheet) DisplayFormat ¶
Returns the the display format string specifying the Width, Precition, and Type of the column.
func (*Sheet) IncreaseColumnPrecision ¶
For a given column header string, increases column precision.
func (*Sheet) IncreaseColumnWidth ¶
For a given column header string, increases column width.
func (*Sheet) PutColumn ¶
func (s *Sheet) PutColumn()
Puts the sheet's clipboard the the selected cell's column.
func (*Sheet) PutRow ¶
func (s *Sheet) PutRow()
Puts the sheet's clipboard to the selected cell's row.