]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
Remove unused font variable which caused a warning.
[lyx.git] / src / lyxtext.h
index 9cf1d7859f8d337bc8afdd2d68aa855c620f6997..0cb33eac0d73f6a629fb9769fd45408ba5dc0fbb 100644 (file)
@@ -22,6 +22,7 @@
 #include "layout.h"
 #include "lyxrow.h"
 #include "vspace.h"
+#include "LColor.h"
 
 class Buffer;
 class BufferParams;
@@ -63,7 +64,7 @@ public:
        /// Destructor
        ~LyXText();
 
-       void init(BufferView *);
+       void init(BufferView *, bool reinit = false);
        ///
        mutable int number_of_rows;
        ///
@@ -268,9 +269,12 @@ public:
        string const selectionAsString(Buffer const *) const;
        
        /// select the word we need depending on word_location
-       void getWord(LyXCursor & from, LyXCursor & to, word_location) const;
+       void getWord(LyXCursor & from, LyXCursor & to, 
+                    word_location const) const;
        /// just selects the word the cursor is in
-       void selectWord(BufferView *);
+       void selectWord(BufferView *, word_location const = WHOLE_WORD);
+       /// returns the inset at cursor (if it exists), 0 otherwise
+       Inset * getInset() const;
 
        /** 'selects" the next word, where the cursor is not in 
         and returns this word as string. THe cursor will be moved 
@@ -349,7 +353,8 @@ public:
        ///
        void deleteLineForward(BufferView *);
        ///
-       bool selectWordWhenUnderCursor(BufferView *);
+       bool selectWordWhenUnderCursor(BufferView *, 
+                                      word_location const = WHOLE_WORD);
        ///
        enum TextCase {
                ///
@@ -377,7 +382,7 @@ public:
                           Row * row_ptr, int y, bool cleared=false);
 
        /// 
-       void openStuff(BufferView *);
+       void toggleInset(BufferView *);
        ///
        void cutSelection(BufferView *, bool = true);
        ///
@@ -388,14 +393,6 @@ public:
        void copyEnvironmentType();
        ///
        void pasteEnvironmentType(BufferView *);
-       ///
-       void insertFootnote();
-       ///
-       void insertMarginpar();
-       ///
-       void insertFigure();
-       ///
-       void insertTabular();
 
        /** the DTP switches for paragraphs. LyX will store the top settings
         always in the first physical paragraph, the bottom settings in the
@@ -602,6 +599,8 @@ private:
          */
        bool hfillExpansion(Buffer const *, Row const * row_ptr,
                            Paragraph::size_type pos) const;
+       /// 
+       LColor::color backgroundColor();
 
 
        ///