]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetQuotes.cpp
Remove all BufferParam arguments in InsetXXX methods (since insets know about their...
[lyx.git] / src / insets / InsetQuotes.cpp
index 77fd76197cb1e21c444f4ebfd42bcfd28d4b1240..3b7c589071b5988afe2c57dd678873c8d65fd527 100644 (file)
@@ -88,29 +88,25 @@ char const * const latex_quote_babel[2][5] = {
 } // namespace anon
 
 
-InsetQuotes::InsetQuotes(string const & str)
+InsetQuotes::InsetQuotes(Buffer const & buf, string const & str)
 {
        parseString(str);
+       setBuffer(const_cast<Buffer &>(buf));
 }
 
-
-InsetQuotes::InsetQuotes(QuoteLanguage l, QuoteSide s, QuoteTimes t)
-       : language_(l), side_(s), times_(t)
-{
-}
-
-
 InsetQuotes::InsetQuotes(Buffer const & buf, char_type c)
        : language_(buf.params().quotes_language), times_(buf.params().quotes_times)
 {
        setSide(c);
+       setBuffer(const_cast<Buffer &>(buf));
 }
 
 
-InsetQuotes::InsetQuotes(char_type c, QuoteLanguage l, QuoteTimes t)
-       : language_(l), times_(t)
+InsetQuotes::InsetQuotes(Buffer const & buf, char_type c, QuoteTimes t)
+       : language_(buf.params().quotes_language), times_(t)
 {
        setSide(c);
+       setBuffer(const_cast<Buffer &>(buf));
 }
 
 
@@ -316,7 +312,14 @@ int InsetQuotes::docbook(odocstream & os, OutputParams const &) const
 }
 
 
-void InsetQuotes::textString(odocstream & os) const
+docstring InsetQuotes::xhtml(odocstream & os, OutputParams const & op) const
+{
+       docbook(os, op);
+       return docstring();
+}
+
+
+void InsetQuotes::tocString(odocstream & os) const
 {
        os << displayString();
 }