mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
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:
parent
f0d215f752
commit
609889cb35
@ -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,
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
|
@ -33,9 +33,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
protected:
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -53,9 +53,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -32,9 +32,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -32,9 +32,6 @@ public:
|
||||
virtual int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
virtual int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
virtual int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
|
@ -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,
|
||||
OutputParams const & runparams_in) const
|
||||
{
|
||||
|
@ -60,9 +60,6 @@ public:
|
||||
int latex(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
|
@ -70,12 +70,6 @@ int InsetOptArg::latex(Buffer const &, ostream &,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int InsetOptArg::linuxdoc(Buffer const &, ostream &,
|
||||
OutputParams const &) const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int InsetOptArg::docbook(Buffer const &, ostream &,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -35,9 +35,6 @@ public:
|
||||
/// Standard DocBook output -- short-circuited
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
/// Standard LinuxDoc output -- short-circuited
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
/// Standard plain text output -- short-circuited
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -32,9 +32,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -88,9 +88,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
|
||||
|
@ -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,
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
|
@ -50,9 +50,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
|
@ -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 << " ";
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int InsetSpace::docbook(Buffer const &, ostream & os,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -67,9 +67,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -59,9 +59,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
|
@ -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,
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
|
@ -90,9 +90,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
|
@ -33,7 +33,6 @@
|
||||
#include "metricsinfo.h"
|
||||
#include "output_docbook.h"
|
||||
#include "output_latex.h"
|
||||
#include "output_linuxdoc.h"
|
||||
#include "output_plaintext.h"
|
||||
#include "paragraph.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,
|
||||
OutputParams const & runparams) const
|
||||
{
|
||||
|
@ -67,9 +67,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -32,9 +32,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
private:
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -41,9 +41,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
/// the string that is passed to the TOC
|
||||
|
@ -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,
|
||||
OutputParams const &) const
|
||||
{
|
||||
|
@ -36,9 +36,6 @@ public:
|
||||
int plaintext(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int linuxdoc(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
int docbook(Buffer const &, std::ostream &,
|
||||
OutputParams const &) const;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user