Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
ui_document_export.hpp
1// Copyright (c) 2026 ttldtor.
2// SPDX-License-Identifier: BSL-1.0
3#pragma once
4
5#include <portals/document_export.hpp>
6#include <portals/ui_ref.hpp>
7
8namespace portals::ui {
17std::expected<void, ManagedError> startExport(Ref<DocumentView> viewer, std::filesystem::path output,
18 std::function<void(const DocumentExportResult &)> completed = {},
19 std::source_location origin = std::source_location::current());
25bool exportFile(Ref<DocumentView> viewer, std::filesystem::path output,
26 std::function<void(const DocumentExportResult &)> completed = {},
27 std::source_location origin = std::source_location::current());
28} // namespace portals::ui
Typed Widget observation; explicit composite specializations reuse their existing weak facades.
Definition ui_ref.hpp:761