]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphics.h
Rename LatexRunParams::fragile as moving_arg.
[lyx.git] / src / insets / insetgraphics.h
index 03a1884bccec79bcca40f013cb34ef9a565a1c7f..507dd08ccb373337d4fd198b039fe45e27a9e59c 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef INSET_GRAPHICS_H
 #define INSET_GRAPHICS_H
 
-
-
 #include "insets/inset.h"
 #include "insets/insetgraphicsParams.h"
 
@@ -35,20 +33,12 @@ public:
        ///
        ~InsetGraphics();
        ///
-       virtual dispatch_result localDispatch(FuncRequest const & cmd); 
-       ///
-       int ascent(BufferView *, LyXFont const &) const;
+       virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       int descent(BufferView *, LyXFont const &) const;
-       ///
-       int width(BufferView *, LyXFont const &) const;
+       void dimension(BufferView *, LyXFont const &, Dimension &) const;
        ///
        void draw(BufferView *, LyXFont const &, int, float &) const;
        ///
-       void edit(BufferView *, int, int, mouse_button::state);
-       ///
-       void edit(BufferView * bv, bool front = true);
-       ///
        EDITABLE editable() const;
        ///
        void write(Buffer const *, std::ostream &) const;
@@ -60,7 +50,7 @@ public:
         fragile commands by adding a #\protect# before.
         */
        int latex(Buffer const *, std::ostream &,
-                 bool fragile, bool free_spc) const;
+                 LatexRunParams const &) const;
        ///
        int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
@@ -111,7 +101,7 @@ private:
        /// Create the options for the latex command.
        string const createLatexOptions() const;
        /// Convert the file if needed, and return the location of the file.
-       string const prepareFile(Buffer const * buf) const;
+       string const prepareFile(Buffer const * buf, LatexRunParams const &) const;
 
        ///
        InsetGraphicsParams params_;