]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.h
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied...
[lyx.git] / src / insets / InsetText.h
index f8e64960a92879be20ca7af16a90b7b6cfda5da4..90b7c0306028fdc7f447bf19d9e63dd9d945858a 100644 (file)
 #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"
 
@@ -37,7 +36,7 @@ class ParagraphList;
  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 &);
@@ -81,7 +80,7 @@ public:
        ///
        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);
        ///
@@ -95,8 +94,8 @@ public:
        ///
        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;
@@ -117,7 +116,7 @@ public:
        ///
        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; }
@@ -144,7 +143,7 @@ protected:
 
 private:
        ///
-       virtual std::auto_ptr<InsetBase> doClone() const;
+       virtual std::auto_ptr<Inset> doClone() const;
        ///
        void init();
 
@@ -160,9 +159,9 @@ private:
        bool wide_inset_;
 public:
        ///
-       mutable LyXText text_;
+       mutable Text text_;
        ///
-       mutable LyXFont font_;
+       mutable Font font_;
        ///
        static int border_;
 };