]> git.lyx.org Git - features.git/blobdiff - src/OutputParams.h
Take into account font changes when striking out display math formulas
[features.git] / src / OutputParams.h
index e5e9ad0813d0b631b871ba18b72df4999564c67f..4534b22c6ed8ebab246e2e04615c9e9dec47c706 100644 (file)
 #define OUTPUTPARAMS_H
 
 
-#include "support/shared_ptr.h"
 #include "Changes.h"
 
+#include <memory>
+
 
 namespace lyx {
 
@@ -182,7 +183,12 @@ public:
            This is a hack: Make it possible to add stuff to constant
            OutputParams instances.
        */
-       shared_ptr<ExportData> exportdata;
+       std::shared_ptr<ExportData> exportdata;
+
+       /** Whether we are inside a display math inset.
+        *  Needed to correctly strike out deleted math in change tracking.
+        */
+       mutable bool inDisplayMath;
 
        /** Whether we are inside a comment inset. Insets that are including
         *  external files like InsetGraphics, InsetInclude and InsetExternal
@@ -237,7 +243,7 @@ public:
        mutable int lastid;
 
        /// Last position in the last paragraph before an inset
-       mutable int lastpos;
+       mutable pos_type lastpos;
 
        /// is this the last paragraph in the current buffer/inset?
        bool isLastPar;
@@ -275,6 +281,9 @@ public:
        /// Are we generating this material for use by advanced search?
        bool for_search;
 
+       /// Are we generating this material for instant preview?
+       bool for_preview;
+
        /// Include all children notwithstanding the use of \includeonly
        bool includeall;