2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
|
* \file Section.cpp
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
2000-07-17 18:27:53 +00:00
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
|
#include "Section.h"
|
2000-07-17 18:27:53 +00:00
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
|
|
2005-01-18 14:15:57 +00:00
|
|
|
|
using std::string;
|
|
|
|
|
|
2000-07-17 18:27:53 +00:00
|
|
|
|
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;
|
|
|
|
|
}
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace lyx
|