]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphicsParams.h
move inset related stuff from src/graphics to src/inset/
[lyx.git] / src / insets / insetgraphicsParams.h
index 8361eab369d739923ae8a23ccc9bc6e8755e74b9..aa7dd27869ba2107ca8e17fb363d441d77b09636 100644 (file)
@@ -22,6 +22,9 @@
 #include "buffer.h"
 #include "lyxlex.h"
 
+#include "graphics/GraphicsParams.h"
+
+
 /// This struct holds all the parameters needed by insetGraphics.
 struct InsetGraphicsParams
 {
@@ -73,9 +76,9 @@ struct InsetGraphicsParams
        string special;
        /// How to display the image inside lyx
        DisplayType display;
-       /// the size for the view inside lyx
        /// Typ of the LyXView, same as for latex
        sizeType lyxsize_type;
+       /// the size for the view inside lyx
        LyXLength lyxwidth;
        ///
        LyXLength lyxheight;
@@ -88,9 +91,11 @@ struct InsetGraphicsParams
        ///
        InsetGraphicsParams & operator=(InsetGraphicsParams const &);
        /// Save the parameters in the LyX format stream.
-       void Write(Buffer const * buf, std::ostream & os) const;
+       void Write(std::ostream & os) const;
        /// If the token belongs to our parameters, read it.
        bool Read(LyXLex & lex, string const & token);
+       /// convert 
+       grfx::GParams asGParams(string const & filepath) const;
 
 private:
        /// Initialize the object to a default status.