-
- /// The resize of the image, is it the default size, in cm, inch or
- /// percentage of the page/column width/height
- enum Resize {
- DEFAULT_SIZE,
- CM,
- INCH,
- PERCENT_PAGE,
- PERCENT_COLUMN
- };
-
-
- /// Keep the ratio between height and width when resizing.
- bool keepAspectRatio;
-
- // What width resize to do?
- Resize widthResize;
- // Value of width resize
- float widthSize;
- // What height resize to do?
- Resize heightResize;
- // Value of height resize
- float heightSize;
-
- // Origin point of rotation
- Origin rotateOrigin;
- // Rotation angle.
- int rotateAngle;
-
- InsetGraphicsParams();
-
- InsetGraphicsParams(InsetGraphicsParams const &);
- InsetGraphicsParams const & operator=(InsetGraphicsParams const &);
-
- /// Save the parameters in the LyX format stream.
- void Write(Buffer const * buf, ostream & os) const;
-
- /// If the token belongs to our parameters, read it.
- bool Read(Buffer const * buf, LyXLex & lex, string const & token);
-
- /// Test the struct to make sure that all the options have legal values.
- void testInvariant() const;
+ ///
+ enum sizeType { // for latex and/or lyx
+ DEFAULT_SIZE, // like none
+ WH, // width/height values
+ SCALE // percentage value
+ };
+ /// Image filename.
+ string filename;
+ /// Do we have a subcaption?
+ bool subcaption;
+ /// The text of the subcaption.
+ string subcaptionText;
+ /// Do we rotate?
+ bool rotate;
+ /// Origin point of rotation
+ string rotateOrigin;
+ /// Rotation angle.
+ float rotateAngle;
+ /// clip image
+ bool clip;
+ /// draft mode
+ bool draft;
+ /// what to do with zipped files
+ bool noUnzip;
+ /// The bounding box with "xLB yLB yRT yRT ", divided by a space!
+ string bb;
+ /// Type of rescaling
+ sizeType size_type;
+ /// three possible values for rescaling (latex)
+ LyXLength width;
+ ///
+ LyXLength height;
+ ///
+ int scale;
+ /// Keep the ratio between height and width when resizing.
+ bool keepAspectRatio;
+ /// any userdefined special command
+ 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;
+ LyXLength lyxwidth;
+ ///
+ LyXLength lyxheight;
+ /// Typ of rescaling the Screen inside lyx
+ int lyxscale;
+ ///
+ InsetGraphicsParams();
+ ///
+ InsetGraphicsParams(InsetGraphicsParams const &);
+ ///
+ InsetGraphicsParams & operator=(InsetGraphicsParams const &);
+ /// Save the parameters in the LyX format stream.
+ void Write(Buffer const * buf, std::ostream & os) const;
+ /// If the token belongs to our parameters, read it.
+ bool Read(Buffer const * buf, LyXLex & lex, string const & token);