DocumentKind.h header
#include <ew/core/DocumentKind.h>
Namespace ew::core
Enumerations
enum class DocumentKind { Prose, Screenplay, Note }
The kind of a document, an axis layered on the Document content type: it selects the style set, input behaviour, and export rules (DESIGN.md section 6.4). New kinds are additive. Serialized as a stable lowercase token.
Functions
std::optional< DocumentKind > ew::core::documentKindFromToken(QStringView token)
Parses a document kind from its serialization token; std::nullopt if unrecognized.
QString ew::core::toToken(DocumentKind kind)
Returns the stable serialization token for kind (e.g. "prose").