X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FRow.h;h=01c62cf266a30064a62f20b4bca8a25c2d73185c;hb=0b54650f0e7f1eae39f93444cac6c8525811975b;hp=e45fa4e8c99e4f8d5857a95c9e68a830847b0917;hpb=0f18bb54cc64ce5283df172eb1d6e619b3b7cd7f;p=lyx.git diff --git a/src/Row.h b/src/Row.h index e45fa4e8c9..01c62cf266 100644 --- a/src/Row.h +++ b/src/Row.h @@ -163,18 +163,18 @@ public: bool changed() const { return changed_; } /// void changed(bool c) const { changed_ = c; } - /// Set the selection begin and end. - /** - * This is const because we update the selection status only at draw() - * time. - */ - void setSelection(pos_type sel_beg, pos_type sel_end) const; /// bool selection() const; - /// Set the selection begin and end and whether the left and/or right - /// margins are selected. + /** + * Set the selection begin and end and whether the left and/or + * right margins are selected. + * This is const because we update the selection status only at + * draw() time. + */ void setSelectionAndMargins(DocIterator const & beg, DocIterator const & end) const; + /// no selection on this row. + void clearSelectionAndMargins() const; /// void pit(pit_type p) { pit_ = p; } @@ -198,9 +198,9 @@ public: bool flushed() const { return flushed_; } /// - Dimension const & dimension() const { return dim_; } + Dimension const & dim() const { return dim_; } /// - Dimension & dimension() { return dim_; } + Dimension & dim() { return dim_; } /// int height() const { return dim_.height(); } /// The width of the row, including the left margin, but not the right one. @@ -323,6 +323,8 @@ private: */ bool isMarginSelected(bool left, DocIterator const & beg, DocIterator const & end) const; + /// Set the selection begin and end. + void setSelection(pos_type sel_beg, pos_type sel_end) const; /** * Returns true if a char or string with font \c f and change