]> git.lyx.org Git - features.git/commitdiff
Make biblio_style private
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 1 Jan 2017 07:37:56 +0000 (08:37 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 1 Jan 2017 07:37:56 +0000 (08:37 +0100)
This should never ever be accessed directly

src/BufferParams.h
src/frontends/qt4/GuiDocument.cpp

index 13870f1d8c6323c48878e44b7c02d0a9024aaa9b..29897fd9754f046dd37927204e45f347c0da3638 100644 (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_;
        ///
index 34b2fc0b9115b32dba0dcf0f9b3a61f1252fd50f..077bc55fecb8b4c6a4faa0e273fcc2a4bf4790ab 100644 (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(