Consider the case where there is not any layout name.
[lyx.git] / src / Sectioning.C
blob64aa20201966a824e85efc8afc480181ea020d99
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  */
11 #include <config.h>
13 #include "Sectioning.h"
15 using std::string;
17 string const & Section::name() const
19         return name_;
23 int Section::level() const
25         return level_;
29 string const & Section::indent() const
31         return indent_;
35 string const & Section::beforeskip() const
37         return beforeskip_;
41 string const & Section::afterskip() const
43         return afterskip_;
47 LyXFont const & Section::style() const
49         return style_;
53 bool Section::display() const
55         // If afterskip is negative it is a display section.
56         if (!afterskip_.empty() && afterskip_[0] == '-')
57                 return false;
58         return true;