]> git.lyx.org Git - lyx.git/blob - src/Sectioning.C
- Add missing STL includes for correctness - gcc is too forgiving
[lyx.git] / src / Sectioning.C
1 /**
2  * \file Sectioning.C
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 "Sectioning.h"
14
15 using std::string;
16
17 string const & Section::name() const
18 {
19         return name_;
20 }
21
22
23 int Section::level() const
24 {
25         return level_;
26 }
27
28
29 string const & Section::indent() const
30 {
31         return indent_;
32 }
33
34
35 string const & Section::beforeskip() const
36 {
37         return beforeskip_;
38 }
39
40
41 string const & Section::afterskip() const
42 {
43         return afterskip_;
44 }
45
46
47 LyXFont const & Section::style() const
48 {
49         return style_;
50 }
51
52
53 bool Section::display() const
54 {
55         // If afterskip is negative it is a display section.
56         if (!afterskip_.empty() && afterskip_[0] == '-')
57                 return false;
58         return true;
59 }