]> git.lyx.org Git - features.git/commitdiff
tex2lyx: reprivatize another variable
authorUwe Stöhr <uwestoehr@lyx.org>
Wed, 27 Jun 2012 20:48:22 +0000 (22:48 +0200)
committerUwe Stöhr <uwestoehr@lyx.org>
Wed, 27 Jun 2012 20:48:22 +0000 (22:48 +0200)
src/tex2lyx/Preamble.h
src/tex2lyx/tex2lyx.cpp

index 585cb25c73e0d1bcd1ca87dea1724194a5c05416..500083df4c5e49e558c6063a062faf63e940deaf 100644 (file)
@@ -34,13 +34,13 @@ class Preamble
 public:
        Preamble();
 
-       ///
-       std::string h_language;
        ///
        std::string inputencoding() const { return h_inputencoding; }
        ///
        std::string notefontcolor() const { return h_notefontcolor; }
        ///
+       std::string language() const { return h_language; } 
+       ///
        std::string use_indices() const { return h_use_indices; }
        ///
        bool indentParagraphs() const;
@@ -117,6 +117,7 @@ private:
        std::string h_index_command;
        std::string h_inputencoding;
        std::string h_justification;
+       std::string h_language;
        std::string h_language_package;
        std::string h_listings_params;
        std::string h_maintain_unincluded_children;
index b713e4c76dab30d991afc37238db8dced7e4b467..a7f83c25a34c41c449753b3b080e301cc7ea21f2 100644 (file)
@@ -673,7 +673,7 @@ bool tex2lyx(idocstream & is, ostream & os, string encoding)
        stringstream ss;
        // store the document language in the context to be able to handle the
        // commands like \foreignlanguage and \textenglish etc.
-       context.font.language = preamble.h_language;
+       context.font.language = preamble.language();
        // parse the main text
        parse_text(p, ss, FLAG_END, true, context);
        if (Context::empty)