- /// 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;
+
+ /// 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.
+ float rotateAngle;
+ ///
+ InsetGraphicsParams();
+ ///
+ InsetGraphicsParams(InsetGraphicsParams const &);
+ ///
+ InsetGraphicsParams & 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;