X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.h;h=cf53faa13282407acd05c6f8278ea3bfed52958d;hb=90ea50811191dc891d2b3407c01527f1f2d745dd;hp=1666cd014b775ba000d8a1672a51f71bb41723a8;hpb=f4d3702d4d36569851065eed2e0ca88431bd24a2;p=features.git diff --git a/src/TextMetrics.h b/src/TextMetrics.h index 1666cd014b..cf53faa132 100644 --- a/src/TextMetrics.h +++ b/src/TextMetrics.h @@ -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;