* \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
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "insetspace.h"
#include "debug.h"
-#include "dimension.h"
-#include "LaTeXFeatures.h"
-#include "latexrunparams.h"
-#include "BufferView.h"
-#include "frontends/Painter.h"
-#include "frontends/font_metrics.h"
+#include "LColor.h"
#include "lyxlex.h"
-#include "lyxfont.h"
#include "metricsinfo.h"
+#include "outputparams.h"
-using std::ostream;
+#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
+
+
+using std::string;
using std::max;
using std::auto_ptr;
+using std::ostream;
InsetSpace::InsetSpace()
}
-void InsetSpace::write(Buffer const *, ostream & os) const
+void InsetSpace::write(Buffer const &, ostream & os) const
{
string command;
switch (kind_) {
// This function will not be necessary when lyx3
-void InsetSpace::read(Buffer const *, LyXLex & lex)
+void InsetSpace::read(Buffer const &, LyXLex & lex)
{
- lex.nextToken();
+ lex.next();
string const command = lex.getString();
if (command == "\\space")
}
-int InsetSpace::latex(Buffer const *, ostream & os,
- LatexRunParams const & runparams) const
+int InsetSpace::latex(Buffer const &, ostream & os,
+ OutputParams const & runparams) const
{
switch (kind_) {
case NORMAL:
}
-int InsetSpace::ascii(Buffer const *, ostream & os, int) const
+int InsetSpace::plaintext(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case NORMAL:
}
-int InsetSpace::linuxdoc(Buffer const *, ostream & os) const
+int InsetSpace::linuxdoc(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case NORMAL:
}
-int InsetSpace::docbook(Buffer const *, ostream & os, bool) const
+int InsetSpace::docbook(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case NORMAL:
{
return true;
}
-
-bool InsetSpace::isLineSeparator() const
-{
- return false;
-}