Make biblio_style private

This should never ever be accessed directly
This commit is contained in:
Juergen Spitzmueller 2017-01-01 08:37:56 +01:00
parent f38827b63b
commit 5d58bfadbc
2 changed files with 6 additions and 4 deletions

View File

@ -462,9 +462,9 @@ public:
/// the available citation styles
std::vector<CitationStyle> citeStyles() const;
/// the default BibTeX style file for the document
std::string biblio_style;
/// the default BibTeX style file from the TextClass
/// Set the default BibTeX style file for the document
void setDefaultBiblioStyle(std::string const & s){ biblio_style = s; }
/// Get the default BibTeX style file from the TextClass
std::string const & defaultBiblioStyle() const;
/// whether the BibTeX style supports full author lists
bool const & fullAuthorList() const;
@ -535,6 +535,8 @@ private:
LayoutModuleList cite_engine_;
/// the type of cite engine (authoryear or numerical)
CiteEngineType cite_engine_type_;
/// the default BibTeX style file for the document
std::string biblio_style;
///
DocumentClassPtr doc_class_;
///

View File

@ -2642,7 +2642,7 @@ void GuiDocument::applyView()
bp_.use_bibtopic =
biblioModule->bibtopicCB->isChecked();
bp_.biblio_style = fromqstr(biblioModule->defaultBiblioCO->currentText());
bp_.setDefaultBiblioStyle(fromqstr(biblioModule->defaultBiblioCO->currentText()));
string const bibtex_command =
fromqstr(biblioModule->bibtexCO->itemData(