mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Remove DOCBOOK enum values, no more used.
This commit is contained in:
parent
8cffd3a5db
commit
25bb51c865
@ -2760,13 +2760,6 @@ string BufferParams::getDefaultOutputFormat() const
|
||||
if (!default_output_format.empty()
|
||||
&& default_output_format != "default")
|
||||
return default_output_format;
|
||||
if (isDocBook()) {
|
||||
FormatList const & formats = exportableFormats(true);
|
||||
if (formats.empty())
|
||||
return string();
|
||||
// return the first we find
|
||||
return formats.front()->name();
|
||||
}
|
||||
if (encoding().package() == Encoding::japanese)
|
||||
return lyxrc.default_platex_view_format;
|
||||
if (useNonTeXFonts)
|
||||
@ -2805,12 +2798,6 @@ bool BufferParams::isLiterate() const
|
||||
}
|
||||
|
||||
|
||||
bool BufferParams::isDocBook() const
|
||||
{
|
||||
return documentClass().outputType() == DOCBOOK;
|
||||
}
|
||||
|
||||
|
||||
void BufferParams::readPreamble(Lexer & lex)
|
||||
{
|
||||
if (lex.getString() != "\\begin_preamble")
|
||||
|
@ -184,8 +184,6 @@ public:
|
||||
|
||||
/// returns \c true if the buffer contains a LaTeX document
|
||||
bool isLatex() const;
|
||||
/// returns \c true if the buffer contains a DocBook document
|
||||
bool isDocBook() const;
|
||||
/// returns \c true if the buffer contains a Wed document
|
||||
bool isLiterate() const;
|
||||
|
||||
|
@ -23,8 +23,6 @@ enum OutputType {
|
||||
///
|
||||
LATEX = 1,
|
||||
///
|
||||
DOCBOOK,
|
||||
///
|
||||
LITERATE
|
||||
};
|
||||
|
||||
|
@ -456,9 +456,6 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
|
||||
case LATEX:
|
||||
outputFormat_ = "latex";
|
||||
break;
|
||||
case DOCBOOK:
|
||||
outputFormat_ = "docbook";
|
||||
break;
|
||||
case LITERATE:
|
||||
outputFormat_ = "literate";
|
||||
break;
|
||||
@ -975,7 +972,6 @@ void TextClass::readTitleType(Lexer & lexrc)
|
||||
void TextClass::readOutputType(Lexer & lexrc)
|
||||
{
|
||||
LexerKeyword outputTypeTags[] = {
|
||||
{ "docbook", DOCBOOK },
|
||||
{ "latex", LATEX },
|
||||
{ "literate", LITERATE }
|
||||
};
|
||||
@ -988,7 +984,6 @@ void TextClass::readOutputType(Lexer & lexrc)
|
||||
lexrc.printError("Unknown output type `$$Token'");
|
||||
return;
|
||||
case LATEX:
|
||||
case DOCBOOK:
|
||||
case LITERATE:
|
||||
outputType_ = static_cast<OutputType>(le);
|
||||
break;
|
||||
|
@ -106,7 +106,8 @@ KernelDocType Dialog::docType() const
|
||||
if (buffer().params().isLiterate())
|
||||
return LITERATE;
|
||||
|
||||
return DOCBOOK;
|
||||
// This case should not happen.
|
||||
return LATEX;
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,8 +41,7 @@ class GuiView;
|
||||
enum KernelDocType
|
||||
{
|
||||
LATEX,
|
||||
LITERATE,
|
||||
DOCBOOK
|
||||
LITERATE
|
||||
};
|
||||
|
||||
/** \c Dialog collects the different parts of a Model-Controller-View
|
||||
|
@ -1595,7 +1595,7 @@ GuiDocument::GuiDocument(GuiView & lv)
|
||||
// tooltip sensu "KOMA-Script Article [Class 'scrartcl']"
|
||||
QString tooltip = toqstr(bformat(_("%1$s [Class '%2$s']"), guiname, from_utf8(tc.latexname())));
|
||||
if (!available) {
|
||||
docstring const output_type = (tc.outputType() == lyx::DOCBOOK) ? _("DocBook") : _("LaTeX");
|
||||
docstring const output_type = _("LaTeX");
|
||||
tooltip += '\n' + toqstr(bformat(_("Class not found by LyX. "
|
||||
"Please check if you have the matching %1$s class "
|
||||
"and all required packages (%2$s) installed."),
|
||||
|
Loading…
Reference in New Issue
Block a user