]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetquotes.h
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / insetquotes.h
index 2392de037e3496b1818488d994f42c3cd678aa8c..cbd2f5dcbfcdff84687a51709ca9e19eb23e4f85 100644 (file)
 
 #include "inset.h"
 
+#include "support/types.h"
+
+
+namespace lyx {
+
 class BufferParams;
 class Language;
-
-struct LaTeXFeatures;
+class LaTeXFeatures;
 
 
 /** Quotes.
@@ -66,11 +70,11 @@ public:
        explicit
        InsetQuotes(std::string const & str = "eld");
        /// Create the right quote inset after character c
-       InsetQuotes(char c, BufferParams const & params);
+       InsetQuotes(char_type c, BufferParams const & params);
        /// Direct access to inner/outer quotation marks
-       InsetQuotes(char c, quote_language l, quote_times t);
+       InsetQuotes(char_type c, quote_language l, quote_times t);
        ///
-       void metrics(MetricsInfo &, Dimension &) const;
+       bool metrics(MetricsInfo &, Dimension &) const;
        ///
        void draw(PainterInfo & pi, int x, int y) const;
 #if 0
@@ -82,17 +86,15 @@ public:
        ///
        void read(Buffer const &, LyXLex & lex);
        ///
-       int latex(Buffer const &, std::ostream &,
-                 OutputParams const &) const;
-       ///
-       int plaintext(Buffer const &, std::ostream &,
-                 OutputParams const &) const;
+       int latex(Buffer const &, odocstream &, OutputParams const &) const;
        ///
-       int linuxdoc(Buffer const &, std::ostream &,
-                    OutputParams const &) const;
+       int plaintext(Buffer const &, odocstream &, OutputParams const &) const;
        ///
-       int docbook(Buffer const &, std::ostream &,
-                   OutputParams const &) const;
+       int docbook(Buffer const &, odocstream &, OutputParams const &) const;
+
+       /// the string that is passed to the TOC
+       virtual void textString(Buffer const &, odocstream &) const;
+
        ///
        void validate(LaTeXFeatures &) const;
        ///
@@ -115,10 +117,13 @@ private:
         */
        InsetQuotes(quote_language l, quote_side s, quote_times t);
        /// Decide whether we need left or right quotation marks
-       void getPosition(char c);
+       void getPosition(char_type c);
        ///
        void parseString(std::string const &);
        ///
-       std::string const dispString(Language const *) const;
+       lyx::docstring const dispString(Language const *) const;
 };
+
+} // namespace lyx
+
 #endif