X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.h;h=cf53faa13282407acd05c6f8278ea3bfed52958d;hb=c69da75dfca389b219e269f9d5668215f398c24b;hp=1501250a31fe13381c40efc89c4b1fb767835497;hpb=5e396c3f0cc16b65db6c1623b249b75002c5edbf;p=features.git diff --git a/src/TextMetrics.h b/src/TextMetrics.h index 1501250a31..cf53faa132 100644 --- a/src/TextMetrics.h +++ b/src/TextMetrics.h @@ -148,13 +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;