]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
add and LyXText::undoSpan to compute the influence of a layout change.
[lyx.git] / src / lyxtext.h
index 799d02ed23e1f49f4f151391096bce7e35c87c26..949566c3e04f633500e58e9d714c3f08be4ba61c 100644 (file)
@@ -182,8 +182,6 @@ public:
        /// reject selected change
        void rejectChange();
 
-       /// re-computes the cached coordinates in the cursor
-       void redoCursor();
        ///
        void setCursor(ParagraphList::iterator pit, lyx::pos_type pos);
        /// returns true if par was empty and was removed
@@ -395,6 +393,19 @@ public:
        /// returns whether we've seen our usual 'end' marker
        bool read(Buffer const & buf, LyXLex & lex);
 
+       ///
+       int ascent() const;
+       ///
+       int descent() const;
+       ///
+       int cursorX() const;
+       ///
+       int cursorY() const;
+       ///
+       int cursorX(LyXCursor const & cursor) const;
+       ///
+       int cursorY(LyXCursor const & cursor) const;
+
 public:
        ///
        int height;
@@ -430,12 +441,12 @@ public:
 
 
 private:
+       /// return past-the-last paragraph influenced by a layout
+       /// change on pit
+       ParagraphList::iterator undoSpan(ParagraphList::iterator pit);
+       
        /// rebreaks the given par
        void redoParagraphInternal(ParagraphList::iterator pit);
-
-       ///
-       float getCursorX(ParagraphList::iterator pit,
-            Row const & row, lyx::pos_type pos, bool boundary) const;
        /// used in setlayout
        void makeFontEntriesLayoutSpecific(BufferParams const &, Paragraph & par);