mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
Spreadsheet: Add support for copying ranges of cells to other cells
Now the entire range is copied to the area around the target cell, translating the current cursor to the target.
This commit is contained in:
parent
7878596532
commit
e99c2261e3
8 changed files with 187 additions and 53 deletions
|
@ -52,6 +52,14 @@ public:
|
|||
Workbook& workbook() { return *m_workbook; }
|
||||
const Workbook& workbook() const { return *m_workbook; }
|
||||
|
||||
const GUI::ModelIndex* current_selection_cursor() const
|
||||
{
|
||||
if (!m_selected_view)
|
||||
return nullptr;
|
||||
|
||||
return m_selected_view->cursor();
|
||||
}
|
||||
|
||||
private:
|
||||
explicit SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets = {}, bool should_add_sheet_if_empty = true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue