2000-07-17 18:27:53 +00:00
|
|
|
|
// -*- C++ -*-
|
2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file Sectioning.h
|
|
|
|
|
* 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
|
|
|
|
|
|
|
|
|
#ifndef SECTIONING_H
|
|
|
|
|
#define SECTIONING_H
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
#include "LString.h"
|
|
|
|
|
#include "lyxfont.h"
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
class Section {
|
|
|
|
|
public:
|
|
|
|
|
///
|
|
|
|
|
string const & name() const;
|
|
|
|
|
///
|
|
|
|
|
int level() const;
|
|
|
|
|
///
|
|
|
|
|
string const & indent() const;
|
|
|
|
|
///
|
|
|
|
|
string const & beforeskip() const;
|
|
|
|
|
///
|
|
|
|
|
string const & afterskip() const;
|
|
|
|
|
///
|
|
|
|
|
LyXFont const & style() const;
|
|
|
|
|
///
|
|
|
|
|
bool display() const;
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
string name_;
|
|
|
|
|
///
|
|
|
|
|
int level_;
|
|
|
|
|
///
|
|
|
|
|
string indent_;
|
|
|
|
|
///
|
|
|
|
|
string beforeskip_;
|
|
|
|
|
///
|
|
|
|
|
string afterskip_;
|
|
|
|
|
///
|
|
|
|
|
LyXFont style_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
class SectioningList {
|
|
|
|
|
private:
|
|
|
|
|
///
|
|
|
|
|
typedef std::map<string, Section> List_;
|
|
|
|
|
///
|
|
|
|
|
List_ list_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|