23#ifndef LONGNUMBERCELL_H
24#define LONGNUMBERCELL_H
55 void Draw(wxDC *dc, wxDC *antialiassingDC)
override;
73 mutable wxString m_numStart;
75 mutable std::unique_ptr<Cell> m_innerCell;
77 mutable wxString m_ellipsis;
81 mutable int m_numStartWidth = 0;
82 mutable int m_ellipsisWidth = 0;
A Type-Safe Fixed-Point Font Size.
Definition: FontAttribs.h:99
A class that carries information about the type of a cell.
Definition: Cell.h:93
The base class all cell types the worksheet can consist of are derived from.
Definition: Cell.h:148
virtual void SetCurrentPoint(wxPoint point) const
Pass 2: Arrangement.
Definition: Cell.cpp:514
The configuration storage for the current worksheet.
Definition: Configuration.h:98
A cell grouping input (and, if there is one, also the output) cell to a foldable item.
Definition: GroupCell.h:88
A cell containing a long number.
Definition: LongNumberCell.h:42
size_t GetInnerCellCount() const override
ORDER MATTERS: also used, via the default GetBrokenCellCount()/ GetBrokenCell(), as this cell's broke...
Definition: LongNumberCell.h:63
std::unique_ptr< Cell > Copy(GroupCell *group) const override
Create a copy of this cell.
void Recalculate(const AFontSize fontsize) const override
Recalculate the size of the cell and the difference between top and center.
Definition: LongNumberCell.cpp:73
const CellTypeInfo & GetInfo() override
Returns the information about this cell's type.
void Draw(wxDC *dc, wxDC *antialiassingDC) override
Pass 3 (Paint): Renders the cell using pre-calculated coordinates.
Definition: LongNumberCell.cpp:116
bool BreakUp() const override
Try to split this command into lines to make it fit on the screen.
Definition: LongNumberCell.cpp:141
virtual void UpdateDisplayedText() const override
The text we actually display depends on many factors, unfortunately.
Definition: LongNumberCell.cpp:48
void SetCurrentPoint(wxPoint point) const override
Pass 2: Arrangement.
Definition: LongNumberCell.cpp:110
Cell * GetInnerCell(size_t index) const override
Retrieve an inner cell with given index which must be less than GetInnerCellCount.
Definition: LongNumberCell.cpp:65
A Text cell.
Definition: TextCell.h:38