]> git.lyx.org Git - features.git/blobdiff - src/TextMetrics.h
Fix pasting as LaTeX in documents with no modules
[features.git] / src / TextMetrics.h
index 1666cd014b775ba000d8a1672a51f71bb41723a8..cf53faa13282407acd05c6f8278ea3bfed52958d 100644 (file)
@@ -148,15 +148,11 @@ private:
        /// the minimum space a manual label needs on the screen in pixels
        int labelFill(Row const & row) const;
 
-       /// FIXME??
-       int labelEnd(pit_type const pit) const;
-
+       // Turn paragraph oh index \c pit into a single row
        Row tokenizeParagraph(pit_type pit) const;
 
-       /// sets row.end to the pos value *after* which a row should break.
-       /// for example, the pos after which isNewLine(pos) == true
-       /// \return true when another row is required (after a newline)
-       bool breakRow(Row & row, int right_margin) const;
+       // Break the row produced by tokenizeParagraph() into a list of rows.
+       RowList breakParagraph(Row const & row) const;
 
        // Expands the alignment of row \param row in paragraph \param par
        LyXAlignment getAlign(Paragraph const & par, Row const & row) const;