#include "InsetSpace.h"
#include "debug.h"
-#include "LColor.h"
-#include "lyxlex.h"
-#include "metricsinfo.h"
-#include "outputparams.h"
+#include "Color.h"
+#include "Lexer.h"
+#include "MetricsInfo.h"
+#include "OutputParams.h"
#include "frontends/FontMetrics.h"
#include "frontends/Painter.h"
using std::string;
using std::max;
-using std::auto_ptr;
using std::ostream;
switch (kind_) {
case THIN:
case NEGTHIN:
- dim.wid = fm.width(char_type('x')) / 3;
+ dim.wid = fm.width(char_type('x')) / 3;
break;
case PROTECTED:
case NORMAL:
- dim.wid = fm.width(char_type('x'));
+ dim.wid = fm.width(char_type('x'));
break;
case QUAD:
dim.wid = 20;
yp[3] = y - max(h / 4, 1);
if (kind_ == PROTECTED || kind_ == ENSPACE || kind_ == NEGTHIN)
- pi.pain.lines(xp, yp, 4, LColor::latex);
+ pi.pain.lines(xp, yp, 4, Color::latex);
else
- pi.pain.lines(xp, yp, 4, LColor::special);
+ pi.pain.lines(xp, yp, 4, Color::special);
}
}
-void InsetSpace::read(Buffer const &, LyXLex & lex)
+void InsetSpace::read(Buffer const &, Lexer & lex)
{
lex.next();
string const command = lex.getString();
int InsetSpace::latex(Buffer const &, odocstream & os,
- OutputParams const & runparams) const
+ OutputParams const & runparams) const
{
switch (kind_) {
case NORMAL:
int InsetSpace::plaintext(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
os << ' ';
return 1;
int InsetSpace::docbook(Buffer const &, odocstream & os,
- OutputParams const &) const
+ OutputParams const &) const
{
switch (kind_) {
case NORMAL:
}
-auto_ptr<InsetBase> InsetSpace::doClone() const
+Inset * InsetSpace::clone() const
{
- return auto_ptr<InsetBase>(new InsetSpace(kind_));
+ return new InsetSpace(kind_);
}