]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
Fix bug 2474; partial fix for 1777. Added last_reference_ member to QRef class and...
[lyx.git] / src / lyxtext.h
index e1c4dc378b20708439e0c999f6d8d20fbd7a1dcf..49a4c97a3ec1557c289ce07390ef4d18eed5e2b9 100644 (file)
@@ -37,7 +37,6 @@ class FuncStatus;
 class InsetBase;
 class LColor_color;
 class LCursor;
-class LyXTextClass;
 class PainterInfo;
 class Row;
 class RowMetrics;
@@ -63,11 +62,8 @@ public:
        ///
        void setCharFont(Buffer const & buffer, pit_type pit, pos_type pos,
                LyXFont const & font);
-       ///
-       void setCharFont(Buffer const & buffer, pit_type pit, pos_type pos,
-               LyXFont const & font, bool toggleall);
 
-       /// what you expect when pressing <enter> at cursor position
+       /// what you expect when pressing \<enter\> at cursor position
        void breakParagraph(LCursor & cur, bool keep_layout = false);
 
        /// set layout over selection
@@ -191,6 +187,8 @@ public:
        \retval inset is non-null if the cursor is positionned inside
        */
        /// FIXME: move to TextMetrics.
+       /// FIXME: cleanup to use BufferView::getCoveringInset() and
+       /// setCursorFromCoordinates() instead of checkInsetHit().
        InsetBase * editXY(LCursor & cur, int x, int y);
        
        /// Move cursor one line up.
@@ -283,6 +281,9 @@ public:
        void insertStringAsParagraphs(LCursor & cur, docstring const & str);
 
        /// Returns an inset if inset was hit, or 0 if not.
+       /// \warning This method is not recursive! It will return the
+       /// outermost inset within this LyXText.
+       /// \sa BufferView::getCoveringInset() to get the innermost inset.
        InsetBase * checkInsetHit(BufferView &, int x, int y);
 
        ///