]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPreview.h
Fix bug #12795
[lyx.git] / src / insets / InsetPreview.h
index 834d892e23fa7dcc8a8348f85c92111e1a58ead1..db2a2af96b1a1bd02b2e7ca5144137f6986113fc 100644 (file)
 
 #include "InsetText.h"
 
-#include "Dimension.h"
-
 #include "support/unique_ptr.h"
 
 
 namespace lyx {
 
+class Dimension;
+class MacroNameSet;
 class RenderPreview;
 
 namespace graphics {
@@ -46,8 +46,6 @@ public:
 
        bool neverIndent() const override { return true; }
 
-       bool inheritFont() const override { return false; }
-
        InsetCode lyxCode() const override { return PREVIEW_CODE; }
 
        docstring layoutName() const override { return from_ascii("Preview"); }
@@ -72,7 +70,7 @@ public:
 
        void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
 
-       bool canPaintChange(BufferView const &) const override { return true; };
+       bool canPaintChange(BufferView const &) const override { return true; }
        //@}
 
 protected:
@@ -90,6 +88,12 @@ protected:
 };
 
 
+/// gathers the list of macro definitions used in the given inset
+MacroNameSet gatherMacroDefinitions(const Buffer* buffer, const Inset * inset);
+/// returns the LaTeX snippet to compute the preview of the given inset
+docstring insetToLaTeXSnippet(const Buffer* buffer, const Inset * inset);
+
+
 } // namespace lyx