mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
fc6ce7cd08
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18095 a592a061-630c-0410-9148-cb99ea01b6c8
69 lines
930 B
C++
69 lines
930 B
C++
// -*- 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
|