Another minor change, but this should almost get us to the point that we
[lyx.git] / src / Section.cpp
blob2ec968e8e624c7a58648410a40b769ab7bcccfb0
1 /**
2 * \file Section.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
9 */
11 #include <config.h>
13 #include "Section.h"
15 using namespace std;
17 namespace lyx {
20 string const & Section::name() const
22 return name_;
26 int Section::level() const
28 return level_;
32 string const & Section::indent() const
34 return indent_;
38 string const & Section::beforeskip() const
40 return beforeskip_;
44 string const & Section::afterskip() const
46 return afterskip_;
50 Font const & Section::style() const
52 return style_;
56 bool Section::display() const
58 // If afterskip is negative it is a display section.
59 if (!afterskip_.empty() && afterskip_[0] == '-')
60 return false;
61 return true;
65 } // namespace lyx