]> git.lyx.org Git - features.git/commitdiff
Andre's s/getBaseClass/baseClass/ cleanup.
authorRichard Heck <rgheck@comcast.net>
Sun, 24 Feb 2008 15:12:41 +0000 (15:12 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 24 Feb 2008 15:12:41 +0000 (15:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23191 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp
src/BufferParams.h
src/LyXFunc.cpp
src/frontends/qt4/GuiDocument.cpp
src/insets/InsetInclude.cpp

index 6355dbcc6729d3f5a439c50f33936d5c6a260963..0c2d1b4bb6c6639507aec8fc57a165e1977c90d8 100644 (file)
@@ -1401,7 +1401,7 @@ bool BufferParams::setBaseClass(textclass_type tc)
 }
 
 
-textclass_type BufferParams::getBaseClass() const
+textclass_type BufferParams::baseClass() const
 {
        return baseClass_;
 }
@@ -1409,7 +1409,7 @@ textclass_type BufferParams::getBaseClass() const
 
 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 
index 0862dc3564412f71b4f6eca1b5a922413ef65d41..2a57dff066a61b60e5816acbee1e10f6db05244a 100644 (file)
@@ -107,7 +107,7 @@ public:
        ///
        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.
index 1ab3ab368cab7d9630016d45100b336d7a99ed0d..24a0b3c6cc23b3d43adc7a07aca7b096b1586574 100644 (file)
@@ -1613,7 +1613,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        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)
@@ -1634,7 +1634,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        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();
index d49ad159e64b45094b1e03adb2b5545d05fb6d2e..6adc1f52e9a7ce7c5c568410b03b9c4294a6b7f9 100644 (file)
@@ -1793,7 +1793,7 @@ void GuiDocument::updateParams(BufferParams const & params)
        }
 
        // text layout
-       latexModule->classCO->setCurrentIndex(params.getBaseClass());
+       latexModule->classCO->setCurrentIndex(params.baseClass());
        
        updatePagestyle(textClass().opt_pagestyle(),
                                 params.pagestyle);
@@ -2113,7 +2113,7 @@ vector<GuiDocument::modInfoStruct> const GuiDocument::getSelectedModules()
 
 TextClass const & GuiDocument::textClass() const
 {
-       return textclasslist[bp_.getBaseClass()];
+       return textclasslist[bp_.baseClass()];
 }
 
 
index 137c5a17fb8c47548066e0536b1884615a7e1632..686d445f5360d5c1f9ca79c184e534bf5b79ff27 100644 (file)
@@ -441,7 +441,7 @@ int InsetInclude::latex(Buffer const & buffer, odocstream & os,
 
                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"