]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetquotes.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / insets / insetquotes.C
index b7f34d98c824177ff6172fc544221e225ab2b3a3..425c89e0ab43fbc8b81708a821290e1ae4c52597 100644 (file)
@@ -33,10 +33,19 @@ using namespace lyx::support;
 
 using std::ostream;
 using std::endl;
+using std::auto_ptr;
 
 namespace {
 
-// codes used to read/write quotes to LyX files
+/* codes used to read/write quotes to LyX files
+ * e    ``english''
+ * s    ''spanish''
+ * g    ,,german``
+ * p    ,,polish''
+ * f    <<french>>
+ * a    >>danish<<
+ */
+
 char const * const language_char = "esgpfa";
 char const * const side_char = "lr" ;
 char const * const times_char = "sd";
@@ -354,13 +363,13 @@ void InsetQuotes::validate(LaTeXFeatures & features) const
 }
 
 
-InsetBase * InsetQuotes::clone() const
+auto_ptr<InsetBase> InsetQuotes::clone() const
 {
-       return new InsetQuotes(language_, side_, times_);
+       return auto_ptr<InsetBase>(new InsetQuotes(language_, side_, times_));
 }
 
 
-Inset::Code InsetQuotes::lyxCode() const
+InsetOld::Code InsetQuotes::lyxCode() const
 {
-  return Inset::QUOTE_CODE;
+  return InsetOld::QUOTE_CODE;
 }