]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCharStyle.cpp
Fix text frame drawing.
[lyx.git] / src / insets / InsetCharStyle.cpp
index 4c454947544d2cb91861d17f404791060e58fe1b..079d872299e85d07855392320456a3bd208f2d10 100644 (file)
 namespace lyx {
 
 using std::string;
-using std::auto_ptr;
-using std::istringstream;
-using std::max;
 using std::ostream;
-using std::ostringstream;
-
 
 
 InsetCharStyle::InsetCharStyle(BufferParams const & bp, string const s)
@@ -70,9 +65,9 @@ InsetCharStyle::InsetCharStyle(InsetCharStyle const & in)
 {}
 
 
-auto_ptr<Inset> InsetCharStyle::doClone() const
+Inset * InsetCharStyle::clone() const
 {
-       return auto_ptr<Inset>(new InsetCharStyle(*this));
+       return new InsetCharStyle(*this);
 }
 
 
@@ -162,18 +157,6 @@ bool InsetCharStyle::getStatus(Cursor & cur, FuncRequest const & cmd,
 }
 
 
-InsetCollapsable::Decoration InsetCharStyle::decoration() const
-{
-       if (layout_.decoration == "classic")
-               return Classic;
-       if (layout_.decoration == "minimalistic")
-               return Minimalistic;
-       if (layout_.decoration == "conglomerate")
-               return Conglomerate;
-       return Conglomerate;
-}
-
-
 int InsetCharStyle::plaintext(Buffer const & buf, odocstream & os,
                              OutputParams const & runparams) const
 {