YWriterImport.h header
#include <ew/app/YWriterImport.h>
Namespace ew::app
Functions
ImportedManuscript ew::app::importYWriter(const QString &xml)
Parses a yWriter project file's xml (a .yw7/.yw6 document) into an importable manuscript. The project title becomes a root Document; each chapter becomes a container Document under the root (in file order); each scene the chapter references becomes a child Document holding the scene's content as its body and the scene's description as its synopsis (titled from the scene's title, or "Scene N"). Scenes not referenced by any chapter are appended under the root after the chapters, so nothing is lost. Malformed or empty XML yields just the root Document. Documents are returned by pointer (content objects are non-copyable), root first.