drop linuxdoc support (part 5)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14822 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-08-23 12:43:46 +00:00
parent 2a71306d77
commit 5a0176a6eb
5 changed files with 4 additions and 33 deletions

View File

@ -99,14 +99,6 @@
{\AddLayout[\firstelement]{\layoutname}{#2}{true}}
{\AddLayout[\firstelement]{\layoutname}{#2}{false}}
}
\newcommand{\DeclareLinuxDocClass}[2][\default]{
\message{^^J\prefix checking for linuxdoc class \layoutname... }
\@ifundefined{haslinuxdoc}
{\message{no^^J}
\AddLayout[#1]{\layoutname}{#2}{false}}
{\message{yes^^J}
\AddLayout[#1]{\layoutname}{#2}{true}}
}
% Only for compatibility. Will be removed later.
\let\DeclareSGMLClass=\DeclareDocBookClass

View File

@ -51,7 +51,7 @@ public:
std::string const getBabelOptions() const;
/// The definitions needed by the document's textclass
std::string const getTClassPreamble() const;
/// The sgml definitions needed by the document (dobook/linuxdoc)
/// The sgml definitions needed by the document (docbook)
std::string const getLyXSGMLEntities() const;
/// The SGML Required to include the files added with includeFile();
std::string const getIncludedFiles(std::string const & fname) const;

View File

@ -968,14 +968,6 @@ bool Buffer::isDocBook() const
}
bool Buffer::isSGML() const
{
LyXTextClass const & tclass = params().getLyXTextClass();
return tclass.outputType() == DOCBOOK;
}
void Buffer::makeDocBookFile(string const & fname,
OutputParams const & runparams,
bool const body_only)

View File

@ -155,14 +155,6 @@ public:
bool output_preamble = true,
bool output_body = true);
///
void makeLinuxDocFile(std::string const & filename,
OutputParams const & runparams_in,
bool only_body = false);
///
void writeLinuxDocSource(std::ostream & os, std::string const & filename,
OutputParams const & runparams_in,
bool only_body = false);
///
void makeDocBookFile(std::string const & filename,
OutputParams const & runparams_in,
bool only_body = false);
@ -240,13 +232,8 @@ public:
/// returns \c true if the buffer contains a LaTeX document
bool isLatex() const;
/// returns \c true if the buffer contains a LinuxDoc document
bool isLinuxDoc() const;
/// returns \c true if the buffer contains a DocBook document
bool isDocBook() const;
/** returns \c true if the buffer contains either a LinuxDoc
or DocBook document */
bool isSGML() const;
/// returns \c true if the buffer contains a Wed document
bool isLiterate() const;
@ -353,7 +340,7 @@ public:
StableDocIterator getAnchor() const { return anchor_; }
///
void changeRefsIfUnique(std::string const & from, std::string const & to);
/// get source code (latex/docbook/linuxdoc) for some paragraphs, or all paragraphs
/// get source code (latex/docbook) for some paragraphs, or all paragraphs
/// including preamble
void getSourceCode(std::ostream & os, lyx::pit_type par_begin, lyx::pit_type par_end, bool full_source);

View File

@ -153,7 +153,7 @@ public:
///
int tocdepth() const;
/// Can be LaTeX, LinuxDoc, etc.
/// Can be LaTeX, DocBook, etc.
OutputType outputType() const;
///
@ -213,7 +213,7 @@ private:
int secnumdepth_;
/// header depth to appear in table of contents
int tocdepth_;
/// Can be LaTeX, LinuxDoc, etc.
/// Can be LaTeX, DocBook, etc.
OutputType outputType_;
/** Base font. The paragraph and layout fonts are resolved against
this font. This has to be fully instantiated. Attributes