]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
fix crash when collapsing ert with cursor inside
[lyx.git] / src / lyxtext.h
index b95d96f1813f9f6e8348b7b39cf83bed6e5d1cf5..a8563e083ec5ad89db7279556b4f7219592967ba 100644 (file)
@@ -60,6 +60,8 @@ public:
        ///
        LyXFont getFont(Paragraph const & par, pos_type pos) const;
        ///
+       void applyOuterFont(LyXFont &) const;
+       ///
        LyXFont getLayoutFont(pit_type pit) const;
        ///
        LyXFont getLabelFont(Paragraph const & par) const;
@@ -255,24 +257,12 @@ public:
        /// needed to insert the selection
        void insertStringAsParagraphs(LCursor & cur, std::string const & str);
 
-       /// Find next inset of some specified type.
-       bool gotoNextInset(LCursor & cur,
-               std::vector<InsetBase_code> const & codes,
-               std::string const & contents = std::string());
-       ///
-       void gotoInset(LCursor & cur,
-               std::vector<InsetBase_code> const & codes, bool same_content);
-       ///
-       void gotoInset(LCursor & cur, InsetBase_code code, bool same_content);
-
        /// current text width
        int width() const;
 
        /// current text heigth
        int height() const;
 
-       /// updates all counters
-       void updateCounters();
        /// Returns an inset if inset was hit, or 0 if not.
        InsetBase * checkInsetHit(int x, int y) const;
 
@@ -348,7 +338,7 @@ public:
        LyXFont current_font;
        /// the current font
        LyXFont real_current_font;
-       /// our buffer's default layout font
+       /// our buffer's default layout font. This is textclass specific
        LyXFont defaultfont_;
        ///
        int background_color_;
@@ -361,7 +351,8 @@ public:
        ///
        ParagraphList pars_;
 
-       /// our 'outermost' Font
+       /// our 'outermost' font. This is handed down from the surrounding
+       // inset through the pi/mi parameter (pi.base.font)
        LyXFont font_;
 
        ///
@@ -384,8 +375,6 @@ private:
        /// delete double space or empty paragraphs around old cursor
        bool deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old);
 
-       ///
-       void setCounter(Buffer const &, pit_type pit);
        ///
        void deleteWordForward(LCursor & cur);
        ///
@@ -412,9 +401,4 @@ private:
 /// return the default height of a row in pixels, considering font zoom
 int defaultRowHeight();
 
-///
-std::string expandLabel(LyXTextClass const & textclass,
-               LyXLayout_ptr const & layout, bool appendix);
-
-
 #endif // LYXTEXT_H