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