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