+///
+enum class QuoteStyle : int {
+ ///
+ English,
+ ///
+ Swedish,
+ ///
+ German,
+ ///
+ Polish,
+ ///
+ Swiss,
+ ///
+ Danish,
+ ///
+ Plain,
+ ///
+ British,
+ ///
+ SwedishG,
+ ///
+ French,
+ ///
+ FrenchIN,
+ ///
+ Russian,
+ ///
+ CJK,
+ ///
+ CJKAngle,
+ ///
+ Hungarian,
+ ///
+ Dynamic
+};
+
+///
+enum class QuoteSide : int {
+ ///
+ Opening,
+ ///
+ Closing
+};
+
+///
+enum class QuoteLevel : int {
+ ///
+ Secondary,
+ ///
+ Primary
+};
+
+
+/** Quotes.
+ Used for the various quotes. German, English, French, all either
+ double or single **/
+class InsetQuotesParams {
+public:
+ /// Returns the unicode character of a given quote
+ char_type getQuoteChar(QuoteStyle const &, QuoteLevel 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 &,
+ bool const rtl = false) const;
+ ///
+ docstring getXMLQuote(char_type c) const;
+ /// Returns a descriptive label of a style suitable for dialog and menu
+ docstring const getGuiLabel(QuoteStyle const & qs,
+ bool langdef = false) const;
+ /// Returns a descriptive label of a given char
+ docstring const getShortGuiLabel(docstring const & str) const;
+ ///
+ 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 = QuoteStyle::English) const;
+ /// Returns the quote sind from the shortcut string
+ QuoteSide getQuoteSide(std::string const & s,
+ bool const allow_wildcards = false,
+ QuoteSide fallback = QuoteSide::Opening) const;
+ /// Returns the quote level from the shortcut string
+ QuoteLevel getQuoteLevel(std::string const & s,
+ bool const allow_wildcards = false,
+ QuoteLevel fallback = QuoteLevel::Primary) const;
+};
+
+///
+extern InsetQuotesParams quoteparams;
+