]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
The bug-fix in revision 16531 introduced another bug. This is the right fix. I did...
[lyx.git] / src / BufferView.h
index 6a1428e13342cf643b9c4ce3efd85a87629886aa..b57d348048c2b33b87837a671d95369507584c14 100644 (file)
@@ -40,16 +40,12 @@ class DocIterator;
 class FuncRequest;
 class FuncStatus;
 class Intl;
-class Language;
 class LCursor;
 class LyXText;
 class ParIterator;
 class ParagraphMetrics;
 class ViewMetricsInfo;
 
-/// A map from paragraph index number to paragraph metrics
-typedef std::map<pit_type, ParagraphMetrics> ParMetricsCache;
-
 /// Scrollbar Parameters.
 struct ScrollbarParameters
 {
@@ -188,6 +184,9 @@ public:
        /// sets cursor.
        /// This will also open all relevant collapsable insets.
        void setCursor(DocIterator const &);
+       /// Check deleteEmptyParagraphMechanism and update metrics if needed.
+       /// \retval true if an update was needed.
+       bool checkDepm(LCursor & cur, LCursor & old);
        /// sets cursor.
        /// This is used when handling LFUN_MOUSE_PRESS.
        bool mouseSetCursor(LCursor & cur);