X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetPreview.h;h=db2a2af96b1a1bd02b2e7ca5144137f6986113fc;hb=8124e6c02ea1fd6779bb6c47ffe2bca2c8bd2d97;hp=834d892e23fa7dcc8a8348f85c92111e1a58ead1;hpb=efc0877f8fd33ad9369d06e5b638037c8d6a1b24;p=lyx.git diff --git a/src/insets/InsetPreview.h b/src/insets/InsetPreview.h index 834d892e23..db2a2af96b 100644 --- a/src/insets/InsetPreview.h +++ b/src/insets/InsetPreview.h @@ -14,13 +14,13 @@ #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