if (dth != params().depth()) {
if (params().depth() > dth) {
while (params().depth() > dth) {
- os << "\n\\begin_deeper ";
+ os << "\n\\begin_deeper";
++dth;
}
} else {
while (params().depth() < dth) {
- os << "\n\\end_deeper ";
+ os << "\n\\end_deeper";
--dth;
}
}
} else {
os << "\n\\begin_inset ";
inset->write(buf, os);
- os << "\n\\end_inset \n\n";
+ os << "\n\\end_inset\n\n";
column = 0;
}
}
break;
case '\\':
- os << "\n\\backslash \n";
+ os << "\n\\backslash\n";
column = 0;
break;
case '.':
OutputParams rp = runparams;
rp.moving_arg = moving_arg;
rp.free_spacing = style->free_spacing;
- rp.lang = font.language()->babel();
+ rp.local_language = font.language()->babel();
rp.intitle = style->intitle;
pimpl_->simpleTeXSpecialChars(buf, bparams,
os, texrow, rp,
bool Paragraph::isHfill(pos_type pos) const
{
- return
- isInset(pos) && getInset(pos)->lyxCode() == InsetBase::HFILL_CODE;
+ return isInset(pos)
+ && getInset(pos)->lyxCode() == InsetBase::HFILL_CODE;
}
bool Paragraph::isNewline(pos_type pos) const
{
- return
- isInset(pos) && getInset(pos)->lyxCode() == InsetBase::NEWLINE_CODE;
+ return isInset(pos)
+ && getInset(pos)->lyxCode() == InsetBase::NEWLINE_CODE;
}
}
-Paragraph::value_type Paragraph::getChar(pos_type pos) const
-{
- // This is in the critical path!
- pos_type const siz = text_.size();
-
- BOOST_ASSERT(0 <= pos);
- BOOST_ASSERT(pos <= siz);
-
- if (pos == siz) {
- lyxerr << "getChar() on pos " << pos << " in par id "
- << id() << " of size " << siz
- << " is a bit silly !" << endl;
- BOOST_ASSERT(false);
- }
-
- return text_[pos];
-}
-
-
int Paragraph::id() const
{
return pimpl_->id_;