mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
0be0fcfd59
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7598 a592a061-630c-0410-9148-cb99ea01b6c8
58 lines
818 B
C
58 lines
818 B
C
/**
|
|
* \file Sectioning.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Lars Gullik Bjønnes
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
#include "Sectioning.h"
|
|
|
|
string const & Section::name() const
|
|
{
|
|
return name_;
|
|
}
|
|
|
|
|
|
int Section::level() const
|
|
{
|
|
return level_;
|
|
}
|
|
|
|
|
|
string const & Section::indent() const
|
|
{
|
|
return indent_;
|
|
}
|
|
|
|
|
|
string const & Section::beforeskip() const
|
|
{
|
|
return beforeskip_;
|
|
}
|
|
|
|
|
|
string const & Section::afterskip() const
|
|
{
|
|
return afterskip_;
|
|
}
|
|
|
|
|
|
LyXFont const & Section::style() const
|
|
{
|
|
return style_;
|
|
}
|
|
|
|
|
|
bool Section::display() const
|
|
{
|
|
// If afterskip is negative it is a display section.
|
|
if (!afterskip_.empty() && afterskip_[0] == '-')
|
|
return false;
|
|
return true;
|
|
}
|