}
+Row & LCursor::textRow()
+{
+ BOOST_ASSERT(!paragraph().rows().empty());
+ return paragraph().getRow(pos(), boundary());
+}
+
+
+Row const & LCursor::textRow() const
+{
+ BOOST_ASSERT(!paragraph().rows().empty());
+ return paragraph().getRow(pos(), boundary());
+}
+
+
void LCursor::resetAnchor()
{
anchor_ = *this;
bool & macromode() { return macromode_; }
/// returns x,y position
void getPos(int & x, int & y) const;
+ /// the row in the paragraph we're in
+ Row & textRow();
+ /// the row in the paragraph we're in
+ Row const & textRow() const;
//
// common part
}
-Row & DocIterator::textRow()
-{
- BOOST_ASSERT(!paragraph().rows().empty());
- return paragraph().getRow(pos(), boundary_);
-}
-
-
-Row const & DocIterator::textRow() const
-{
- BOOST_ASSERT(!paragraph().rows().empty());
- return paragraph().getRow(pos(), boundary_);
-}
-
-
pit_type DocIterator::lastpit() const
{
return inMathed() ? 0 : text()->paragraphs().size() - 1;
Paragraph & paragraph();
/// the paragraph we're in
Paragraph const & paragraph() const;
- /// the row in the paragraph we're in
- Row & textRow();
- /// the row in the paragraph we're in
- Row const & textRow() const;
///
LyXText * text();
///