X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finsetquotes.h;h=c88dfeb8bfb0ed703617de97e493ca94e88a8106;hb=10ba1b8918e7da14334bb5573ce2a707671c8b51;hp=dc35fb800d515665a066148f5f05af107f8b7437;hpb=cd424d78530c9e38502ee7f989ef5c426c97ad61;p=lyx.git diff --git a/src/insets/insetquotes.h b/src/insets/insetquotes.h index dc35fb800d..c88dfeb8bf 100644 --- a/src/insets/insetquotes.h +++ b/src/insets/insetquotes.h @@ -67,8 +67,8 @@ public: InsetQuotes(std::string const & str = "eld"); /// Create the right quote inset after character c InsetQuotes(char c, BufferParams const & params); - /// - virtual std::auto_ptr clone() const; + /// Direct access to inner/outer quotation marks + InsetQuotes(char c, quote_language l, quote_times t); /// void metrics(MetricsInfo &, Dimension &) const; /// @@ -97,10 +97,12 @@ public: void validate(LaTeXFeatures &) const; /// InsetOld::Code lyxCode() const; - // should this inset be handled like a normal charater + // should this inset be handled like a normal character bool isChar() const { return true; } private: + virtual std::auto_ptr doClone() const; + /// quote_language language_; /// @@ -112,6 +114,8 @@ private: side and the multiplicity of the quote. */ InsetQuotes(quote_language l, quote_side s, quote_times t); + /// Decide whether we need left or right quotation marks + void getPosition(char c); /// void parseString(std::string const &); ///