Centralize legacy document file saves

This commit is contained in:
2026-06-04 13:47:43 +02:00
parent 8a0810acb3
commit ab6223c256
8 changed files with 257 additions and 37 deletions

View File

@@ -8,6 +8,7 @@
class App;
class NodeDialogNewDoc;
class NodeDialogSave;
namespace pp::panopainter {
@@ -30,4 +31,13 @@ namespace pp::panopainter {
const pp::app::NewDocumentPlan& plan,
std::shared_ptr<NodeDialogNewDoc> dialog);
[[nodiscard]] pp::foundation::Status execute_legacy_document_file_save_plan(
App& app,
const pp::app::DocumentFileSavePlan& plan,
std::shared_ptr<NodeDialogSave> dialog);
[[nodiscard]] pp::foundation::Status execute_legacy_document_version_save(
App& app,
const pp::app::DocumentVersionTarget& target);
} // namespace pp::panopainter