]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetExternal.h
Change string
[lyx.git] / src / insets / InsetExternal.h
index 2b586153b6bae97f3f665c6ad5f9d0c3692db645..97c4b7a44088c42bfb0d30c5df3b65a6e0e7d466 100644 (file)
@@ -110,30 +110,29 @@ class InsetExternal : public Inset, public boost::signals::trackable
 public:
        InsetExternal();
        ///
-       virtual ~InsetExternal();
+       ~InsetExternal();
        ///
-       virtual InsetCode lyxCode() const { return EXTERNAL_CODE; }
+       void setBuffer(Buffer & buffer);
        ///
-       virtual EDITABLE editable() const { return IS_EDITABLE; }
+       InsetCode lyxCode() const { return EXTERNAL_CODE; }
+       ///
+       EDITABLE editable() const { return IS_EDITABLE; }
 
        ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       virtual void write(Buffer const &, std::ostream &) const;
+       void write(std::ostream &) const;
        ///
-       virtual void read(Buffer const &, Lexer & lex);
+       void read(Lexer & lex);
 
        /// \returns the number of rows (\n's) of generated code.
-       int latex(Buffer const &, odocstream &,
-                 OutputParams const &) const;
+       int latex(odocstream &, OutputParams const &) const;
        ///
-       int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+       int plaintext(odocstream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+       int docbook(odocstream &, OutputParams const &) const;
 
        /// Update needed features for this inset.
        virtual void validate(LaTeXFeatures & features) const;
@@ -141,24 +140,25 @@ public:
        ///
        InsetExternalParams const & params() const;
        ///
-       void setParams(InsetExternalParams const &, Buffer const &);
+       void setParams(InsetExternalParams const &);
        ///
        void addPreview(graphics::PreviewLoader &) const;
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, EntryDirection entry_from);
        ///
        bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
        /// external file can be embedded
-       void registerEmbeddedFiles(Buffer const &, EmbeddedFileList &) const;
+       void registerEmbeddedFiles(EmbeddedFileList &) const;
        ///
-       void updateEmbeddedFile(Buffer const &, EmbeddedFile const &);
+       void updateEmbeddedFile(EmbeddedFile const &);
 
 protected:
        InsetExternal(InsetExternal const &);
        ///
-       virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+       void doDispatch(Cursor & cur, FuncRequest & cmd);
 private:
-       virtual Inset * clone() const;
+       ///
+       Inset * clone() const { return new InsetExternal(*this); }
 
        /** This method is connected to the graphics loader, so we are
         *  informed when the image has been loaded.