]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetSpace.cpp
following rev. 18724 boost/signal is not needed.
[lyx.git] / src / insets / InsetSpace.cpp
index 60bd79fdb0d9449975acc048237a7d083ba8857a..168862236bed9f734759b6be9da07870a47cb002 100644 (file)
@@ -16,7 +16,7 @@
 #include "InsetSpace.h"
 
 #include "debug.h"
-#include "LColor.h"
+#include "Color.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
 #include "OutputParams.h"
@@ -58,11 +58,11 @@ bool InsetSpace::metrics(MetricsInfo & mi, Dimension & dim) const
        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;
@@ -101,9 +101,9 @@ void InsetSpace::draw(PainterInfo & pi, int x, int y) const
        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);
 }
 
 
@@ -167,7 +167,7 @@ void InsetSpace::read(Buffer const &, Lexer & lex)
 
 
 int InsetSpace::latex(Buffer const &, odocstream & os,
-                      OutputParams const & runparams) const
+                     OutputParams const & runparams) const
 {
        switch (kind_) {
        case NORMAL:
@@ -200,7 +200,7 @@ int InsetSpace::latex(Buffer const &, odocstream & os,
 
 
 int InsetSpace::plaintext(Buffer const &, odocstream & os,
-                          OutputParams const &) const
+                         OutputParams const &) const
 {
        os << ' ';
        return 1;
@@ -208,7 +208,7 @@ int InsetSpace::plaintext(Buffer const &, odocstream & os,
 
 
 int InsetSpace::docbook(Buffer const &, odocstream & os,
-                        OutputParams const &) const
+                       OutputParams const &) const
 {
        switch (kind_) {
        case NORMAL:
@@ -235,9 +235,9 @@ int InsetSpace::textString(Buffer const & buf, odocstream & os,
 }
 
 
-auto_ptr<InsetBase> InsetSpace::doClone() const
+auto_ptr<Inset> InsetSpace::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetSpace(kind_));
+       return auto_ptr<Inset>(new InsetSpace(kind_));
 }