mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Forgot these
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33532 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ddd4cb6152
commit
5cb1a6a08d
@ -1,65 +0,0 @@
|
||||
/**
|
||||
* \file Section.cpp
|
||||
* 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 "Section.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
|
||||
Font 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;
|
||||
}
|
||||
|
||||
|
||||
} // namespace lyx
|
@ -1,68 +0,0 @@
|
||||
// -*- C++ -*-
|
||||
/**
|
||||
* \file Section.h
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef SECTION_H
|
||||
#define SECTION_H
|
||||
|
||||
#include "Font.h"
|
||||
|
||||
#include <map>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
||||
|
||||
///
|
||||
class Section {
|
||||
public:
|
||||
///
|
||||
std::string const & name() const;
|
||||
///
|
||||
int level() const;
|
||||
///
|
||||
std::string const & indent() const;
|
||||
///
|
||||
std::string const & beforeskip() const;
|
||||
///
|
||||
std::string const & afterskip() const;
|
||||
///
|
||||
Font const & style() const;
|
||||
///
|
||||
bool display() const;
|
||||
private:
|
||||
///
|
||||
std::string name_;
|
||||
///
|
||||
int level_;
|
||||
///
|
||||
std::string indent_;
|
||||
///
|
||||
std::string beforeskip_;
|
||||
///
|
||||
std::string afterskip_;
|
||||
///
|
||||
Font style_;
|
||||
};
|
||||
|
||||
|
||||
///
|
||||
class SectioningList {
|
||||
private:
|
||||
///
|
||||
typedef std::map<std::string, Section> List_;
|
||||
///
|
||||
List_ list_;
|
||||
};
|
||||
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user