4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Jürgen Spitzmüller
10 * Full author contact details are available in file CREDITS.
26 /// A class representing latex horizontal spacing
29 /// The different kinds of spaces.
32 LENGTH ///< user-defined length
38 explicit HSpace(HSpaceKind k);
40 explicit HSpace(Length const & l);
42 explicit HSpace(GlueLength const & l);
44 /// Constructor for reading from a .lyx file
45 explicit HSpace(std::string const & data);
47 /// return the type of vertical space
48 HSpaceKind kind() const { return kind_; }
49 /// return the length of this space
50 GlueLength const & length() const { return len_; }
53 bool operator==(HSpace const &) const;
57 /// how it goes into the LyX file
58 std::string const asLyXCommand() const;
59 /// the latex representation
60 std::string const asLatexCommand() const;
62 std::string asHTMLLength() const;
63 /// how it is seen in the LyX window
64 docstring const asGUIName() const;
65 /// the size of the space on-screen
66 int inPixels(BufferView const & bv) const;
71 /// the specified length