mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 17:09:41 +00:00
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:
parent
2a71306d77
commit
5a0176a6eb
@ -99,14 +99,6 @@
|
|||||||
{\AddLayout[\firstelement]{\layoutname}{#2}{true}}
|
{\AddLayout[\firstelement]{\layoutname}{#2}{true}}
|
||||||
{\AddLayout[\firstelement]{\layoutname}{#2}{false}}
|
{\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.
|
% Only for compatibility. Will be removed later.
|
||||||
\let\DeclareSGMLClass=\DeclareDocBookClass
|
\let\DeclareSGMLClass=\DeclareDocBookClass
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ public:
|
|||||||
std::string const getBabelOptions() const;
|
std::string const getBabelOptions() const;
|
||||||
/// The definitions needed by the document's textclass
|
/// The definitions needed by the document's textclass
|
||||||
std::string const getTClassPreamble() const;
|
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;
|
std::string const getLyXSGMLEntities() const;
|
||||||
/// The SGML Required to include the files added with includeFile();
|
/// The SGML Required to include the files added with includeFile();
|
||||||
std::string const getIncludedFiles(std::string const & fname) const;
|
std::string const getIncludedFiles(std::string const & fname) const;
|
||||||
|
@ -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,
|
void Buffer::makeDocBookFile(string const & fname,
|
||||||
OutputParams const & runparams,
|
OutputParams const & runparams,
|
||||||
bool const body_only)
|
bool const body_only)
|
||||||
|
15
src/buffer.h
15
src/buffer.h
@ -155,14 +155,6 @@ public:
|
|||||||
bool output_preamble = true,
|
bool output_preamble = true,
|
||||||
bool output_body = 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,
|
void makeDocBookFile(std::string const & filename,
|
||||||
OutputParams const & runparams_in,
|
OutputParams const & runparams_in,
|
||||||
bool only_body = false);
|
bool only_body = false);
|
||||||
@ -240,13 +232,8 @@ public:
|
|||||||
|
|
||||||
/// returns \c true if the buffer contains a LaTeX document
|
/// returns \c true if the buffer contains a LaTeX document
|
||||||
bool isLatex() const;
|
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
|
/// returns \c true if the buffer contains a DocBook document
|
||||||
bool isDocBook() const;
|
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
|
/// returns \c true if the buffer contains a Wed document
|
||||||
bool isLiterate() const;
|
bool isLiterate() const;
|
||||||
|
|
||||||
@ -353,7 +340,7 @@ public:
|
|||||||
StableDocIterator getAnchor() const { return anchor_; }
|
StableDocIterator getAnchor() const { return anchor_; }
|
||||||
///
|
///
|
||||||
void changeRefsIfUnique(std::string const & from, std::string const & to);
|
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
|
/// including preamble
|
||||||
void getSourceCode(std::ostream & os, lyx::pit_type par_begin, lyx::pit_type par_end, bool full_source);
|
void getSourceCode(std::ostream & os, lyx::pit_type par_begin, lyx::pit_type par_end, bool full_source);
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ public:
|
|||||||
///
|
///
|
||||||
int tocdepth() const;
|
int tocdepth() const;
|
||||||
|
|
||||||
/// Can be LaTeX, LinuxDoc, etc.
|
/// Can be LaTeX, DocBook, etc.
|
||||||
OutputType outputType() const;
|
OutputType outputType() const;
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -213,7 +213,7 @@ private:
|
|||||||
int secnumdepth_;
|
int secnumdepth_;
|
||||||
/// header depth to appear in table of contents
|
/// header depth to appear in table of contents
|
||||||
int tocdepth_;
|
int tocdepth_;
|
||||||
/// Can be LaTeX, LinuxDoc, etc.
|
/// Can be LaTeX, DocBook, etc.
|
||||||
OutputType outputType_;
|
OutputType outputType_;
|
||||||
/** Base font. The paragraph and layout fonts are resolved against
|
/** Base font. The paragraph and layout fonts are resolved against
|
||||||
this font. This has to be fully instantiated. Attributes
|
this font. This has to be fully instantiated. Attributes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user