]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
* insettabular.[Ch]: remove remains of the 'update' mechanism,
[lyx.git] / src / insets / insetgraphics.h
index 65597521424efd6c046942af26da74583ebdaa3b..60770ef658e671f8619a73b7884c2c7ec129581c 100644 (file)
@@ -33,8 +33,6 @@ public:
        ///
        ~InsetGraphics();
        ///
-       virtual dispatch_result localDispatch(FuncRequest const & cmd);
-       ///
        void metrics(MetricsInfo &, Dimension &) const;
        ///
        EDITABLE editable() const;
@@ -48,13 +46,16 @@ public:
         fragile commands by adding a #\protect# before.
         */
        int latex(Buffer const &, std::ostream &,
-                 LatexRunParams const &) const;
+                 OutputParams const &) const;
        ///
-       int ascii(Buffer const &, std::ostream &, int linelen) const;
+       int plaintext(Buffer const &, std::ostream &,
+                 OutputParams const &) const;
        ///
-       int linuxdoc(Buffer const &, std::ostream &) const;
+       int linuxdoc(Buffer const &, std::ostream &,
+                    OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &, bool mixcont) const;
+       int docbook(Buffer const &, std::ostream &,
+                   OutputParams const &) const;
 
        /** Tell LyX what the latex features you need i.e. what latex packages
            you need to be included.
@@ -76,7 +77,11 @@ public:
        InsetGraphicsParams const & params() const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
-
+       ///
+       void edit(LCursor & cur, bool left);
+protected:
+       ///
+       void priv_dispatch(LCursor & cur, FuncRequest const & cmd);
 private:
        ///
        friend class InsetGraphicsMailer;
@@ -94,7 +99,7 @@ private:
        /// Create the options for the latex command.
        std::string const createLatexOptions() const;
        /// Convert the file if needed, and return the location of the file.
-       std::string const prepareFile(Buffer const & buf, LatexRunParams const &) const;
+       std::string const prepareFile(Buffer const & buf, OutputParams const &) const;
 
        ///
        InsetGraphicsParams params_;