/// 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
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