mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-23 00:11:49 +00:00
8b67659646
Known problems: - No space is output after a \hfill. I probably broke this with the InsetCommand patch. I'll have a look later. - Although the encoding is now UTF8 the arguments of the inputenc package are still the old ones, so LaTeX will not run. - Labels and references with non-ASCII characters are broken. This needs to be fixed in lyx::support::escape(), but this is a file format change. - Something seems to be wrong with index entries, but this is probably also due to the InsetCommand changes. Have fun! git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15378 a592a061-630c-0410-9148-cb99ea01b6c8
51 lines
1.3 KiB
C++
51 lines
1.3 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 &, std::string const & name);
|
|
///
|
|
void write(Buffer const & buf, std::ostream & os) const;
|
|
///
|
|
void read(Buffer const & buf, LyXLex & lex);
|
|
///
|
|
InsetBase::Code lyxCode() const { return InsetBase::ENVIRONMENT_CODE; }
|
|
///
|
|
int latex(Buffer const &, lyx::odocstream &,
|
|
OutputParams const &) const;
|
|
///
|
|
virtual lyx::docstring const editMessage() const;
|
|
///
|
|
InsetBase::EDITABLE editable() const { return HIGHLY_EDITABLE; }
|
|
///
|
|
LyXLayout_ptr 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; }
|
|
protected:
|
|
InsetEnvironment(InsetEnvironment const &);
|
|
private:
|
|
virtual std::auto_ptr<InsetBase> doClone() const;
|
|
/// the layout
|
|
LyXLayout_ptr layout_;
|
|
};
|
|
|
|
#endif
|