Only changed insert-date to date-insert conforming to standard :)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@518 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Vigna 2000-02-01 13:58:06 +00:00
parent 96be8c8193
commit 44d8adab0e
7 changed files with 13 additions and 11 deletions

View File

@ -1,5 +1,7 @@
2000-02-01 Juergen Vigna <jug@sad.it> 2000-02-01 Juergen Vigna <jug@sad.it>
* src/lyxfunc.C lyxrc.C: changed from insert-date to date-insert
* po/it.po: updated a bit the italian po file and also changed the * po/it.po: updated a bit the italian po file and also changed the
'file nuovo' for newfile to 'filenuovo' without a space, this did 'file nuovo' for newfile to 'filenuovo' without a space, this did
annoy me a lot :) annoy me a lot :)

View File

@ -570,4 +570,4 @@
# This accepts the normal strftime formats have a look at man strftime # This accepts the normal strftime formats have a look at man strftime
# for nowing exactly what the formats are for and how to use them. # for nowing exactly what the formats are for and how to use them.
# #
#\insert_date_format "%A, %B %d %Y" #\date_insert_format "%A, %e. %B %Y"

View File

@ -363,7 +363,7 @@ void LyXAction::init()
{ LFUN_WORDRIGHTSEL, "word-forward-select", "", ReadOnly }, { LFUN_WORDRIGHTSEL, "word-forward-select", "", ReadOnly },
{ LFUN_LOWCASE_WORD, "word-lowcase", "", Noop }, { LFUN_LOWCASE_WORD, "word-lowcase", "", Noop },
{ LFUN_UPCASE_WORD, "word-upcase", "", Noop }, { LFUN_UPCASE_WORD, "word-upcase", "", Noop },
{ LFUN_INSERT_DATE, "insert-date", "", Noop }, { LFUN_DATE_INSERT, "date-insert", "", Noop },
{ LFUN_NOACTION, "", "", Noop } { LFUN_NOACTION, "", "", Noop }
}; };

View File

@ -242,7 +242,7 @@ enum kb_action {
LFUN_MENU_SEPARATOR, // Asger 990220 LFUN_MENU_SEPARATOR, // Asger 990220
LFUN_SEQUENCE, // Andre' 991111 LFUN_SEQUENCE, // Andre' 991111
LFUN_SAVEPREFERENCES, // Lgb 991127 LFUN_SAVEPREFERENCES, // Lgb 991127
LFUN_INSERT_DATE, // jdblair 20000131 LFUN_DATE_INSERT, // jdblair 20000131
LFUN_LASTACTION /* this marks the end of the table */ LFUN_LASTACTION /* this marks the end of the table */
}; };

View File

@ -2350,7 +2350,7 @@ string LyXFunc::Dispatch(int ac,
} }
break; break;
case LFUN_INSERT_DATE: // jdblair: insert-date cmd case LFUN_DATE_INSERT: // jdblair: date-insert cmd
{ {
char datetmp[32]; char datetmp[32];
int datetmp_len; int datetmp_len;
@ -2364,7 +2364,7 @@ string LyXFunc::Dispatch(int ac,
if (!argument.empty()) if (!argument.empty())
arg = argument; arg = argument;
else if (arg.empty()) else if (arg.empty())
arg = lyxrc->insert_date_format; arg = lyxrc->date_insert_format;
datetmp_len = (int) strftime(datetmp, 32, arg.c_str(), now_tm); datetmp_len = (int) strftime(datetmp, 32, arg.c_str(), now_tm);
for (int i = 0; i < datetmp_len; i++) { for (int i = 0; i < datetmp_len; i++) {
owner->view()->text->InsertChar(datetmp[i]); owner->view()->text->InsertChar(datetmp[i]);

View File

@ -133,7 +133,7 @@ enum LyXRCTags {
RC_VIEWPDF_COMMAND, RC_VIEWPDF_COMMAND,
RC_PDF_TO_PS_COMMAND, RC_PDF_TO_PS_COMMAND,
RC_DVI_TO_PS_COMMAND, RC_DVI_TO_PS_COMMAND,
RC_INSERT_DATE_FORMAT, RC_DATE_INSERT_FORMAT,
RC_LAST RC_LAST
}; };
@ -168,7 +168,7 @@ static keyword_item lyxrcTags[] = {
{ "\\font_encoding", RC_FONT_ENCODING }, { "\\font_encoding", RC_FONT_ENCODING },
{ "\\html_command", RC_HTML_COMMAND }, { "\\html_command", RC_HTML_COMMAND },
{ "\\input", RC_INPUT }, { "\\input", RC_INPUT },
{ "\\insert_date_format", RC_INSERT_DATE_FORMAT }, { "\\date_insert_format", RC_DATE_INSERT_FORMAT },
{ "\\kbmap", RC_KBMAP }, { "\\kbmap", RC_KBMAP },
{ "\\kbmap_primary", RC_KBMAP_PRIMARY }, { "\\kbmap_primary", RC_KBMAP_PRIMARY },
{ "\\kbmap_secondary", RC_KBMAP_SECONDARY }, { "\\kbmap_secondary", RC_KBMAP_SECONDARY },
@ -325,7 +325,7 @@ LyXRC::LyXRC()
hasBindFile = false; hasBindFile = false;
defaultKeyBindings(); defaultKeyBindings();
/// ///
insert_date_format = "%A, %B %d %Y"; date_insert_format = "%A, %e. %B %Y";
} }
@ -907,9 +907,9 @@ int LyXRC::read(string const & filename)
if (lexrc.next()) if (lexrc.next())
make_backup = lexrc.GetBool(); make_backup = lexrc.GetBool();
break; break;
case RC_INSERT_DATE_FORMAT: case RC_DATE_INSERT_FORMAT:
if (lexrc.next()) if (lexrc.next())
insert_date_format = lexrc.GetString(); date_insert_format = lexrc.GetString();
break; break;
case RC_LAST: break; // this is just a dummy case RC_LAST: break; // this is just a dummy
} }

View File

@ -198,7 +198,7 @@ public:
/// ///
string lyxpipes; string lyxpipes;
/// ///
string insert_date_format; string date_insert_format;
private: private:
/// ///