DocxExport.h header
#include <ew/app/DocxExport.h>
Namespace ew::app
Functions
QByteArray ew::app::manuscriptToDocx(const std::vector< ManuscriptSection > §ions)
Builds an Office Open XML word-processing document (.docx) from compiled manuscript sections, returning the raw bytes of the package (a ZIP). Each section becomes a Word paragraph styled at its heading level (HeadingN) followed by its body split into paragraphs; inline **bold** and *italic* markers become Word runs with the matching formatting. The caller compiles the sections (compileManuscript), applying any audience filtering, so the DOCX honours the same visibility as the other exports. The result opens in Word, LibreOffice, and Google Docs.