void InsetText::WriteParagraphData(Buffer const * buf, ostream & os) const
{
- par->writeFile(buf, os, buf->params, 0, 0);
+ par->writeFile(buf, os, buf->params, 0);
}
break;
case LFUN_PASTESELECTION:
{
- string clip(bv->getClipboard());
+ string const clip(bv->getClipboard());
if (clip.empty())
break;
LyXParagraph * p = par;
unsigned int lines = 0;
- string tmp;
while (p) {
- tmp = buf->asciiParagraph(p, linelen);
+ string const tmp = buf->asciiParagraph(p, linelen);
lines += countChar(tmp, '\n');
os << tmp;
p = p->next();
{
LyXParagraph * p = par;
unsigned int lines = 0;
- int desc=0;
+ int desc = 0;
string tmp;
while (p) {
- buf->SimpleDocBookOnePar(os,tmp,p,desc,0);
+ buf->SimpleDocBookOnePar(os, tmp, p, desc, 0);
p = p->next();
}
void InsetText::Validate(LaTeXFeatures & features) const
{
LyXParagraph * p = par;
- while(p) {
+ while (p) {
p->validate(features);
p = p->next();
}
return moveRightIntern(bv, false, activate_inset, selecting);
}
+
UpdatableInset::RESULT
InsetText::moveLeft(BufferView * bv, bool activate_inset, bool selecting)
{
return TEXT(bv)->cursor.par();
}
+
bool InsetText::cboundary(BufferView * bv) const
{
return TEXT(bv)->cursor.boundary();
}
}
+
bool InsetText::nodraw() const
{
if (the_locking_inset)
return UpdatableInset::nodraw();
}
+
int InsetText::scroll(bool recursive) const
{
int sx = UpdatableInset::scroll(false);
return sx;
}
+
bool InsetText::doClearArea() const
{
return !locked || (need_update & (FULL|INIT));