class VSpace {
public:
/// The different kinds of spaces.
- enum vspace_kind {
+ enum VSpaceKind {
DEFSKIP,
SMALLSKIP,
MEDSKIP,
LENGTH ///< user-defined length
};
+ ///
VSpace();
-
- explicit VSpace(vspace_kind k);
-
+ ///
+ explicit VSpace(VSpaceKind k);
+ ///
explicit VSpace(Length const & l);
-
+ ///
explicit VSpace(GlueLength const & l);
/// Constructor for reading from a .lyx file
explicit VSpace(std::string const & data);
/// return the type of vertical space
- vspace_kind kind() const;
+ VSpaceKind kind() const { return kind_; }
/// return the length of this space
- GlueLength const & length() const;
+ GlueLength const & length() const { return len_; }
// a flag that switches between \vspace and \vspace*
- bool keep() const;
+ bool keep() const { return keep_; }
/// if set true, use \vspace* when type is not DEFSKIP
- void setKeep(bool val);
+ void setKeep(bool keep) { keep_ = keep; }
///
bool operator==(VSpace const &) const;
private:
/// This VSpace kind
- vspace_kind kind_;
+ VSpaceKind kind_;
/// the specified length
GlueLength len_;
/// if true, use \vspace* type