*/
int anchor_row_offset_;
public:
+ /// update all cached row positions
+ void updateRowPositions();
/// get the y coord. of the top of the screen (relative to doc start)
int top_y() const;
/// set the y coord. of the top of the screen (relative to doc start)
void setCurrentFont();
///
- bool isBoundary(Buffer const *, Paragraph * par,
+ bool isBoundary(Buffer const *, Paragraph const & par,
lyx::pos_type pos) const;
///
- bool isBoundary(Buffer const *, Paragraph * par,
+ bool isBoundary(Buffer const *, Paragraph const & par,
lyx::pos_type pos,
LyXFont const & font) const;
///
void copySelection();
///
- void pasteSelection();
- ///
- void copyEnvironmentType();
- ///
- void pasteEnvironmentType();
+ void pasteSelection(size_t sel_index = 0);
/** the DTP switches for paragraphs. LyX will store the top settings
always in the first physical paragraph, the bottom settings in the
void checkParagraph(ParagraphList::iterator pit, lyx::pos_type pos);
///
int workWidth() const;
- ///
- int workWidth(Inset * inset) const;
+ /// returns width of row containing inset
+ int workWidth(Inset const * inset) const;
///
void computeBidiTables(Buffer const *, RowList::iterator row) const;
*/
void redoDrawingOfParagraph(LyXCursor const & cursor);
- /** Copybuffer for copy environment type.
- Asger has learned that this should be a buffer-property instead
- Lgb has learned that 'char' is a lousy type for non-characters
- */
- string copylayouttype;
-
/// removes the row and reset the touched counters
void removeRow(RowList::iterator rit);
// special owner functions
///
ParagraphList & ownerParagraphs() const;
- //
- void ownerParagraph(Paragraph *) const;
- // set it searching first for the right owner using the paragraph id
- void ownerParagraph(int id, Paragraph *) const;
/// return true if this is owned by an inset.
bool isInInset() const;