]> git.lyx.org Git - lyx.git/blob - src/Section.cpp
getting rid of more superfluous lyx::support:: statements.
[lyx.git] / src / Section.cpp
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.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "Section.h"
14
15 using namespace std;
16
17 namespace lyx {
18
19
20 string const & Section::name() const
21 {
22         return name_;
23 }
24
25
26 int Section::level() const
27 {
28         return level_;
29 }
30
31
32 string const & Section::indent() const
33 {
34         return indent_;
35 }
36
37
38 string const & Section::beforeskip() const
39 {
40         return beforeskip_;
41 }
42
43
44 string const & Section::afterskip() const
45 {
46         return afterskip_;
47 }
48
49
50 Font const & Section::style() const
51 {
52         return style_;
53 }
54
55
56 bool Section::display() const
57 {
58         // If afterskip is negative it is a display section.
59         if (!afterskip_.empty() && afterskip_[0] == '-')
60                 return false;
61         return true;
62 }
63
64
65 } // namespace lyx