Centralize legacy document session bridge
This commit is contained in:
26
src/legacy_document_session_services.h
Normal file
26
src/legacy_document_session_services.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include "app_core/document_session.h"
|
||||
#include "foundation/result.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
class App;
|
||||
|
||||
namespace pp::panopainter {
|
||||
|
||||
[[nodiscard]] pp::foundation::Status execute_legacy_close_request_decision(
|
||||
App& app,
|
||||
pp::app::CloseRequestDecision decision,
|
||||
bool& dialog_already_opened);
|
||||
|
||||
[[nodiscard]] pp::foundation::Status execute_legacy_document_save_decision(
|
||||
App& app,
|
||||
pp::app::DocumentSaveDecision decision);
|
||||
|
||||
[[nodiscard]] pp::foundation::Status execute_legacy_document_workflow_decision(
|
||||
App& app,
|
||||
pp::app::DocumentWorkflowDecision decision,
|
||||
std::function<void()> action);
|
||||
|
||||
} // namespace pp::panopainter
|
||||
Reference in New Issue
Block a user