]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
BufferParams.cpp: fix bug 3568:
[lyx.git] / src / Cursor.h
index 13ca0e7cdd3ff93eef1ebbd434ddea057a306a72..9c98fa3d2c6cb2ccd7563607cf8aaaf9c80e154a 100644 (file)
@@ -25,7 +25,7 @@ class Buffer;
 class BufferView;
 class FuncStatus;
 class FuncRequest;
-class LyXFont;
+class Font;
 class Row;
 
 // these should go
@@ -47,9 +47,9 @@ public:
        /// get the resut of the last dispatch
        DispatchResult result() const;
        /// add a new cursor slice
-       void push(InsetBase & inset);
+       void push(Inset & inset);
        /// add a new cursor slice, place cursor on left end
-       void pushLeft(InsetBase & inset);
+       void pushLeft(Inset & inset);
        /// pop one level off the cursor
        void pop();
        /// pop one slice off the cursor stack and go left
@@ -57,7 +57,7 @@ public:
        /// pop one slice off the cursor stack and go right
        bool popRight();
        /// make sure we are outside of given inset
-       void leaveInset(InsetBase const & inset);
+       void leaveInset(Inset const & inset);
        /// sets cursor part
        void setCursor(DocIterator const & it);
 
@@ -115,7 +115,7 @@ public:
        bool posRight();
 
        /// insert an inset
-       void insert(InsetBase *);
+       void insert(Inset *);
        /// insert a single char
        void insert(char_type c);
        /// insert a string
@@ -146,7 +146,7 @@ public:
        int currentMode();
        /// reset cursor bottom to the beginning of the given inset
        // (sort of 'chroot' environment...)
-       void reset(InsetBase &);
+       void reset(Inset &);
        /// for spellchecking
        void replaceWord(std::string const & replacestring);
        /**
@@ -272,7 +272,7 @@ public:
        // selection in given cell of atom
        void handleNest(MathAtom const & at, int cell = 0);
        ///
-       bool isInside(InsetBase const *);
+       bool isInside(Inset const *);
 
        /// make sure cursor position is valid
        void normalize();
@@ -306,7 +306,7 @@ public:
        ///
        Encoding const * getEncoding() const;
        /// font at cursor position
-       LyXFont getFont() const;
+       Font getFont() const;
        ///
        bool isRTL() const;
 };