diff options
author | Lucas CHOLLET <lucas.chollet@free.fr> | 2023-01-14 12:11:29 -0500 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2023-01-16 17:28:32 +0330 |
commit | 4952cdfe2ba2de4831a64f8b0a920870e9d1bc39 (patch) | |
tree | 7468d4bcbc4db333e77a151fdc47f4c30990f4d7 /Userland/Applications/Spreadsheet/ExportDialog.h | |
parent | fc413711eeb17558dff5138a67360f24ef87e34e (diff) | |
download | serenity-4952cdfe2ba2de4831a64f8b0a920870e9d1bc39.zip |
Spreadsheet: Move to a non-owning model for `Stream` in `Writer::XSV`
Diffstat (limited to 'Userland/Applications/Spreadsheet/ExportDialog.h')
-rw-r--r-- | Userland/Applications/Spreadsheet/ExportDialog.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Userland/Applications/Spreadsheet/ExportDialog.h b/Userland/Applications/Spreadsheet/ExportDialog.h index da73500443..2f07f87653 100644 --- a/Userland/Applications/Spreadsheet/ExportDialog.h +++ b/Userland/Applications/Spreadsheet/ExportDialog.h @@ -18,12 +18,16 @@ class Sheet; class Workbook; struct CSVExportDialogPage { - using XSV = Writer::XSV<Vector<Vector<DeprecatedString>>, Vector<DeprecatedString>>; - explicit CSVExportDialogPage(Sheet const&); NonnullRefPtr<GUI::WizardPage> page() { return *m_page; } - ErrorOr<NonnullOwnPtr<XSV>> make_writer(Core::Stream::Handle<Core::Stream::Stream>); + + enum class GenerationType { + Normal, + Preview + }; + + ErrorOr<void> generate(Core::Stream::Stream&, GenerationType); protected: void update_preview(); |