]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetspace.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetspace.C
index 345a5f1f27249ec8cd5c5af70d011e646a22f844..11cc7925e14f87bf62556a4b40e53632059deaa0 100644 (file)
@@ -6,7 +6,7 @@
  * \author Asger Alstrup Nielsen
  * \author Jean-Marc Lasgouttes
  * \author Lars Gullik Bjønnes
- * \author Juergen Spitzmueller
+ * \author Jürgen Spitzmüller
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "insetspace.h"
 
 #include "debug.h"
-#include "latexrunparams.h"
+#include "LColor.h"
 #include "lyxlex.h"
 #include "metricsinfo.h"
+#include "outputparams.h"
 
 #include "frontends/font_metrics.h"
 #include "frontends/Painter.h"
 
+
+using std::string;
 using std::max;
 using std::auto_ptr;
 using std::ostream;
@@ -134,7 +137,7 @@ void InsetSpace::write(Buffer const &, ostream & os) const
 // This function will not be necessary when lyx3
 void InsetSpace::read(Buffer const &, LyXLex & lex)
 {
-       lex.nextToken();
+       lex.next();
        string const command = lex.getString();
 
        if (command == "\\space")
@@ -159,7 +162,7 @@ void InsetSpace::read(Buffer const &, LyXLex & lex)
 
 
 int InsetSpace::latex(Buffer const &, ostream & os,
-                     LatexRunParams const & runparams) const
+                     OutputParams const & runparams) const
 {
        switch (kind_) {
        case NORMAL:
@@ -191,7 +194,8 @@ int InsetSpace::latex(Buffer const &, ostream & os,
 }
 
 
-int InsetSpace::ascii(Buffer const &, ostream & os, int) const
+int InsetSpace::plaintext(Buffer const &, ostream & os,
+                     OutputParams const &) const
 {
        switch (kind_) {
        case NORMAL:
@@ -209,7 +213,8 @@ int InsetSpace::ascii(Buffer const &, ostream & os, int) const
 }
 
 
-int InsetSpace::linuxdoc(Buffer const &, ostream & os) const
+int InsetSpace::linuxdoc(Buffer const &, ostream & os,
+                        OutputParams const &) const
 {
        switch (kind_) {
        case NORMAL:
@@ -229,7 +234,8 @@ int InsetSpace::linuxdoc(Buffer const &, ostream & os) const
 }
 
 
-int InsetSpace::docbook(Buffer const &, ostream & os, bool) const
+int InsetSpace::docbook(Buffer const &, ostream & os,
+                       OutputParams const &) const
 {
        switch (kind_) {
        case NORMAL:
@@ -269,8 +275,3 @@ bool InsetSpace::isSpace() const
 {
        return true;
 }
-
-bool InsetSpace::isLineSeparator() const
-{
-       return false;
-}