]> git.lyx.org Git - lyx.git/blobdiff - src/OutputParams.h
Fix bug 5859.
[lyx.git] / src / OutputParams.h
index df29806ee9fe44ee41777dfdd276e14fbc7c7bde..00a1e11030e896b973a35a4ddc372b82a91f0fdd 100644 (file)
@@ -41,6 +41,12 @@ public:
                ALIGNED
        };
 
+       enum Float {
+               NONFLOAT,
+               MAINFLOAT,
+               SUBFLOAT
+       };
+
        OutputParams(Encoding const *);
        ~OutputParams();
 
@@ -136,6 +142,11 @@ public:
          */
        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.
          */
@@ -157,6 +168,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
         */