int actcell = 0;
int actpos = 0;
int currlinelen = 0;
- long fpos = 0;
+ int fpos = 0;
bool ref_printed = false;
ofstream ofs(fname.c_str());
unsigned int linelen) const
{
ostringstream buffer;
- LyXFont font1, font2;
+ LyXFont font1;
+ LyXFont font2;
Inset const * inset;
char c;
LyXParagraph::footnote_flag footnoteflag = LyXParagraph::NO_FOOTNOTE;
char depth = 0;
- string tmp;
- LyXParagraph::size_type i;
- unsigned int j;
int ltype = 0;
int ltype_depth = 0;
unsigned int currlinelen = 0;
if (footnoteflag != par->footnoteflag) {
footnoteflag = par->footnoteflag;
if (footnoteflag) {
- j = strlen(string_footnotekinds[par->footnotekind])+4;
+ size_t const j = strlen(string_footnotekinds[par->footnotekind]) + 4;
if ((linelen > 0) &&
((currlinelen + j) > linelen)) {
buffer << "\n";
currlinelen = 0;
}
- buffer <<
- "([" <<
- string_footnotekinds[par->footnotekind] <<
- "] ";
+ buffer << "(["
+ << string_footnotekinds[par->footnotekind]
+ << "] ";
currlinelen += j;
}
}
}
/* First write the layout */
- tmp = textclasslist.NameOfLayout(params.textclass, par->layout);
+ string const tmp = textclasslist.NameOfLayout(params.textclass, par->layout);
if (tmp == "Itemize") {
ltype = 1;
ltype_depth = depth+1;
}
font1 = LyXFont(LyXFont::ALL_INHERIT, params.language_info);
- for (i = 0; i < par->size(); ++i) {
+ for (LyXParagraph::size_type i = 0; i < par->size(); ++i) {
if (!i && !footnoteflag && !noparbreak){
buffer << "\n\n";
- for(j = 0; j < depth; ++j)
+ for(char j = 0; j < depth; ++j)
buffer << " ";
currlinelen = depth * 2;
switch(ltype) {
break;
}
if (ltype_depth > depth) {
- for(j = ltype_depth - 1; j > depth; --j)
+ for(char j = ltype_depth - 1; j > depth; --j)
buffer << " ";
currlinelen += (ltype_depth-depth)*2;
}
break;
case LyXParagraph::META_NEWLINE:
buffer << "\n";
- for(j = 0; j < depth; ++j)
+ for(char j = 0; j < depth; ++j)
buffer << " ";
currlinelen = depth * 2;
if (ltype_depth > depth) {
- for(j = ltype_depth;
+ for(char j = ltype_depth;
j > depth; --j)
buffer << " ";
currlinelen += (ltype_depth - depth) * 2;
(c == ' ') && ((i + 2) < par->size()))
{
buffer << "\n";
- for(j = 0; j < depth; ++j)
+ for(char j = 0; j < depth; ++j)
buffer << " ";
currlinelen = depth * 2;
if (ltype_depth > depth) {
- for(j = ltype_depth;
+ for(char j = ltype_depth;
j > depth; --j)
buffer << " ";
currlinelen += (ltype_depth-depth)*2;