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);
*/
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);
///
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
*/
/// 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);
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;
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;