mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Spreadsheet: Move to a non-owning model for Stream
in Writer::XSV
This commit is contained in:
parent
fc413711ee
commit
4952cdfe2b
5 changed files with 75 additions and 59 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue