company logo

Call creating LibreOffice document

Different ways of generating LibreOffice documents are described in

bool MyContext::fragment() {

  Property    ph = line().property();

// the following options are required by the document generatoin interface

  Option("__DocumentPath") = GetDocumentPath(); // complete document path

  Option("__TemplatePath") = GetTemplatePath(); // complete template path

  

/* set option variables to be passed to template depend on options referenced in the template

  if ( ph.positioned() )

    Option("ItemLoid") = ph.instanceLoid();

*/

// running in current process

  ph.executeExpression("SystenClass::CreateDocument()");

}