]> git.lyx.org Git - features.git/commitdiff
Find-replce can be used in RO mode; small fixes for Sun CC 5.0
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 17 Dec 1999 14:16:05 +0000 (14:16 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 17 Dec 1999 14:16:05 +0000 (14:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@385 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
po/lyx.pot
src/LyXAction.C
src/LyXAction.h
src/debug.h
src/table.h
src/toolbar.C

index 70f592bc8a603c8bd99c176b2d90ae53bcc8de1e..76303b61a9aa8f6e6fdcef68ffd6c78764008af0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+1999-12-17  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/toolbar.C (set): condition #warning on WITH_WARNINGS
+
+       * src/table.h: add the LOstream.h header
+       * src/debug.h: ditto
+       
+       * src/LyXAction.h: change the explaination of the ReadOnly
+       attribute: is indicates that the function _can_ be used.
+
+       * src/LyXAction.C (init): find-replace _can_ be used in read-only
+       mode. 
+
 1999-12-16  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * src/lyxfont.C (ascent): Make sure that char is _always_ used as
index dd2c1db2b47bed2a17443d52e8480d9a9ad1da6d..a5ad18ce7751040de844f091532414646b4c9895 100644 (file)
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 1999-12-16 14:24+0100\n"
+"POT-Creation-Date: 1999-12-17 14:39+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 9f2dbf5756dfaf2c330b4bb01bf6761b70b50ade..d8b92e9e8df11e08bbdcabab37f89ebb1541e85e 100644 (file)
@@ -186,7 +186,7 @@ void LyXAction::init()
                { LFUN_FILE_NEW, "file-new", "", NoBuffer },
                { LFUN_FILE_OPEN, "file-open", "", NoBuffer },
                { LFUN_MENUSEARCH, "find-replace", N_("Find & Replace"),
-                 Noop },
+                 ReadOnly },
                { LFUN_BOLD, "font-bold", N_("Toggle bold"), Noop },
                { LFUN_CODE, "font-code", N_("Toggle code style"), Noop },
                { LFUN_DEFAULT, "font-default", N_("Default font style"),
index 9e3bc6f346ee2853c624ccf403363441d2ba9c44..1aee9118efd9d8b42d283ecfab80ba508bf299fd 100644 (file)
@@ -45,7 +45,7 @@ public:
        enum func_attrib {
                /// nothing special about this func
                Noop = 0,
-               /// can not be used in RO mode (perhaps this should change)
+               /// can be used in RO mode (perhaps this should change)
                ReadOnly = 1, // ,
                 /// Can be used when there is no document open
                 NoBuffer = 2,
index 3e828d858960edc290201d527bbccc108066bc6b..be866a258d56a47a29dfe9f09703160232e2541a 100644 (file)
@@ -4,6 +4,7 @@
 #define LYXDEBUG_H
 
 #include "LString.h"
+#include "support/LOstream.h"
 #include "support/lstrings.h"
 
 /** Ideally this should have been a namespace, but since we try to be
index 9513a7869f61230bffbe509b06ccf6b73fd61e45..9d2a2383d725cbca8fc8bb701cb4d521ad3f2c48 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "lyxlex.h"
 #include "LString.h"
-
+#include "support/LOstream.h"
 
 /* The features the text class offers for tables */ 
 
index 5b9784cca87da0aac6e2f54ced0cb232acef596c..9eac79392602932f66e10579a2ecc7fd33253a80 100644 (file)
@@ -336,7 +336,9 @@ void Toolbar::set(bool doingmain)
 #endif
 
                        // set the bubble-help (Matthias)
+#ifdef WITH_WARNINGS
 #warning This is dangerous!
+#endif
                        obj->u_vdata = const_cast<char*>(item->help.c_str());
                        // we need to know what toolbar this item
                        // belongs too. (Lgb)