]> git.lyx.org Git - lyx.git/blobdiff - src/OutputParams.h
Get rid of all-insets-toggle and explain how to replace it with inset-forall.
[lyx.git] / src / OutputParams.h
index 414e07e60a95d77b2ad5948a8297ea7b0173810d..6f9d306ac91e725b23c57402dda5cbe5cfd16fc5 100644 (file)
@@ -12,9 +12,7 @@
 #ifndef OUTPUTPARAMS_H
 #define OUTPUTPARAMS_H
 
-#include <string>
 
-#include "support/types.h"
 #include <boost/shared_ptr.hpp>
 #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
@@ -203,17 +213,30 @@ public:
 
        /// is this the last paragraph in the current buffer/inset?
        bool isLastPar;
+       
 
        /** whether or not do actual file copying and image conversion
         *  This mode will be used to preview the source code
         */
        bool dryrun;
+       
        /// Should we output verbatim or escape LaTeX's special chars?
        bool verbatim;
+       
        /// Should we output captions?
        bool html_disable_captions;
+       
        /// Are we already in a paragraph?
        bool html_in_par;
+       
+       /// Does the present context even permit paragraphs?
+       bool html_make_pars;
+       
+       /// Are we generating this material for inclusion in a TOC-like entity?
+       bool for_toc;
+       
+       /// Include all children notwithstanding the use of \includeonly
+       bool includeall;
 };