2000-02-25 12:06:15 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2000-02-25 13:35:38 +00:00
|
|
|
* Copyright 1998 The LyX Team.
|
2000-02-25 12:06:15 +00:00
|
|
|
*
|
|
|
|
*======================================================
|
|
|
|
*/
|
|
|
|
// The pristine updatable inset: Text
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef INSETERT_H
|
|
|
|
#define INSETERT_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2000-03-08 13:52:57 +00:00
|
|
|
#include "insetcollapsable.h"
|
2000-02-25 12:06:15 +00:00
|
|
|
|
|
|
|
class Painter;
|
|
|
|
|
|
|
|
/** A colapsable text inset
|
|
|
|
|
|
|
|
To write full ert (including styles and other insets) in a given
|
|
|
|
space.
|
|
|
|
*/
|
2000-03-08 13:52:57 +00:00
|
|
|
class InsetERT : public InsetCollapsable {
|
2000-02-25 12:06:15 +00:00
|
|
|
public:
|
|
|
|
///
|
|
|
|
InsetERT(Buffer *);
|
|
|
|
///
|
|
|
|
~InsetERT() {}
|
|
|
|
///
|
2000-02-25 16:42:21 +00:00
|
|
|
Inset * Clone() const;
|
2000-02-25 12:06:15 +00:00
|
|
|
///
|
|
|
|
void Write(ostream &) const;
|
|
|
|
///
|
2000-03-08 13:52:57 +00:00
|
|
|
const char * EditMessage() const { return _("Opened ERT Inset");}
|
2000-02-25 12:06:15 +00:00
|
|
|
///
|
2000-03-08 13:52:57 +00:00
|
|
|
bool InsertInset(BufferView *, Inset *);
|
2000-02-25 12:06:15 +00:00
|
|
|
///
|
2000-03-08 13:52:57 +00:00
|
|
|
void SetFont(BufferView *, LyXFont const &, bool toggleall = false);
|
2000-02-25 12:06:15 +00:00
|
|
|
///
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|