mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:17:35 +00:00
Spreadsheet: Track selections across sheet switches
This commit is contained in:
parent
8db5057dc4
commit
dd4bd0943a
3 changed files with 28 additions and 2 deletions
|
@ -150,7 +150,8 @@ public:
|
|||
|
||||
JsonObject gather_documentation() const;
|
||||
|
||||
Optional<Position> selected_cell() const { return m_selected_cell; }
|
||||
const HashTable<Position>& selected_cells() const { return m_selected_cells; }
|
||||
HashTable<Position>& selected_cells() { return m_selected_cells; }
|
||||
const HashMap<Position, NonnullOwnPtr<Cell>>& cells() const { return m_cells; }
|
||||
HashMap<Position, NonnullOwnPtr<Cell>>& cells() { return m_cells; }
|
||||
|
||||
|
@ -200,7 +201,7 @@ private:
|
|||
Vector<String> m_columns;
|
||||
size_t m_rows { 0 };
|
||||
HashMap<Position, NonnullOwnPtr<Cell>> m_cells;
|
||||
Optional<Position> m_selected_cell; // FIXME: Make this a collection.
|
||||
HashTable<Position> m_selected_cells;
|
||||
|
||||
Workbook& m_workbook;
|
||||
mutable SheetGlobalObject* m_global_object;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue