* remove outdated RC_CUSTOM_EXPORT_COMMAND and RC_CUSTOM_EXPORT_FORMAT.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29183 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-04-10 11:11:14 +00:00
parent f71a2f708e
commit 823e44822e
5 changed files with 1 additions and 50 deletions

View File

@ -21,6 +21,7 @@ The following variables are obsoleted in 2.0
- \plaintext_roff_command (was not used anymore) - \plaintext_roff_command (was not used anymore)
- \spell_command and \use_spell_lib (ispell support has been removed) - \spell_command and \use_spell_lib (ispell support has been removed)
- \custom_export_command and \custom_export_format
The following new LyX functions have been introduced: The following new LyX functions have been introduced:

View File

@ -1891,8 +1891,6 @@ void actOnUpdatedPrefs(LyXRC const & lyxrc_orig, LyXRC const & lyxrc_new)
case LyXRC::RC_COPIER: case LyXRC::RC_COPIER:
case LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR: case LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR:
case LyXRC::RC_SCROLL_BELOW_DOCUMENT: case LyXRC::RC_SCROLL_BELOW_DOCUMENT:
case LyXRC::RC_CUSTOM_EXPORT_COMMAND:
case LyXRC::RC_CUSTOM_EXPORT_FORMAT:
case LyXRC::RC_DATE_INSERT_FORMAT: case LyXRC::RC_DATE_INSERT_FORMAT:
case LyXRC::RC_DEFAULT_LANGUAGE: case LyXRC::RC_DEFAULT_LANGUAGE:
case LyXRC::RC_GUI_LANGUAGE: case LyXRC::RC_GUI_LANGUAGE:

View File

@ -78,8 +78,6 @@ LexerKeyword lyxrcTags[] = {
{ "\\converter_cache_maxage", LyXRC::RC_CONVERTER_CACHE_MAXAGE }, { "\\converter_cache_maxage", LyXRC::RC_CONVERTER_CACHE_MAXAGE },
{ "\\copier", LyXRC::RC_COPIER }, { "\\copier", LyXRC::RC_COPIER },
{ "\\cursor_follows_scrollbar", LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR }, { "\\cursor_follows_scrollbar", LyXRC::RC_CURSOR_FOLLOWS_SCROLLBAR },
{ "\\custom_export_command", LyXRC::RC_CUSTOM_EXPORT_COMMAND },
{ "\\custom_export_format", LyXRC::RC_CUSTOM_EXPORT_FORMAT },
{ "\\date_insert_format", LyXRC::RC_DATE_INSERT_FORMAT }, { "\\date_insert_format", LyXRC::RC_DATE_INSERT_FORMAT },
{ "\\def_file", LyXRC::RC_DEFFILE }, { "\\def_file", LyXRC::RC_DEFFILE },
{ "\\default_language", LyXRC::RC_DEFAULT_LANGUAGE }, { "\\default_language", LyXRC::RC_DEFAULT_LANGUAGE },
@ -227,7 +225,6 @@ void LyXRC::setDefaults()
document_path.erase(); document_path.erase();
view_dvi_paper_option.erase(); view_dvi_paper_option.erase();
default_papersize = PAPER_DEFAULT; default_papersize = PAPER_DEFAULT;
custom_export_format = "ps";
default_view_format = "pdf2"; default_view_format = "pdf2";
chktex_command = "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38"; chktex_command = "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38";
bibtex_command = "bibtex"; bibtex_command = "bibtex";
@ -557,14 +554,6 @@ int LyXRC::read(Lexer & lexrc)
lexrc >> print_paper_flag; lexrc >> print_paper_flag;
break; break;
case RC_CUSTOM_EXPORT_COMMAND:
lexrc >> custom_export_command;
break;
case RC_CUSTOM_EXPORT_FORMAT:
lexrc >> custom_export_format;
break;
case RC_DEFAULT_PAPERSIZE: case RC_DEFAULT_PAPERSIZE:
if (lexrc.next()) { if (lexrc.next()) {
string const size = ascii_lowercase(lexrc.getString()); string const size = ascii_lowercase(lexrc.getString());
@ -1898,30 +1887,6 @@ void LyXRC::write(ostream & os, bool ignore_system_lyxrc, string const & name) c
if (tag != RC_LAST) if (tag != RC_LAST)
break; break;
os << "\n#\n"
<< "# EXPORT SECTION ####################################\n"
<< "#\n\n";
case RC_CUSTOM_EXPORT_COMMAND:
if (ignore_system_lyxrc ||
custom_export_command
!= system_lyxrc.custom_export_command) {
os << "\\custom_export_command \""
<< custom_export_command
<< "\"\n";
}
if (tag != RC_LAST)
break;
case RC_CUSTOM_EXPORT_FORMAT:
if (ignore_system_lyxrc ||
custom_export_format
!= system_lyxrc.custom_export_format) {
os << "\\custom_export_format \"" << custom_export_format
<< "\"\n";
}
if (tag != RC_LAST)
break;
os << "\n#\n" os << "\n#\n"
<< "# TEX SECTION #######################################\n" << "# TEX SECTION #######################################\n"
<< "#\n\n"; << "#\n\n";
@ -2552,12 +2517,6 @@ string const LyXRC::getDescription(LyXRCTags tag)
str = _("Show a small box around a Math Macro with the macro name when the cursor is inside."); str = _("Show a small box around a Math Macro with the macro name when the cursor is inside.");
break; break;
case RC_CUSTOM_EXPORT_COMMAND:
break;
case RC_CUSTOM_EXPORT_FORMAT:
break;
case RC_DATE_INSERT_FORMAT: case RC_DATE_INSERT_FORMAT:
//xgettext:no-c-format //xgettext:no-c-format
str = _("This accepts the normal strftime formats; see man strftime for full details. E.g.\"%A, %e. %B %Y\"."); str = _("This accepts the normal strftime formats; see man strftime for full details. E.g.\"%A, %e. %B %Y\".");

View File

@ -64,8 +64,6 @@ public:
RC_COPIER, RC_COPIER,
RC_CURSOR_FOLLOWS_SCROLLBAR, RC_CURSOR_FOLLOWS_SCROLLBAR,
RC_MAC_LIKE_WORD_MOVEMENT, RC_MAC_LIKE_WORD_MOVEMENT,
RC_CUSTOM_EXPORT_COMMAND,
RC_CUSTOM_EXPORT_FORMAT,
RC_DATE_INSERT_FORMAT, RC_DATE_INSERT_FORMAT,
RC_DEFFILE, RC_DEFFILE,
RC_DEFAULT_LANGUAGE, RC_DEFAULT_LANGUAGE,
@ -238,10 +236,6 @@ public:
std::string print_paper_flag; std::string print_paper_flag;
/// ///
std::string print_paper_dimension_flag; std::string print_paper_dimension_flag;
///
std::string custom_export_command;
///
std::string custom_export_format;
/// option for telling the dvi viewer about the paper size /// option for telling the dvi viewer about the paper size
std::string view_dvi_paper_option; std::string view_dvi_paper_option;
/// default paper size for local xdvi/dvips/ghostview/whatever /// default paper size for local xdvi/dvips/ghostview/whatever

View File

@ -142,7 +142,6 @@ bool GuiSendTo::isValid()
bool GuiSendTo::initialiseParams(string const &) bool GuiSendTo::initialiseParams(string const &)
{ {
format_ = 0; format_ = 0;
command_ = toqstr(lyxrc.custom_export_command);
paramsToDialog(format_, command_); paramsToDialog(format_, command_);
return true; return true;
} }