]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtext.h
more not-so-useful stuff removed
[lyx.git] / src / lyxtext.h
index 978d59026bf647e25e881b0f655ee5d13714f0f2..dcca30446174147385610867f380d832109442b0 100644 (file)
@@ -99,8 +99,6 @@ public:
                         lyx::pos_type pos,
                         LyXFont const & font, bool toggleall);
 
-       ///
-       void breakAgainOneRow(RowList::iterator rit);
        /// what you expect when pressing <enter> at cursor position
        void breakParagraph(ParagraphList & paragraphs, char keep_layout = 0);
 
@@ -131,15 +129,15 @@ public:
          */
        void setFont(LyXFont const &, bool toggleall = false);
 
-       /** deletes and inserts again all paragaphs between the cursor
-         and the specified par. The Cursor is needed to set the refreshing
-         parameters.
-         This function is needed after SetLayout and SetFont etc.
-         */
-       void redoParagraphs(LyXCursor const & cursor,
-                           ParagraphList::iterator endpit);
-       ///
+       /// rebreaks all paragaphs between the given pars.
+       void redoParagraphs(ParagraphList::iterator begin,
+                           ParagraphList::iterator end);
+       /// rebreaks the given par
+       void redoParagraph(ParagraphList::iterator pit);
+       /// rebreaks the cursor par
        void redoParagraph();
+       /// returns first row belongin to some par
+       RowList::iterator firstRow(ParagraphList::iterator pit);
 
        ///
        void toggleFree(LyXFont const &, bool toggleall = false);
@@ -147,12 +145,6 @@ public:
        ///
        string getStringToIndex();
 
-       /** recalculates the heights of all previous rows of the
-           specified paragraph.  needed, if the last characters font
-           has changed.
-           */
-       void redoHeightOfParagraph();
-
        /** insert a character, moves all the following breaks in the
          same Paragraph one to the right and make a little rebreak
          */
@@ -167,12 +159,6 @@ public:
        /// compute text metrics
        void metrics(MetricsInfo & mi, Dimension & dim);
 
-       /// clear any pending paints
-       void clearPaint();
-
-       /// submit repaint request
-       void postPaint();
-
        ///
        InsetOld::RESULT dispatch(FuncRequest const & cmd);
 
@@ -182,16 +168,6 @@ public:
 
        friend class LyXScreen;
 
-       /**
-        * Return the status. This represents what repaints are
-        * pending after some operation (e.g. inserting a char).
-        */
-       bool needRefresh() const;
-
-private:
-       // do we need a refresh?
-       bool need_refresh_;
-
 public:
        /// only the top-level LyXText has this non-zero
        BufferView * bv_owner;
@@ -388,18 +364,9 @@ public:
                       bool same_content);
        ///
        void gotoInset(InsetOld::Code code, bool same_content);
-       ///
-
-       /* for the greater insets */
 
-       /// returns false if inset wasn't found
-       bool updateInset(InsetOld *);
-       ///
-       void checkParagraph(ParagraphList::iterator pit, lyx::pos_type pos);
        ///
        int workWidth() const;
-       /// returns width of row containing inset
-       int workWidth(InsetOld const * inset) const;
 
        ///
        void computeBidiTables(Buffer const *, RowList::iterator row) const;