X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FOutputParams.h;h=9ae7c3721cdbee92ecb846eefc189a91a34f9be1;hb=604a3341d9bd6b6bee6f042292f28b89027ca2b5;hp=2ea48be8b618f862a6a1e5b2b7cd8fe6c7524e74;hpb=59c04f7096779680caa0ba7623f9b53affef218b;p=lyx.git diff --git a/src/OutputParams.h b/src/OutputParams.h index 2ea48be8b6..9ae7c3721c 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -12,10 +12,8 @@ #ifndef OUTPUTPARAMS_H #define OUTPUTPARAMS_H -#include -#include "support/types.h" -#include +#include "support/shared_ptr.h" #include "Changes.h" @@ -27,7 +25,6 @@ class ExportData; class Font; class Language; - class OutputParams { public: enum FLAVOR { @@ -38,6 +35,14 @@ public: HTML, TEXT }; + + enum MathFlavor { + NotApplicable, + MathAsMathML, + MathAsHTML, + MathAsImages, + MathAsLaTeX + }; enum TableCell { NO, @@ -54,11 +59,16 @@ public: OutputParams(Encoding const *); ~OutputParams(); - /** The latex that we export depends occasionally on what is to + /** The file that we export depends occasionally on what is to compile the file. */ FLAVOR flavor; - + /// is it some flavor of LaTeX? + bool isLaTeX() const; + + /// Same, but for math output, which only matter is XHTML output. + MathFlavor math_flavor; + /** Are we to write a 'nice' LaTeX file or not. This esentially seems to mean whether InsetInclude, InsetGraphics and InsetExternal should add the absolute path to any external @@ -155,7 +165,7 @@ public: This is a hack: Make it possible to add stuff to constant OutputParams instances. */ - boost::shared_ptr exportdata; + shared_ptr exportdata; /** Whether we are inside a comment inset. Insets that are including * external files like InsetGraphics, InsetInclude and InsetExternal @@ -211,7 +221,7 @@ public: bool dryrun; /// Should we output verbatim or escape LaTeX's special chars? - bool verbatim; + bool pass_thru; /// Should we output captions? bool html_disable_captions;