]> git.lyx.org Git - lyx.git/blob - src/Sectioning.C
include sys/time.h
[lyx.git] / src / Sectioning.C
1 #include <config.h>
2
3 #include "Sectioning.h"
4
5 string const & Section::name() const
6 {
7         return name_;
8 }
9
10
11 int Section::level() const
12 {
13         return level_;
14 }
15
16
17 string const & Section::indent() const
18 {
19         return indent_;
20 }
21
22
23 string const & Section::beforeskip() const
24 {
25         return beforeskip_;
26 }
27
28
29 string const & Section::afterskip() const
30 {
31         return afterskip_;
32 }
33
34
35 LyXFont const & Section::style() const
36 {
37         return style_;
38 }
39
40
41 bool Section::display() const
42 {
43         // If afterskip is negative it is a display section.
44         if (!afterskip_.empty() && afterskip_[0] == '-')
45                 return false;
46         return true;
47 }