]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetOptArg.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetOptArg.cpp
index 30d15d6900d437f757d83c1d6cedd185a7a24fdf..c5da19b62d72443340f3f3d6db95c09625573098 100644 (file)
 
 #include "InsetOptArg.h"
 
-#include "debug.h"
-#include "gettext.h"
+#include "support/debug.h"
+#include "support/docstream.h"
+#include "support/gettext.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::string;
-using std::auto_ptr;
-using std::ostream;
-
 
 InsetOptArg::InsetOptArg(BufferParams const & ins)
        : InsetCollapsable(ins)
-{
-       Font font(Font::ALL_SANE);
-       font.setColor(Color::collapsable);
-       setLabelFont(font);
-       setLabel(_("opt"));
-}
+{}
 
 
 InsetOptArg::InsetOptArg(InsetOptArg const & in)
        : InsetCollapsable(in)
-{
-       Font font(Font::ALL_SANE);
-       font.setColor(Color::collapsable);
-       setLabelFont(font);
-       setLabel(_("opt"));
-}
+{}
 
 
-auto_ptr<Inset> InsetOptArg::doClone() const
+Inset * InsetOptArg::clone() const
 {
-       return auto_ptr<Inset>(new InsetOptArg(*this));
+       return new InsetOptArg(*this);
 }