29 struct WriterTreeVisitorFactory :
public TreeVisitorFactory
31 WriterTreeVisitorFactory() {}
33 virtual std::shared_ptr<ElementTreeVisitor> createOptimizingVisitor(PDFIProcessor& rProc)
const override
35 return std::make_shared<WriterXmlOptimizer>(rProc);
38 virtual std::shared_ptr<ElementTreeVisitor> createStyleCollectingVisitor(
39 StyleContainer& rStyles,
40 PDFIProcessor& rProc )
const override
42 return std::make_shared<WriterXmlFinalizer>(rStyles,rProc);
45 virtual std::shared_ptr<ElementTreeVisitor> createEmittingVisitor(EmitContext& rEmitContext)
const override
47 return std::make_shared<WriterXmlEmitter>(rEmitContext);
51 struct ImpressTreeVisitorFactory :
public TreeVisitorFactory
53 ImpressTreeVisitorFactory() {}
55 virtual std::shared_ptr<ElementTreeVisitor> createOptimizingVisitor(PDFIProcessor& rProc)
const override
57 return std::make_shared<DrawXmlOptimizer>(rProc);
60 virtual std::shared_ptr<ElementTreeVisitor> createStyleCollectingVisitor(
61 StyleContainer& rStyles,
62 PDFIProcessor& rProc )
const override
64 return std::make_shared<DrawXmlFinalizer>(rStyles,rProc);
67 virtual std::shared_ptr<ElementTreeVisitor> createEmittingVisitor(EmitContext& rEmitContext)
const override
73 struct DrawTreeVisitorFactory :
public TreeVisitorFactory
75 DrawTreeVisitorFactory() {}
77 virtual std::shared_ptr<ElementTreeVisitor> createOptimizingVisitor(PDFIProcessor& rProc)
const override
79 return std::make_shared<DrawXmlOptimizer>(rProc);
82 virtual std::shared_ptr<ElementTreeVisitor> createStyleCollectingVisitor(
83 StyleContainer& rStyles,
84 PDFIProcessor& rProc )
const override
86 return std::make_shared<DrawXmlFinalizer>(rStyles,rProc);
89 virtual std::shared_ptr<ElementTreeVisitor> createEmittingVisitor(EmitContext& rEmitContext)
const override
99 return std::make_shared<WriterTreeVisitorFactory>();
103 return std::make_shared<ImpressTreeVisitorFactory>();
107 return std::make_shared<DrawTreeVisitorFactory>();
std::shared_ptr< TreeVisitorFactory > TreeVisitorFactorySharedPtr
TreeVisitorFactorySharedPtr createWriterTreeVisitorFactory()
TreeVisitorFactorySharedPtr createDrawTreeVisitorFactory()
TreeVisitorFactorySharedPtr createImpressTreeVisitorFactory()