insetquote fix; getStatus tweaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2411 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2001-08-03 10:32:20 +00:00
parent 18a610d4d6
commit 757e2c55d8
8 changed files with 34 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2001-08-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lyxinclude.m4: fix the help text of --with-frontend
2001-07-25 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lyxinclude.m4 (LYX_PROG_CXX): do not handle gcc 2.97. Rename

View File

@ -912,8 +912,8 @@ extern int select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func
AC_DEFUN(LYX_USE_FRONTEND,
[AC_MSG_CHECKING(what frontend should be used as main GUI)
AC_ARG_WITH(frontend,
[ --with-frontend[=value] Use THIS frontend as main GUI:
Possible values: xforms,kde,gnome],
[ --with-frontend=THIS Use THIS frontend as main GUI:
Possible values: xforms, qt2, gnome],
[lyx_use_frontend="$withval"], [lyx_use_frontend="xforms"])
AC_MSG_RESULT($lyx_use_frontend)
lyx_flags="$lyx_flags frontend-$lyx_use_frontend"

View File

@ -1,3 +1,7 @@
2001-08-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* ui/default.ui: change 'toggle appendix' entry
2001-07-30 Dekel Tsur <dekelts@tau.ac.il>
* configure.m4: Fix behaviur when latex is not found.

View File

@ -261,7 +261,7 @@ Menuset
Separator
Item "Change Environment Depth|v" "depth-increment"
Item "LaTeX Preamble...|L" "layout-preamble"
Item "Toggle Appendix|A" "appendix"
Item "Start Appendix here|A" "appendix"
Separator
Item "Save Layout as Default|S" "layout-save-default"
End

View File

@ -3279,7 +3279,13 @@ void BufferView::Pimpl::smartQuote()
c = ' ';
hideCursor();
if (!insertInset(new InsetQuotes(c, bv_->buffer()->params)))
LyXLayout const & style = textclasslist.Style(
bv_->buffer()->params.textclass,
lt->cursor.par()->getLayout());
if (style.pass_thru ||
(!insertInset(new InsetQuotes(c, bv_->buffer()->params))))
Dispatch(LFUN_SELFINSERT, "\"");
}

View File

@ -1,3 +1,12 @@
2001-08-03 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* lyxfunc.C (getStatus): add checkbox support for LFUN_APPENDIX
2001-08-02 Kayvan A. Sylvan <kayvan@sylvan.com>
* BufferView_pimpl.C (smartQuote): Added code to exempt pass_thru
layouts from the Quote inset insertion.
2001-08-03 Juergen Vigna <jug@sad.it>
* BufferView_pimpl.C (update): do the fitCursor only at the end!

View File

@ -94,6 +94,7 @@
#include "TextCache.h"
#include "lyxfind.h"
#include "undo_funcs.h"
#include "ParagraphParameters.h"
#include "figureForm.h"
using std::pair;
@ -707,7 +708,7 @@ func_status::value_type LyXFunc::getStatus(int ac,
if (disable)
flag |= func_status::Disabled;
// the font related functions
// the font related functions (and a few others)
func_status::value_type box = func_status::ToggleOff;
LyXFont const & font =
TEXT(false)->real_current_font;
@ -734,6 +735,10 @@ func_status::value_type LyXFunc::getStatus(int ac,
if (buf->isReadonly())
box = func_status::ToggleOn;
break;
case LFUN_APPENDIX:
if (TEXT(false)->cursor.par()->params().startOfAppendix())
box = func_status::ToggleOn;
break;
default:
box = func_status::OK;
break;

View File

@ -785,7 +785,7 @@ InsetFormulaBase::localDispatch(BufferView * bv, kb_action action,
char greek[26] =
{'A', 'B', 'X', 0 , 'E', 0 , 0 , 'H', 'I', 0 ,
'K', 0 , 'M', 'N', 'O', 0 , 0 , 'P', 0 , 'T',
'Y', 0, 0, 0, 0 , 'Z' };
0, 0, 0, 0, 0 , 'Z' };
if ('A' <= c && c <= 'Z' && greek[c - 'A']) {
char_code = LM_TC_RM;