lyx_mirror/src/insets/InsetEnvironment.h

60 lines
1.3 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file InsetEnvironment.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Andr<EFBFBD> P<EFBFBD>nitz
*
* Full author contact details are available in file CREDITS.
*/
#ifndef INSETENVIRONMENT_H
#define INSETENVIRONMENT_H
#include "InsetText.h"
#include "LayoutPtr.h"
namespace lyx {
class InsetEnvironment : public InsetText {
public:
///
InsetEnvironment(Buffer const &, docstring const & name);
///
docstring name() const { return name_; }
///
void write(std::ostream & os) const;
///
void read(Lexer & lex);
///
InsetCode lyxCode() const { return ENVIRONMENT_CODE; }
///
int latex(odocstream &, OutputParams const &) const;
///
int plaintext(odocstream &, OutputParams const &) const;
///
docstring editMessage() const;
///
Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
///
LayoutPtr const & layout() const;
/** returns true if, when outputing LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
bool noFontChange() const { return true; }
private:
///
Inset * clone() const { return new InsetEnvironment(*this); }
/// the layout
LayoutPtr layout_;
///
docstring name_;
};
} // namespace lyx
#endif