extern string bibitemWidest(Buffer const *);
// this is a minibuffer
-static char minibuffer_char;
-static LyXFont minibuffer_font;
-static Inset * minibuffer_inset;
+
+namespace {
+
+char minibuffer_char;
+LyXFont minibuffer_font;
+Inset * minibuffer_inset;
+
+} // namespace anon
extern BufferView * current_view;
}
os << "\\align " << string_align[h] << " ";
}
+#ifndef NO_PEXTRA
if (params.pextraType() != PEXTRA_NONE) {
os << "\\pextra_type " << params.pextraType();
if (params.pextraType() == PEXTRA_MINIPAGE) {
}
os << '\n';
}
+#endif
#ifndef NEW_INSETS
} else {
// Dummy layout. This means that a footnote ended.
(*cit).inset->Validate(features);
}
+#ifndef NO_PEXTRA
if (params.pextraType() == PEXTRA_INDENT)
features.LyXParagraphIndent = true;
if (params.pextraType() == PEXTRA_FLOATFLT)
features.floatflt = true;
+#endif
#ifndef NEW_INSETS
if (layout.needprotect
&& next_ && next_->footnoteflag != LyXParagraph::NO_FOOTNOTE)
features.NeedLyXFootnoteCode = true;
#endif
+#ifndef NO_PEXTRA
if (bparams.paragraph_separation == BufferParams::PARSEP_INDENT
&& params.pextraType() == LyXParagraph::PEXTRA_MINIPAGE)
features.NeedLyXMinipageIndent = true;
+#endif
#ifndef NEW_INSETS
if (footnoteflag != NO_FOOTNOTE && footnotekind == ALGORITHM)
features.algorithm = true;
par->layout = new_layout;
+#ifndef NO_PEXTRA
if (par->params.pextraType() == PEXTRA_NONE) {
+#endif
if (par->previous()) {
#ifndef NEW_INSETS
ppar = par->previous()->FirstPhysicalPar();
npar = npar->next();
#endif
}
+#ifndef NO_PEXTRA
if (ppar && (ppar->params.pextraType() != PEXTRA_NONE)) {
string p1 = ppar->params.pextraWidth();
string p2 = ppar->params.pextraWidthp();
p1, p2);
}
}
+#endif
}
par->params.spaceBottom(VSpace(VSpace::NONE));
par->params.spacing(Spacing(Spacing::Default));
+#ifndef NO_PEXTRA
if (par->params.pextraType() == PEXTRA_NONE) {
+#endif
if (par->previous()) {
#ifndef NEW_INSETS
ppar = par->previous()->FirstPhysicalPar();
npar = npar->next();
#endif
}
+#ifndef NO_PEXTRA
if (ppar && (ppar->params.pextraType() != PEXTRA_NONE)) {
string const p1 = ppar->params.pextraWidth();
string const p2 = ppar->params.pextraWidthp();
p1, p2);
}
}
+#endif
}
if (par
&& (par->layout != layout
|| par->params.depth() != params.depth()
- || par->params.pextraType() != params.pextraType()))
+#ifndef NO_PEXTRA
+ || par->params.pextraType() != params.pextraType()
+#endif
+ ))
break;
default:
// we don't need it for the last paragraph!!!
#endif
if (textclasslist.Style(bparams.textclass,
par->layout).isEnvironment()
- || par->params.pextraType() != PEXTRA_NONE) {
+#ifndef NO_PEXTRA
+ || par->params.pextraType() != PEXTRA_NONE
+#endif
+ ) {
par = par->TeXEnvironment(buf, bparams,
os, texrow
#ifndef NEW_INSETS
#endif
)
{
+#ifndef NO_PEXTRA
bool eindent_open = false;
+#endif
#ifndef NEW_INSETS
bool foot_this_level = false;
#endif
+#ifndef NO_PEXTRA
// flags when footnotetext should be appended to file.
static bool minipage_open = false;
static int minipage_open_depth = 0;
char par_sep = bparams.paragraph_separation;
+#endif
lyxerr[Debug::LATEX] << "TeXEnvironment... " << this << endl;
#ifndef NEW_INSETS
LyXLayout const & style =
textclasslist.Style(bparams.textclass,
layout);
-
+
+#ifndef NO_PEXTRA
if (params.pextraType() == PEXTRA_INDENT) {
if (!params.pextraWidth().empty()) {
os << "\\begin{LyXParagraphIndent}{"
minipage_open = true;
minipage_open_depth = params.depth();
}
-
+#endif
#ifdef WITH_WARNINGS
#warning Define FANCY_FOOTNOTE_CODE to re-enable Allan footnote code
//I disabled it because it breaks when lists span on several
foot, foot_texrow, foot_count
#endif
);
-
+#ifndef NO_PEXTRA
if (minipage_open && par && !style.isEnvironment() &&
(par->params.pextraType() == PEXTRA_MINIPAGE) &&
par->params.pextraStartMinipage()) {
}
minipage_open = false;
}
+#endif
if (par && par->params.depth() > params.depth()) {
if (textclasslist.Style(bparams.textclass,
par->layout).isParagraph()
#endif
);
}
+#ifndef NO_PEXTRA
if (par && par->layout == layout && par->params.depth() == params.depth() &&
(par->params.pextraType() == PEXTRA_MINIPAGE) && !minipage_open) {
if (par->params.pextraHfill() && par->previous() &&
minipage_open = true;
minipage_open_depth = par->params.depth();
}
+#endif
} while (par
&& par->layout == layout
&& par->params.depth() == params.depth()
+#ifndef NO_PEXTRA
&& par->params.pextraType() == params.pextraType()
+#endif
#ifndef NEW_INSETS
&& par->footnoteflag == footnoteflag
#endif
);
if (style.isEnvironment()) {
- os << "\\end{" << style.latexname() << '}';
+ os << "\\end{" << style.latexname() << "}\n";
+
#ifndef NEW_INSETS
// maybe this should go after the minipage closes?
if (foot_this_level) {
}
#endif
}
+#ifndef NO_PEXTRA
if (minipage_open && (minipage_open_depth == params.depth()) &&
(!par || par->params.pextraStartMinipage() ||
par->params.pextraType() != PEXTRA_MINIPAGE)) {
os << '\n';
texrow.newline();
}
+#endif
lyxerr[Debug::LATEX] << "TeXEnvironment...done " << par << endl;
return par; // ale970302
}
}
#endif
+#ifndef NO_PEXTRA
void LyXParagraph::SetPExtraType(BufferParams const & bparams,
int type, string const & width,
string const & widthp)
}
}
}
+#endif
bool LyXParagraph::IsHfill(size_type pos) const