namespace {
-int const LYX_FORMAT = 314; // Uwe Stöhr: scrlttr2 for serial letters
+int const LYX_FORMAT = 315; // Richard Heck: column separation
} // namespace anon
/// A cache for the bibfiles (including bibfiles of loaded child
/// documents), needed for appropriate update of natbib labels.
mutable EmbeddedFileList bibfilesCache_;
+
+ ///
+ WordList words_;
};
/// Creates the per buffer temporary directory
params().headheight.erase();
params().headsep.erase();
params().footskip.erase();
+ params().columnsep.erase();
params().listings_params.clear();
params().clearLayoutModules();
params().pdfoptions().clear();
}
// read main text
- bool const res = text().read(*this, lex, errorList, &inset());
+ bool const res = text().read(*this, lex, errorList, &(d->inset));
updateMacros();
updateMacroInstances();
bool Buffer::isLatex() const
{
- return params().getTextClass().outputType() == LATEX;
+ return params().textClass().outputType() == LATEX;
}
bool Buffer::isLiterate() const
{
- return params().getTextClass().outputType() == LITERATE;
+ return params().textClass().outputType() == LITERATE;
}
bool Buffer::isDocBook() const
{
- return params().getTextClass().outputType() == DOCBOOK;
+ return params().textClass().outputType() == DOCBOOK;
}
d->texrow.reset();
- TextClass const & tclass = params().getTextClass();
+ TextClass const & tclass = params().textClass();
string const top_element = tclass.latexname();
if (!only_body) {
<< " file was created by LyX " << lyx_version
<< "\n See http://www.lyx.org/ for more information -->\n";
- params().getTextClass().counters().reset();
+ params().textClass().counters().reset();
loadChildDocuments();
void Buffer::resetChildDocuments(bool close_them) const
{
+ if (text().empty())
+ return;
+
for (InsetIterator it = inset_iterator_begin(inset()); it; ++it) {
if (it->lyxCode() != INCLUDE_CODE)
continue;
vector<string> Buffer::backends() const
{
vector<string> v;
- if (params().getTextClass().isTeXClassAvailable()) {
+ if (params().textClass().isTeXClassAvailable()) {
v.push_back(bufferFormat());
// FIXME: Don't hardcode format names here, but use a flag
if (v.back() == "latex")
}
}
+
+void Buffer::registerWord(docstring const & word)
+{
+ d->words_.insert(word);
+}
+
+
+WordList const & Buffer::registeredWords() const
+{
+ return d->words_;
+}
+
} // namespace lyx