mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
46e5fe4a67
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7044 a592a061-630c-0410-9148-cb99ea01b6c8
60 lines
1.5 KiB
C++
60 lines
1.5 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file insetenv.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author André Pönitz
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef INSETENVIRONMENT_H
|
|
#define INSETENVIRONMENT_H
|
|
|
|
#include "insettext.h"
|
|
#include "lyxlayout_ptr_fwd.h"
|
|
|
|
class InsetEnvironment : public InsetText {
|
|
public:
|
|
///
|
|
InsetEnvironment(BufferParams const &, string const & name);
|
|
///
|
|
InsetEnvironment(InsetEnvironment const &);
|
|
///
|
|
//InsetEnvironment(InsetEnvironment const &, bool same_id);
|
|
///
|
|
void write(Buffer const * buf, std::ostream & os) const;
|
|
///
|
|
void read(Buffer const * buf, LyXLex & lex);
|
|
///
|
|
Inset * clone(Buffer const &) const;
|
|
///
|
|
//Inset * clone(Buffer const &, bool same_id) const;
|
|
///
|
|
Inset::Code lyxCode() const { return Inset::ENVIRONMENT_CODE; }
|
|
///
|
|
int latex(Buffer const *, std::ostream &,
|
|
LatexRunParams const &) const;
|
|
///
|
|
string const editMessage() const;
|
|
///
|
|
Inset::EDITABLE editable() const { return HIGHLY_EDITABLE; }
|
|
///
|
|
bool isTextInset() const { return true; }
|
|
///
|
|
LyXLayout_ptr const & layout() const;
|
|
///
|
|
bool needFullRow() const { return true; }
|
|
/** 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:
|
|
/// the layout
|
|
LyXLayout_ptr layout_;
|
|
};
|
|
|
|
#endif
|