#include "insetspecialchar.h"
#include "debug.h"
-#include "dimension.h"
#include "LaTeXFeatures.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"
-using std::ostream;
-using std::max;
+#include "frontends/font_metrics.h"
+#include "frontends/Painter.h"
+
+
+using std::string;
using std::auto_ptr;
+using std::ostream;
InsetSpecialChar::InsetSpecialChar(Kind k)
// In lyxf3 this will be just LaTeX
-void InsetSpecialChar::write(Buffer const *, ostream & os) const
+void InsetSpecialChar::write(Buffer const &, ostream & os) const
{
string command;
switch (kind_) {
// This function will not be necessary when lyx3
-void InsetSpecialChar::read(Buffer const *, LyXLex & lex)
+void InsetSpecialChar::read(Buffer const &, LyXLex & lex)
{
- lex.nextToken();
+ lex.next();
string const command = lex.getString();
if (command == "\\-")
}
-int InsetSpecialChar::latex(Buffer const *, ostream & os,
- LatexRunParams const &) const
+int InsetSpecialChar::latex(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case HYPHENATION:
}
-int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
+int InsetSpecialChar::plaintext(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case HYPHENATION:
}
-int InsetSpecialChar::linuxdoc(Buffer const *, ostream & os) const
+int InsetSpecialChar::linuxdoc(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case HYPHENATION:
}
-int InsetSpecialChar::docbook(Buffer const *, ostream & os, bool) const
+int InsetSpecialChar::docbook(Buffer const &, ostream & os,
+ OutputParams const &) const
{
switch (kind_) {
case HYPHENATION:
}
-bool InsetSpecialChar::isSpace() const
-{
- return false;
-}
-
-
bool InsetSpecialChar::isLineSeparator() const
{
#if 0