]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/PreviewLoader.h
#5502 add binding for full screen toggle on mac
[lyx.git] / src / graphics / PreviewLoader.h
index 6910984c9ed13eb77c851ac49ee3bad94403fd4d..697b7802cd5ed822747419a0fe4369e3a0f63ab6 100644 (file)
@@ -19,6 +19,7 @@
 #define PREVIEWLOADER_H
 
 #include <boost/signal.hpp>
+#include "support/docstring.h"
 
 #include "ColorCode.h"
 
@@ -65,6 +66,11 @@ public:
        /// Remove this snippet of LaTeX from the PreviewLoader.
        void remove(std::string const & latex_snippet) const;
 
+       /// Record math macro definitions added to the loader
+       void addMacroDef(docstring const & latex_snippet) const;
+       /// Has a math macro definition already been added to the loader?
+       bool hasMacroDef(docstring const & latex_snippet) const;
+
        /** We have accumulated several latex snippets with status "InQueue".
         *  Initiate their transformation into bitmap images.
         */
@@ -91,6 +97,8 @@ public:
        /// The foreground color used
        static ColorCode foregroundColor() { return Color_preview; }
 
+       double displayPixelRatio() const ;
+
 private:
        /// noncopyable
        PreviewLoader(PreviewLoader const &);