}
-textclass_type BufferParams::getBaseClass() const
+textclass_type BufferParams::baseClass() const
{
return baseClass_;
}
void BufferParams::makeTextClass()
{
- textClass_.reset(new TextClass(textclasslist[getBaseClass()]));
+ textClass_.reset(new TextClass(textclasslist[baseClass()]));
//FIXME It might be worth loading the children's modules here,
//just as we load their bibliographies and such, instead of just
///
std::string fontsize;
///Get the LyX TextClass (that is, the layout file) this document is using.
- textclass_type getBaseClass() const;
+ textclass_type baseClass() const;
/// Set the LyX TextClass (that is, the layout file) this document is using.
/// NOTE: This does not call makeTextClass() to update the local TextClass.
/// That needs to be done manually.
if (!tc_pair.first)
break;
- textclass_type const old_class = buffer->params().getBaseClass();
+ textclass_type const old_class = buffer->params().baseClass();
textclass_type const new_class = tc_pair.second;
if (old_class == new_class)
BOOST_ASSERT(lyx_view_);
Buffer * buffer = lyx_view_->buffer();
TextClassPtr oldClass = buffer->params().textClassPtr();
- textclass_type const tc = buffer->params().getBaseClass();
+ textclass_type const tc = buffer->params().baseClass();
textclasslist.reset(tc);
buffer->params().setBaseClass(tc);
buffer->params().makeTextClass();
}
// text layout
- latexModule->classCO->setCurrentIndex(params.getBaseClass());
+ latexModule->classCO->setCurrentIndex(params.baseClass());
updatePagestyle(textClass().opt_pagestyle(),
params.pagestyle);
TextClass const & GuiDocument::textClass() const
{
- return textclasslist[bp_.getBaseClass()];
+ return textclasslist[bp_.baseClass()];
}
Buffer * tmp = theBufferList().getBuffer(included_file.absFilename());
- if (tmp->params().getBaseClass() != masterBuffer->params().getBaseClass()) {
+ if (tmp->params().baseClass() != masterBuffer->params().baseClass()) {
// FIXME UNICODE
docstring text = bformat(_("Included file `%1$s'\n"
"has textclass `%2$s'\n"