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";
else
dim.wid += font_metrics::width(',', font);
}
+ dim_ = dim;
}
}
-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;
}