]> git.lyx.org Git - features.git/blobdiff - src/OutputParams.h
start XeTeX support.
[features.git] / src / OutputParams.h
index f873134c9dee0707e8483f303016bfa60cba399a..cc0f01548eb6da3848f7bc760a650f461674c36f 100644 (file)
@@ -32,9 +32,22 @@ public:
        enum FLAVOR {
                LATEX,
                PDFLATEX,
+               XETEX,
                XML
        };
 
+       enum TableCell {
+               NO,
+               PLAIN,
+               ALIGNED
+       };
+
+       enum Float {
+               NONFLOAT,
+               MAINFLOAT,
+               SUBFLOAT
+       };
+
        OutputParams(Encoding const *);
        ~OutputParams();
 
@@ -125,8 +138,15 @@ public:
         */
        bool inComment;
 
-       /// Whether we are in a table cell
-       bool inTableCell;
+       /** Whether we are in a table cell.
+        *  For newline, it matters whether its content is aligned or not.
+         */
+       TableCell inTableCell;
+
+       /** Whether we are inside a float or subfloat.
+        *  Needed for subfloat detection on the command line.
+        */
+       Float inFloat;
 
        /** Whether we are inside an inset that is logically deleted.
         *  A value > 0 indicates a deleted inset.
@@ -149,6 +169,9 @@ public:
         */
        pit_type par_end;
 
+       /// 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
         */