12 #ifndef DOCWIRE_ODFOOXML_PARSER_H
13 #define DOCWIRE_ODFOOXML_PARSER_H
15 #include "common_xml_document_parser.h"
16 #include "data_source.h"
17 #include "odf_ooxml_export.h"
18 #include "safety_policy.h"
27 template <safety_policy safety_level = default_safety_level>
34 using base_type::registerODFOOXMLCommandHandler;
35 using base_type::blanks;
36 using base_type::set_blanks;
37 using base_type::extractText;
38 using base_type::parseODFMetadata;
39 using base_type::parseXmlChildren;
40 using base_type::getSharedStrings;
41 using base_type::activeEmittingSignals;
45 class CommandHandlersSet;
46 int lastOOXMLRowNum();
47 void setLastOOXMLRowNum(
int r);
48 int lastOOXMLColNum();
49 void setLastOOXMLColNum(
int c);
71 bool is_leaf()
const override {
return false; }
Helper class to manage the context stack scope. Pushes a new context on construction and pops it on d...
Base class for XML-based document parsers (ODF, OOXML, etc.).
A parser for ODF and OOXML document formats.
odf_ooxml_parser()
Default constructor.
bool is_leaf() const override
Check if chain element is a leaf (last element which doesn't produce any messages)....
void parse(const data_source &data, const message_callbacks &emit_message)
Parses the given data source.
continuation operator()(message_ptr msg, const message_callbacks &emit_message) override
Processes a message in the parsing chain.
The main namespace for the DocWire SDK.
Represents a shared string, a common optimization in OOXML formats.