2000-07-17 18:27:53 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
2007-04-26 04:41:58 +00:00
|
|
|
|
* \file Section.h
|
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
|
|
|
|
|
2007-04-26 04:41:58 +00:00
|
|
|
|
#ifndef SECTION_H
|
|
|
|
|
#define SECTION_H
|
2000-07-17 18:27:53 +00:00
|
|
|
|
|
2007-04-29 18:17:15 +00:00
|
|
|
|
#include "Font.h"
|
2003-10-06 15:43:21 +00:00
|
|
|
|
|
2000-07-17 18:27:53 +00:00
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
|
|
|
|
|
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
|
|
|
|
class Section {
|
|
|
|
|
public:
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & name() const;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
|
|
|
|
int level() const;
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & indent() const;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & beforeskip() const;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string const & afterskip() const;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font const & style() const;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
|
|
|
|
bool display() const;
|
|
|
|
|
private:
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string name_;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
|
|
|
|
int level_;
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string indent_;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string beforeskip_;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
std::string afterskip_;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
2007-04-29 18:17:15 +00:00
|
|
|
|
Font style_;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
class SectioningList {
|
|
|
|
|
private:
|
|
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
|
typedef std::map<std::string, Section> List_;
|
2000-07-17 18:27:53 +00:00
|
|
|
|
///
|
|
|
|
|
List_ list_;
|
|
|
|
|
};
|
|
|
|
|
|
2006-10-21 00:16:43 +00:00
|
|
|
|
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2000-07-17 18:27:53 +00:00
|
|
|
|
#endif
|