X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FinsetgraphicsParams.h;h=8b2a62842401af1d53257c5e14a5e0a67ad43282;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=68924a64f53bbd554aabb164570a981354dd95a2;hpb=ec0c2e5bc05335e2d9eda502f29778fffe242519;p=lyx.git diff --git a/src/insets/insetgraphicsParams.h b/src/insets/insetgraphicsParams.h index 68924a64f5..8b2a628424 100644 --- a/src/insets/insetgraphicsParams.h +++ b/src/insets/insetgraphicsParams.h @@ -18,24 +18,23 @@ #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