]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetERT.h
Revert r32624 - forgotten and wrong patch in git commit pipe, sorry ;)
[features.git] / src / insets / InsetERT.h
index 4be3ece467e55f6e14784e15dd43a8662f359524..3f38f0e70eb9fc2d08f1fa602bcc44603faece33 100644 (file)
 #define INSETERT_H
 
 #include "InsetCollapsable.h"
-#include "RenderPreview.h"
-#include "graphics/PreviewLoader.h"
 
-#include <boost/scoped_ptr.hpp>
 
 namespace lyx {
 
@@ -37,32 +34,11 @@ public:
        ///
        InsetERT(Buffer *, CollapseStatus status = Open);
        ///
-       InsetERT(InsetERT const & other);
-       ///
        ~InsetERT();
-       //
-       InsetERT & operator=(InsetERT const & other);
        ///
        static CollapseStatus string2params(std::string const &);
        ///
        static std::string params2string(CollapseStatus);
-       ///
-       void addPreview(DocIterator const & inset_pos,
-               graphics::PreviewLoader & ploader) const;
-       ///
-       void preparePreview(DocIterator const & pos) const;
-       ///
-       void reloadPreview(DocIterator const & pos) const;
-       ///
-       bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
-       ///
-       void draw(PainterInfo & pi, int x, int y) const;
-       ///
-       Inset * editXY(Cursor & cur, int x, int y);
-       ///
-       void metrics(MetricsInfo & mi, Dimension & dim) const;
-       ///
-       bool previewState(BufferView * bv) const;
 private:
        ///
        InsetCode lyxCode() const { return ERT_CODE; }
@@ -92,10 +68,6 @@ private:
        docstring const buttonLabel(BufferView const & bv) const;
        ///
        bool allowSpellCheck() const { return false; }
-       ///
-       boost::scoped_ptr<RenderPreview> preview_;
-       ///
-       mutable bool use_preview_;
 };