mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 18:37:36 +00:00
Spreadsheet: Add support for example views and hyperlinks in the docs
Now the functions can actually be demonstrated by small examples, embedded right inside the documentation via: spreadsheet://example/<page>#<example_name> Also allows pages to link to each other via the same scheme: spreadsheet://doc/<page>
This commit is contained in:
parent
a598a2c19d
commit
1bd3a2d09f
6 changed files with 310 additions and 23 deletions
|
@ -42,11 +42,15 @@ public:
|
|||
void save(const StringView& filename);
|
||||
void load(const StringView& filename);
|
||||
void add_sheet();
|
||||
void add_sheet(NonnullRefPtr<Sheet>&&);
|
||||
|
||||
const String& current_filename() const { return m_workbook->current_filename(); }
|
||||
const Sheet& current_worksheet() const { return m_selected_view->sheet(); }
|
||||
void set_filename(const String& filename);
|
||||
|
||||
Workbook& workbook() { return *m_workbook; }
|
||||
const Workbook& workbook() const { return *m_workbook; }
|
||||
|
||||
private:
|
||||
explicit SpreadsheetWidget(NonnullRefPtrVector<Sheet>&& sheets = {}, bool should_add_sheet_if_empty = true);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue