#include "InsetText.h"
-#include "Dimension.h"
-
#include "support/unique_ptr.h"
namespace lyx {
+class Dimension;
+class MacroNameSet;
class RenderPreview;
namespace graphics {
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"); }
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:
};
+/// 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