drop linuxdoc support (part 2)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14817 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-08-23 10:47:11 +00:00
parent f0d215f752
commit 609889cb35
32 changed files with 0 additions and 224 deletions

View File

@ -99,14 +99,6 @@ int InsetLabel::plaintext(Buffer const &, ostream & os,
} }
int InsetLabel::linuxdoc(Buffer const & buf, ostream & os,
OutputParams const & runparams) const
{
os << "<label id=\"" << sgml::cleanID(buf, runparams, getContents()) << "\" >";
return 0;
}
int InsetLabel::docbook(Buffer const & buf, ostream & os, int InsetLabel::docbook(Buffer const & buf, ostream & os,
OutputParams const & runparams) const OutputParams const & runparams) const
{ {

View File

@ -33,9 +33,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
protected: protected:

View File

@ -593,14 +593,6 @@ int InsetLatexAccent::plaintext(Buffer const &, ostream & os,
} }
int InsetLatexAccent::linuxdoc(Buffer const &, ostream & os,
OutputParams const &) const
{
os << contents;
return 0;
}
int InsetLatexAccent::docbook(Buffer const &, ostream & os, int InsetLatexAccent::docbook(Buffer const &, ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -53,9 +53,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// the string that is passed to the TOC /// the string that is passed to the TOC

View File

@ -71,14 +71,6 @@ int InsetLine::plaintext(Buffer const &, ostream & os,
} }
int InsetLine::linuxdoc(Buffer const &, std::ostream & os,
OutputParams const &) const
{
os << '\n';
return 0;
}
int InsetLine::docbook(Buffer const &, std::ostream & os, int InsetLine::docbook(Buffer const &, std::ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -32,9 +32,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;

View File

@ -65,14 +65,6 @@ int InsetNewline::plaintext(Buffer const &, ostream & os,
} }
int InsetNewline::linuxdoc(Buffer const &, std::ostream & os,
OutputParams const &) const
{
os << '\n';
return 0;
}
int InsetNewline::docbook(Buffer const &, std::ostream & os, int InsetNewline::docbook(Buffer const &, std::ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -32,9 +32,6 @@ public:
virtual int plaintext(Buffer const &, std::ostream &, virtual int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
virtual int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
virtual int docbook(Buffer const &, std::ostream &, virtual int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;

View File

@ -287,33 +287,6 @@ int InsetNote::latex(Buffer const & buf, ostream & os,
} }
int InsetNote::linuxdoc(Buffer const & buf, std::ostream & os,
OutputParams const & runparams_in) const
{
if (params_.type == InsetNoteParams::Note)
return 0;
OutputParams runparams(runparams_in);
ostringstream ss;
if (params_.type == InsetNoteParams::Comment) {
ss << "<comment>\n";
runparams.inComment = true;
// Ignore files that are exported inside a comment
runparams.exportdata.reset(new ExportData);
}
InsetText::linuxdoc(buf, ss, runparams);
if (params_.type == InsetNoteParams::Comment)
ss << "\n</comment>\n";
string const str = ss.str();
os << str;
// Return how many newlines we issued.
return int(lyx::count(str.begin(), str.end(),'\n'));
}
int InsetNote::docbook(Buffer const & buf, std::ostream & os, int InsetNote::docbook(Buffer const & buf, std::ostream & os,
OutputParams const & runparams_in) const OutputParams const & runparams_in) const
{ {

View File

@ -60,9 +60,6 @@ public:
int latex(Buffer const &, std::ostream &, int latex(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///

View File

@ -70,12 +70,6 @@ int InsetOptArg::latex(Buffer const &, ostream &,
return 0; return 0;
} }
int InsetOptArg::linuxdoc(Buffer const &, ostream &,
OutputParams const &) const
{
return 0;
}
int InsetOptArg::docbook(Buffer const &, ostream &, int InsetOptArg::docbook(Buffer const &, ostream &,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -35,9 +35,6 @@ public:
/// Standard DocBook output -- short-circuited /// Standard DocBook output -- short-circuited
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// Standard LinuxDoc output -- short-circuited
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
/// Standard plain text output -- short-circuited /// Standard plain text output -- short-circuited
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,

View File

@ -92,14 +92,6 @@ int InsetPagebreak::plaintext(Buffer const &, ostream & os,
} }
int InsetPagebreak::linuxdoc(Buffer const &, std::ostream & os,
OutputParams const &) const
{
os << '\n';
return 0;
}
int InsetPagebreak::docbook(Buffer const &, std::ostream & os, int InsetPagebreak::docbook(Buffer const &, std::ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -32,9 +32,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;

View File

@ -306,14 +306,6 @@ int InsetQuotes::plaintext(Buffer const &, ostream & os,
} }
int InsetQuotes::linuxdoc(Buffer const &, ostream & os,
OutputParams const &) const
{
os << '"';
return 0;
}
int InsetQuotes::docbook(Buffer const &, ostream & os, int InsetQuotes::docbook(Buffer const &, ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -88,9 +88,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;

View File

@ -104,15 +104,6 @@ int InsetRef::plaintext(Buffer const &, ostream & os,
} }
int InsetRef::linuxdoc(Buffer const & buf, ostream & os,
OutputParams const & runparams) const
{
os << "<ref id=\"" << sgml::cleanID(buf, runparams, getContents())
<< "\" name=\"" << getOptions() << "\" >";
return 0;
}
int InsetRef::docbook(Buffer const & buf, ostream & os, int InsetRef::docbook(Buffer const & buf, ostream & os,
OutputParams const & runparams) const OutputParams const & runparams) const
{ {

View File

@ -50,9 +50,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// the string that is passed to the TOC /// the string that is passed to the TOC

View File

@ -212,27 +212,6 @@ int InsetSpace::plaintext(Buffer const &, ostream & os,
} }
int InsetSpace::linuxdoc(Buffer const &, ostream & os,
OutputParams const &) const
{
switch (kind_) {
case NORMAL:
case QUAD:
case QQUAD:
case ENSKIP:
os << " ";
break;
case PROTECTED:
case ENSPACE:
case THIN:
case NEGTHIN:
os << "&nbsp;";
break;
}
return 0;
}
int InsetSpace::docbook(Buffer const &, ostream & os, int InsetSpace::docbook(Buffer const &, ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -67,9 +67,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// the string that is passed to the TOC /// the string that is passed to the TOC

View File

@ -205,27 +205,6 @@ int InsetSpecialChar::plaintext(Buffer const &, ostream & os,
} }
int InsetSpecialChar::linuxdoc(Buffer const &, ostream & os,
OutputParams const &) const
{
switch (kind_) {
case HYPHENATION:
case LIGATURE_BREAK:
break;
case END_OF_SENTENCE:
os << '.';
break;
case LDOTS:
os << "...";
break;
case MENU_SEPARATOR:
os << "&lyxarrow;";
break;
}
return 0;
}
int InsetSpecialChar::docbook(Buffer const &, ostream & os, int InsetSpecialChar::docbook(Buffer const &, ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -59,9 +59,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// the string that is passed to the TOC /// the string that is passed to the TOC

View File

@ -1070,13 +1070,6 @@ int InsetTabular::plaintext(Buffer const & buf, ostream & os,
} }
int InsetTabular::linuxdoc(Buffer const & buf, ostream & os,
OutputParams const & runparams) const
{
return tabular.linuxdoc(buf,os, runparams);
}
int InsetTabular::docbook(Buffer const & buf, ostream & os, int InsetTabular::docbook(Buffer const & buf, ostream & os,
OutputParams const & runparams) const OutputParams const & runparams) const
{ {

View File

@ -90,9 +90,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///

View File

@ -33,7 +33,6 @@
#include "metricsinfo.h" #include "metricsinfo.h"
#include "output_docbook.h" #include "output_docbook.h"
#include "output_latex.h" #include "output_latex.h"
#include "output_linuxdoc.h"
#include "output_plaintext.h" #include "output_plaintext.h"
#include "paragraph.h" #include "paragraph.h"
#include "paragraph_funcs.h" #include "paragraph_funcs.h"
@ -336,14 +335,6 @@ int InsetText::plaintext(Buffer const & buf, ostream & os,
} }
int InsetText::linuxdoc(Buffer const & buf, ostream & os,
OutputParams const & runparams) const
{
linuxdocParagraphs(buf, paragraphs(), os, runparams);
return 0;
}
int InsetText::docbook(Buffer const & buf, ostream & os, int InsetText::docbook(Buffer const & buf, ostream & os,
OutputParams const & runparams) const OutputParams const & runparams) const
{ {

View File

@ -67,9 +67,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///

View File

@ -64,15 +64,6 @@ int InsetTOC::plaintext(Buffer const & buffer, ostream & os,
} }
int InsetTOC::linuxdoc(Buffer const &, ostream & os,
OutputParams const &) const
{
if (getCmdName() == "tableofcontents")
os << "<toc>";
return 0;
}
int InsetTOC::docbook(Buffer const &, ostream & os, int InsetTOC::docbook(Buffer const &, ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -32,9 +32,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
private: private:

View File

@ -80,17 +80,6 @@ int InsetUrl::plaintext(Buffer const &, ostream & os,
} }
int InsetUrl::linuxdoc(Buffer const &, ostream & os,
OutputParams const &) const
{
os << '<' << getCmdName()
<< " url=\"" << getContents() << "\""
<< " name=\"" << getOptions() << "\">";
return 0;
}
int InsetUrl::docbook(Buffer const &, ostream & os, int InsetUrl::docbook(Buffer const &, ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -41,9 +41,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// the string that is passed to the TOC /// the string that is passed to the TOC

View File

@ -218,14 +218,6 @@ int InsetVSpace::plaintext(Buffer const &, ostream & os,
} }
int InsetVSpace::linuxdoc(Buffer const &, std::ostream & os,
OutputParams const &) const
{
os << '\n';
return 1;
}
int InsetVSpace::docbook(Buffer const &, std::ostream & os, int InsetVSpace::docbook(Buffer const &, std::ostream & os,
OutputParams const &) const OutputParams const &) const
{ {

View File

@ -36,9 +36,6 @@ public:
int plaintext(Buffer const &, std::ostream &, int plaintext(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///
int linuxdoc(Buffer const &, std::ostream &,
OutputParams const &) const;
///
int docbook(Buffer const &, std::ostream &, int docbook(Buffer const &, std::ostream &,
OutputParams const &) const; OutputParams const &) const;
/// ///