]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetQuotes.h
Regularly check if preview is modified when visible on screen
[lyx.git] / src / insets / InsetQuotes.h
index 426f13e9a1be53c0572f5521e0cd21c9d463461e..f9dd5aeafa789cd98cdbc77db267c0bb5c13b39e 100644 (file)
@@ -50,7 +50,13 @@ public:
                ///
                FrenchINQuotes,
                ///
-               RussianQuotes
+               RussianQuotes,
+               ///
+               CJKQuotes,
+               ///
+               CJKAngleQuotes,
+               ///
+               DynamicQuotes
        };
        ///
        enum QuoteSide {
@@ -75,10 +81,27 @@ public:
        docstring getLaTeXQuote(char_type c, std::string const &) const;
        ///
        docstring getHTMLQuote(char_type c) const;
-       /// Returns a label suitable for dialog and menu
-       docstring const getGuiLabel(QuoteStyle const & qs);
+       /// Returns a descriptive label of a style suitable for dialog and menu
+       docstring const getGuiLabel(QuoteStyle const & qs,
+                                   bool langdef = false);
+       /// Returns a descriptive label of a given char
+       docstring const getShortGuiLabel(docstring const string);
        ///
        int stylescount() const;
+       /// Returns the matching style shortcut char
+       char getStyleChar(QuoteStyle const & style) const;
+       /// Returns the quote style from the shortcut string
+       QuoteStyle getQuoteStyle(std::string const & s,
+               bool const allow_wildcards = false,
+               QuoteStyle fallback = EnglishQuotes);
+       /// Returns the quote sind from the shortcut string
+       QuoteSide getQuoteSide(std::string const & s,
+               bool const allow_wildcards = false,
+               QuoteSide fallback = OpeningQuote);
+       /// Returns the quote level from the shortcut string
+       QuoteLevel getQuoteLevel(std::string const & s,
+               bool const allow_wildcards = false,
+               QuoteLevel fallback = PrimaryQuotes);
 };
 
 ///
@@ -167,11 +190,15 @@ private:
        ///
        InsetQuotesParams::QuoteLevel level_;
        ///
+       InsetQuotesParams::QuoteStyle global_style_;
+       ///
        std::string fontenc_;
        /// Code of the contextual language
        std::string context_lang_;
        /// Is this in a pass-thru context?
        bool pass_thru_;
+       /// Do we use fontspec?
+       bool fontspec_;
        ///
        friend class InsetQuotesParams;