summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet/ExportDialog.h
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-01-14 12:11:29 -0500
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2023-01-16 17:28:32 +0330
commit4952cdfe2ba2de4831a64f8b0a920870e9d1bc39 (patch)
tree7468d4bcbc4db333e77a151fdc47f4c30990f4d7 /Userland/Applications/Spreadsheet/ExportDialog.h
parentfc413711eeb17558dff5138a67360f24ef87e34e (diff)
downloadserenity-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.h10
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();