]> git.lyx.org Git - lyx.git/commitdiff
Only changed insert-date to date-insert conforming to standard :)
authorJürgen Vigna <jug@sad.it>
Tue, 1 Feb 2000 13:58:06 +0000 (13:58 +0000)
committerJürgen Vigna <jug@sad.it>
Tue, 1 Feb 2000 13:58:06 +0000 (13:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@518 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
lib/lyxrc.example
src/LyXAction.C
src/commandtags.h
src/lyxfunc.C
src/lyxrc.C
src/lyxrc.h

index d58c04b7144cb7c0f003f8daee0b1023d43a81f0..7ef80a9ea1f7e25597ae73a4df03d00245e76e4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 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
        'file nuovo' for newfile to 'filenuovo' without a space, this did
        annoy me a lot :)
index 4382dfbb4dc6abbb3e0acd07405db322893c13be..c0e1ff34942b09d044e1542841d495b125061568 100644 (file)
 # 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.
 #
-#\insert_date_format "%A, %B %d %Y"
+#\date_insert_format "%A, %e. %B %Y"
index 5e3b6dbfda92b3cc8fd39102d1e60e51a59e520b..b0fa6c6a9c0bb6f59d7c616ebfb747d4de995b12 100644 (file)
@@ -363,7 +363,7 @@ void LyXAction::init()
                { LFUN_WORDRIGHTSEL, "word-forward-select", "", ReadOnly },
                { LFUN_LOWCASE_WORD, "word-lowcase", "", Noop },
                { LFUN_UPCASE_WORD, "word-upcase", "", Noop },
-               { LFUN_INSERT_DATE, "insert-date", "", Noop },
+               { LFUN_DATE_INSERT, "date-insert", "", Noop },
                { LFUN_NOACTION, "", "", Noop }
        };
 
index 3e86f9739d457666c2cc2a050dbba346a94caf40..debdb5ad3d50345440b46e7b61d5097558b667a1 100644 (file)
@@ -242,7 +242,7 @@ enum kb_action {
        LFUN_MENU_SEPARATOR,            // Asger 990220
        LFUN_SEQUENCE,                  // Andre' 991111
        LFUN_SAVEPREFERENCES,           // Lgb 991127
-       LFUN_INSERT_DATE,               // jdblair 20000131
+       LFUN_DATE_INSERT,               // jdblair 20000131
        LFUN_LASTACTION  /* this marks the end of the table */
 };
 
index 184b243151f9c4d5430a3a2b25c320de853f899a..996b3285430b815cf8933b70cccc92645af670f1 100644 (file)
@@ -2350,7 +2350,7 @@ string LyXFunc::Dispatch(int ac,
        }
        break;
 
-       case LFUN_INSERT_DATE:  // jdblair: insert-date cmd
+       case LFUN_DATE_INSERT:  // jdblair: date-insert cmd
        {
                char datetmp[32];
                int datetmp_len;
@@ -2364,7 +2364,7 @@ string LyXFunc::Dispatch(int ac,
                if (!argument.empty())
                        arg = argument;
                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);
                for (int i = 0; i < datetmp_len; i++) {
                        owner->view()->text->InsertChar(datetmp[i]);
index 6ef598ff5bc773b0fde36bd3fb3d622447caf229..0d4dc23cd71081245f93bda253ffd90b92e584be 100644 (file)
@@ -133,7 +133,7 @@ enum LyXRCTags {
        RC_VIEWPDF_COMMAND,
        RC_PDF_TO_PS_COMMAND,
        RC_DVI_TO_PS_COMMAND,
-       RC_INSERT_DATE_FORMAT,
+       RC_DATE_INSERT_FORMAT,
        RC_LAST
 };
 
@@ -168,7 +168,7 @@ static keyword_item lyxrcTags[] = {
        { "\\font_encoding", RC_FONT_ENCODING },
        { "\\html_command", RC_HTML_COMMAND },
        { "\\input", RC_INPUT },
-       { "\\insert_date_format", RC_INSERT_DATE_FORMAT },
+       { "\\date_insert_format", RC_DATE_INSERT_FORMAT },
        { "\\kbmap", RC_KBMAP },
        { "\\kbmap_primary", RC_KBMAP_PRIMARY },
        { "\\kbmap_secondary", RC_KBMAP_SECONDARY },
@@ -325,7 +325,7 @@ LyXRC::LyXRC()
        hasBindFile = false;
        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())
                                make_backup = lexrc.GetBool();
                        break;
-               case RC_INSERT_DATE_FORMAT:
+               case RC_DATE_INSERT_FORMAT:
                        if (lexrc.next())
-                               insert_date_format = lexrc.GetString();
+                               date_insert_format = lexrc.GetString();
                        break;
                case RC_LAST: break; // this is just a dummy
                }
index d485ae51afce24ce0963a6fe80049572e90a86c4..d1d30fbcda7f7a01a7ab91fb7d5ef9d6ce0e99bd 100644 (file)
@@ -198,7 +198,7 @@ public:
        ///
        string lyxpipes;
        ///
-       string insert_date_format;
+       string date_insert_format;
 
 private:
        ///