]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphicsParams.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetgraphicsParams.h
index b96343836f71a14e30d40200f1a6918bc3f0c858..8b2a62842401af1d53257c5e14a5e0a67ad43282 100644 (file)
 #include "lyxlength.h"
 #include "support/filename.h"
 
-class LyXLex;
-
 namespace lyx {
-namespace graphics {
-       class Params;
-}
-}
+
+namespace graphics { class Params; }
+
+class LyXLex;
 
 
-/// This struct holds all the parameters needed by insetGraphics.
-struct InsetGraphicsParams
+/// This class holds all the parameters needed by insetGraphics.
+class InsetGraphicsParams
 {
+public:
        /// Image filename.
-       lyx::support::FileName filename;
+       support::DocFileName filename;
        /// Scaling the Screen inside Lyx
        unsigned int lyxscale;
        /// How to display the image inside LyX
-       lyx::graphics::DisplayType display;
+       graphics::DisplayType display;
        /// Scaling for output (LaTeX)
-       float scale;
+       std::string scale;
        /// sizes for output (LaTeX)
        LyXLength width;
        ///
@@ -55,7 +54,7 @@ struct InsetGraphicsParams
        bool clip;
 
        /// Rotation angle.
-       float rotateAngle;
+       std::string rotateAngle;
        /// Origin point of rotation
        std::string rotateOrigin;
        /// Do we have a subcaption?
@@ -79,7 +78,7 @@ struct InsetGraphicsParams
   // Only a subset of InsetGraphicsParams is needed for display purposes.
   // This function also interrogates lyxrc to ascertain whether
   // to display or not.
-       lyx::graphics::Params as_grfxParams() const;
+       graphics::Params as_grfxParams() const;
 
 private:
        /// Initialize the object to a default status.
@@ -93,4 +92,6 @@ bool operator==(InsetGraphicsParams const &, InsetGraphicsParams const &);
 ///
 bool operator!=(InsetGraphicsParams const &, InsetGraphicsParams const &);
 
+} // namespace lyx
+
 #endif