Find-replce can be used in RO mode; small fixes for Sun CC 5.0

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@385 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 1999-12-17 14:16:05 +00:00
parent 6f8422af71
commit bc1d43e392
7 changed files with 20 additions and 4 deletions

View File

@ -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

View 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"

View 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"),

View 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,

View 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

View File

@ -18,7 +18,7 @@
#include "lyxlex.h"
#include "LString.h"
#include "support/LOstream.h"
/* The features the text class offers for tables */

View 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)