]> 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 68924a64f53bbd554aabb164570a981354dd95a2..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)
        std::string scale;
        /// sizes for output (LaTeX)
@@ -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