]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetQuotes.h
Do not output deleted rows columns if show changes in output is false
[lyx.git] / src / insets / InsetQuotes.h
index 9b19a8439f3ce4b0a1591ee4abb8c3c46f2d6b32..362a0e2dfa3254f49b88057a4614d34438d7c7e1 100644 (file)
@@ -52,6 +52,10 @@ public:
                ///
                RussianQuotes,
                ///
+               CJKQuotes,
+               ///
+               CJKAngleQuotes,
+               ///
                DynamicQuotes
        };
        ///
@@ -70,17 +74,35 @@ public:
        };
        /// Returns the unicode character of a given quote
        char_type getQuoteChar(QuoteStyle const &, QuoteLevel const &,
-                              QuoteSide const &) const;
+                              QuoteSide const &, bool const rtl = false) const;
        /// Returns a map of quotation marks
        std::map<std::string, docstring> getTypes() const;
        ///
-       docstring getLaTeXQuote(char_type c, std::string const &) const;
+       docstring getLaTeXQuote(char_type c, std::string const &,
+                               bool const rtl = false) 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 & str);
        ///
        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);
 };
 
 ///
@@ -126,7 +148,7 @@ public:
        ///
        docstring xhtml(XHTMLStream &, OutputParams const &) const;
 
-       /// 
+       ///
        void toString(odocstream &) const;
        ///
        void forOutliner(docstring &, size_t const maxlen, bool const) const;
@@ -170,12 +192,18 @@ private:
        InsetQuotesParams::QuoteLevel level_;
        ///
        InsetQuotesParams::QuoteStyle global_style_;
-       ///
+       /// Current font encoding
        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_;
+       /// Do we have an internal font encoding?
+       bool internal_fontenc_;
+       /// Are we writing RTL?
+       bool rtl_;
        ///
        friend class InsetQuotesParams;