*
* \author Martin Vermeer
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
+#include "insetoptarg.h"
#include "debug.h"
-
-#include "insetoptarg.h"
-#include "support/LOstream.h"
-#include "frontends/Alert.h"
-#include "support/lstrings.h" // frontStrip, strip
-#include "lyxtext.h"
-#include "buffer.h"
#include "gettext.h"
-#include "BufferView.h"
-#include "support/lstrings.h"
+#include "LColor.h"
+#include "paragraph.h"
+
+using std::string;
+using std::auto_ptr;
using std::ostream;
-using std::vector;
-using std::pair;
+
InsetOptArg::InsetOptArg(BufferParams const & ins)
: InsetCollapsable(ins, true)
}
-Inset * InsetOptArg::clone() const
+auto_ptr<InsetBase> InsetOptArg::clone() const
{
- return new InsetOptArg(*this);
+ return auto_ptr<InsetBase>(new InsetOptArg(*this));
}
}
-void InsetOptArg::write(Buffer const * buf, ostream & os) const
+void InsetOptArg::write(Buffer const & buf, ostream & os) const
{
os << "OptArg" << "\n";
InsetCollapsable::write(buf, os);
}
-int InsetOptArg::latex(Buffer const *, ostream &,
+int InsetOptArg::latex(Buffer const &, ostream &,
LatexRunParams const &) const
{
return 0;
}
-int InsetOptArg::latexOptional(Buffer const * buf, ostream & os,
+int InsetOptArg::latexOptional(Buffer const & buf, ostream & os,
LatexRunParams const & runparams) const
{
os << '[';