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