]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.cpp
Improve the list of equations
[lyx.git] / src / BufferParams.cpp
index 3bdfefba86c3238b6bc88bc26380ea5d80da14dc..fa0b7c3b92819ccb8d4beea6f64c898a71fd9487 100644 (file)
@@ -73,7 +73,7 @@ static char const * const string_paragraph_separation[] = {
 
 static char const * const string_quotes_style[] = {
        "english", "swedish", "german", "polish", "swiss", "danish", "plain",
-       "british", "swedishg", "french", "frenchin", "russian", ""
+       "british", "swedishg", "french", "frenchin", "russian", "cjk", "cjkangle", ""
 };
 
 
@@ -147,6 +147,8 @@ QuotesStyleTranslator const init_quotesstyletranslator()
        translator.addPair(string_quotes_style[9], InsetQuotesParams::FrenchQuotes);
        translator.addPair(string_quotes_style[10], InsetQuotesParams::FrenchINQuotes);
        translator.addPair(string_quotes_style[11], InsetQuotesParams::RussianQuotes);
+       translator.addPair(string_quotes_style[12], InsetQuotesParams::CJKQuotes);
+       translator.addPair(string_quotes_style[13], InsetQuotesParams::CJKAngleQuotes);
        return translator;
 }
 
@@ -402,6 +404,7 @@ BufferParams::BufferParams()
        makeDocumentClass();
        paragraph_separation = ParagraphIndentSeparation;
        quotes_style = InsetQuotesParams::EnglishQuotes;
+       dynamic_quotes = false;
        fontsize = "default";
 
        /*  PaperLayout */
@@ -839,6 +842,8 @@ string BufferParams::readToken(Lexer & lex, string const & token,
                string qstyle;
                lex >> qstyle;
                quotes_style = quotesstyletranslator().find(qstyle);
+       } else if (token == "\\dynamic_quotes") {
+               lex >> dynamic_quotes;
        } else if (token == "\\papersize") {
                string ppsize;
                lex >> ppsize;
@@ -1308,6 +1313,7 @@ void BufferParams::writeFile(ostream & os, Buffer const * buf) const
                os << "\n\\defskip " << getDefSkip().asLyXCommand();
        os << "\n\\quotes_style "
           << string_quotes_style[quotes_style]
+          << "\n\\dynamic_quotes " << dynamic_quotes
           << "\n\\papercolumns " << columns
           << "\n\\papersides " << sides
           << "\n\\paperpagestyle " << pagestyle << '\n';