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
|
|
|
///
|
2000-04-04 00:19:15 +00:00
|
|
|
char const * EditMessage() const;
|
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
|
|
|
///
|
2000-03-24 13:24:58 +00:00
|
|
|
void Edit(BufferView *, int, int, unsigned int);
|
|
|
|
///
|
2000-02-25 12:06:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|