]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetSpecialChar.cpp
Whitespace cleanup
[features.git] / src / insets / InsetSpecialChar.cpp
index f863b27bc2bd84c2588b1f44c6245e72f707ea95..178034136d3bd5819e5c39d2910608bda1aa0ea0 100644 (file)
@@ -57,7 +57,7 @@ bool InsetSpecialChar::metrics(MetricsInfo & mi, Dimension & dim) const
                case MENU_SEPARATOR:      s = " x ";   break;
                case HYPHENATION:      s = "-";   break;
        }
-        docstring ds(s.begin(), s.end());
+       docstring ds(s.begin(), s.end());
        dim.wid = fm.width(ds);
        if (kind_ == HYPHENATION && dim.wid > 5)
                dim.wid -= 2; // to make it look shorter
@@ -69,7 +69,7 @@ bool InsetSpecialChar::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetSpecialChar::draw(PainterInfo & pi, int x, int y) const
 {
-       LyXFont font = pi.base.font;
+       Font font = pi.base.font;
 
        switch (kind_) {
        case HYPHENATION:
@@ -93,8 +93,8 @@ void InsetSpecialChar::draw(PainterInfo & pi, int x, int y) const
        case LDOTS:
        {
                font.setColor(Color::special);
-                string ell = ". . . ";
-                docstring dell(ell.begin(), ell.end());
+               string ell = ". . . ";
+               docstring dell(ell.begin(), ell.end());
                pi.pain.text(x, y, dell, font);
                break;
        }
@@ -104,7 +104,7 @@ void InsetSpecialChar::draw(PainterInfo & pi, int x, int y) const
                        theFontMetrics(font);
 
                // A triangle the width and height of an 'x'
-                int w = fm.width(char_type('x'));
+               int w = fm.width(char_type('x'));
                int ox = fm.width(char_type(' ')) + x;
                int h = fm.ascent(char_type('x'));
                int xp[4], yp[4];
@@ -192,7 +192,7 @@ int InsetSpecialChar::latex(Buffer const &, odocstream & os,
 
 
 int InsetSpecialChar::plaintext(Buffer const &, odocstream & os,
-                                OutputParams const &) const
+                               OutputParams const &) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -213,7 +213,7 @@ int InsetSpecialChar::plaintext(Buffer const &, odocstream & os,
 
 
 int InsetSpecialChar::docbook(Buffer const &, odocstream & os,
-                              OutputParams const &) const
+                             OutputParams const &) const
 {
        switch (kind_) {
        case HYPHENATION:
@@ -240,9 +240,9 @@ int InsetSpecialChar::textString(Buffer const & buf, odocstream & os,
 }
 
 
-auto_ptr<InsetBase> InsetSpecialChar::doClone() const
+auto_ptr<Inset> InsetSpecialChar::doClone() const
 {
-       return auto_ptr<InsetBase>(new InsetSpecialChar(kind_));
+       return auto_ptr<Inset>(new InsetSpecialChar(kind_));
 }