3 * \file GraphicsParams.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Angus Leeming
9 * Full author contact details are available in file CREDITS.
11 * Used internally by the lyx::graphics::Image.
14 #ifndef GRAPHICSPARAMS_H
15 #define GRAPHICSPARAMS_H
17 #include "GraphicsTypes.h"
26 /** Parse a string of the form "200pt 500pt 300mm 5in" into a
27 * usable bounding box.
34 BoundingBox(std::string const &);
45 bool operator==(BoundingBox const &, BoundingBox const &);
46 bool operator!=(BoundingBox const &, BoundingBox const &);
48 std::ostream & operator<<(std::ostream &, BoundingBox const &);
59 /// The image filename.
62 /** Note that the BoundingBox is always relative to the BoundingBox
63 * as stored in the EPS file.
64 * Ie, bb.xl and bb.yb == 0 if that corner is not moved.
68 /** The size of the view inside lyx in pixels or the scaling of the
75 bool operator==(Params const &, Params const &);
76 bool operator!=(Params const &, Params const &);
78 } // namespace graphics
81 #endif // GRAPHICSPARAMS_H