]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPreview.h
Fix bug #12795
[lyx.git] / src / insets / InsetPreview.h
index ca6641a8869ca12854cba1a7c3c597f3965636f4..db2a2af96b1a1bd02b2e7ca5144137f6986113fc 100644 (file)
@@ -20,6 +20,7 @@
 namespace lyx {
 
 class Dimension;
+class MacroNameSet;
 class RenderPreview;
 
 namespace graphics {
@@ -69,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:
@@ -87,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