]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
Add margin to paragraph dialog.
[lyx.git] / src / lyxtext.h
index 897808cca860789ac90c57995140309b4efb7b67..0adb4b29510ad62ea81ae50935e5b920357b79a8 100644 (file)
@@ -139,10 +139,9 @@ public:
        /// This method uses the BufferView CoordCache to locate the
        /// paragraph. The y-coodinate is allowed to be off-screen and
        /// the CoordCache will be automatically updated if needed. This is
-       /// the reason why we need a non const BufferView and why this
-       /// method is non-const.
+       /// the reason why we need a non const BufferView.
        /// FIXME: move to TextMetrics.
-       pit_type getPitNearY(BufferView & bv, int y);
+       pit_type getPitNearY(BufferView & bv, int y) const;
 
        /** Find the word under \c from in the relative location
         *  defined by \c word_location.
@@ -192,6 +191,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.
@@ -284,6 +285,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);
 
        ///