mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 18:28:57 +00:00
Spreadsheet: Use FileSystemAccessClient for the reading of files
This commit is contained in:
parent
c4013f72a3
commit
c55dfabdd5
Notes:
sideshowbarker
2024-07-17 20:51:43 +09:00
Author: https://github.com/kingwill101
Commit: c55dfabdd5
Pull-request: https://github.com/SerenityOS/serenity/pull/11807
Reviewed-by: https://github.com/creator1creeper1 ✅
9 changed files with 63 additions and 29 deletions
|
@ -15,10 +15,11 @@ namespace Spreadsheet {
|
|||
|
||||
class Workbook {
|
||||
public:
|
||||
Workbook(NonnullRefPtrVector<Sheet>&& sheets, GUI::Window* parent_window);
|
||||
Workbook(NonnullRefPtrVector<Sheet>&& sheets, GUI::Window& parent_window);
|
||||
|
||||
Result<bool, String> save(StringView filename);
|
||||
Result<bool, String> load(StringView filename);
|
||||
Result<bool, String> open_file(int fd, StringView filename);
|
||||
|
||||
const String& current_filename() const { return m_current_filename; }
|
||||
bool set_filename(const String& filename);
|
||||
|
@ -48,7 +49,7 @@ private:
|
|||
JS::VM::InterpreterExecutionScope m_interpreter_scope;
|
||||
WorkbookObject* m_workbook_object { nullptr };
|
||||
JS::ExecutionContext m_main_execution_context;
|
||||
GUI::Window* m_parent_window { nullptr };
|
||||
GUI::Window& m_parent_window;
|
||||
|
||||
String m_current_filename;
|
||||
bool m_dirty { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue