#include "buffer.h"
#include "lyxlex.h"
+#include "graphics/GraphicsParams.h"
+
+
/// This struct holds all the parameters needed by insetGraphics.
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;
///
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.