#ifndef INSETTEXT_H
#define INSETTEXT_H
-#include "InsetBase.h"
-#include "RowList_fwd.h"
-#include "LyXFont.h"
-#include "LyXText.h"
+#include "Inset.h"
+#include "Font.h"
+#include "Text.h"
#include "support/types.h"
A text inset is like a TeX box to write full text
(including styles and other insets) in a given space.
*/
-class InsetText : public InsetBase {
+class InsetText : public Inset {
public:
///
explicit InsetText(BufferParams const &);
///
Code lyxCode() const { return TEXT_CODE; }
///
- void setText(docstring const &, LyXFont const &, bool trackChanges);
+ void setText(docstring const &, Font const &, bool trackChanges);
///
void setAutoBreakRows(bool);
///
///
bool showInsetDialog(BufferView *) const;
///
- LyXText * getText(int i) const {
- return (i == 0) ? const_cast<LyXText*>(&text_) : 0;
+ Text * getText(int i) const {
+ return (i == 0) ? const_cast<Text*>(&text_) : 0;
}
///
virtual bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
///
void edit(Cursor & cur, bool left);
///
- InsetBase * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y);
/// number of cells in this inset
size_t nargs() const { return 1; }
private:
///
- virtual std::auto_ptr<InsetBase> doClone() const;
+ virtual std::auto_ptr<Inset> doClone() const;
///
void init();
bool wide_inset_;
public:
///
- mutable LyXText text_;
+ mutable Text text_;
///
- mutable LyXFont font_;
+ mutable Font font_;
///
static int border_;
};