]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetgraphicsParams.h
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetgraphicsParams.h
index 93fde9aa4539d5f7aebea91156cea7c6a831d21b..8b626a64ec7d9ffdf946db607a771edb7475adf6 100644 (file)
 #include "graphics/GraphicsTypes.h"
 #include "LString.h"
 #include "lyxlength.h"
+#include "support/filename.h"
 
 class LyXLex;
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
        class Params;
 }
+}
+
 
 /// This struct holds all the parameters needed by insetGraphics.
 struct InsetGraphicsParams
 {
        /// Image filename.
-       string filename;
+       lyx::support::FileName filename;
        /// Scaling the Screen inside Lyx
        unsigned int lyxscale;
        /// How to display the image inside LyX
-       grfx::DisplayType display;
+       lyx::graphics::DisplayType display;
        /// Scaling for output (LaTeX)
        float scale;
        /// sizes for output (LaTeX)
@@ -76,7 +80,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.
-       grfx::Params as_grfxParams() const;
+       lyx::graphics::Params as_grfxParams() const;
 
 private:
        /// Initialize the object to a default status.