mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
change tracking:
* paragraph.h: remove setChar(...); all text changes must be expressed as erase and insert operations in order to support change tracking git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15440 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d589434ce3
commit
c908d743a5
@ -1502,12 +1502,6 @@ void Paragraph::clearContents()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Paragraph::setChar(pos_type pos, value_type c)
|
|
||||||
{
|
|
||||||
text_[pos] = c;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
ParagraphParameters & Paragraph::params()
|
ParagraphParameters & Paragraph::params()
|
||||||
{
|
{
|
||||||
return pimpl_->params;
|
return pimpl_->params;
|
||||||
|
@ -280,8 +280,6 @@ public:
|
|||||||
value_type getChar(pos_type pos) const { return text_[pos]; }
|
value_type getChar(pos_type pos) const { return text_[pos]; }
|
||||||
/// Get the char, but mirror all bracket characters if it is right-to-left
|
/// Get the char, but mirror all bracket characters if it is right-to-left
|
||||||
value_type getUChar(BufferParams const &, pos_type pos) const;
|
value_type getUChar(BufferParams const &, pos_type pos) const;
|
||||||
/// The position must already exist.
|
|
||||||
void setChar(pos_type pos, value_type c);
|
|
||||||
/// pos <= size() (there is a dummy font change at the end of each par)
|
/// pos <= size() (there is a dummy font change at the end of each par)
|
||||||
void setFont(pos_type pos, LyXFont const & font);
|
void setFont(pos_type pos, LyXFont const & font);
|
||||||
/// Returns the height of the highest font in range
|
/// Returns the height of the highest font in range
|
||||||
|
@ -1624,10 +1624,11 @@ void LyXText::changeCase(LCursor & cur, LyXText::TextCase action)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef WITH_WARNINGS
|
|
||||||
#warning changes
|
// FIXME: change tracking (MG)
|
||||||
#endif
|
// sorry but we are no longer allowed to set a single character directly
|
||||||
pars_[pit].setChar(pos, c);
|
// we have to rewrite this method in terms of erase&insert operations
|
||||||
|
//pars_[pit].setChar(pos, c);
|
||||||
++pos;
|
++pos;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user