mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix spellchecker crash ; implement status info for read-only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2122 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
467323b2b8
commit
1ed521c6ca
@ -1,3 +1,8 @@
|
||||
2001-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* src/lyxfunc.C (getStatus): handle LFUN_READ_ONLY_TOGGLE so that
|
||||
it can be used as a menu entry
|
||||
|
||||
2001-06-11 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* autogen.sh: remove kde stuff
|
||||
|
@ -1,3 +1,7 @@
|
||||
2001-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* ui/default.ui: add a (commented out) entry for read-only
|
||||
|
||||
2001-06-12 Peter Suetterlin <P.Suetterlin@astro.uu.nl>
|
||||
|
||||
* examples/aa_head.lyx:
|
||||
|
@ -99,6 +99,7 @@ Menuset
|
||||
Item "Math Panel|l" "math-panel"
|
||||
Submenu "Math|M" "edit_math"
|
||||
Separator
|
||||
#Item "Read Only" "buffer-toggle-read-only"
|
||||
Item "Spellchecker...|S" "spellchecker"
|
||||
Item "Check TeX|h" "buffer-chktex"
|
||||
Item "Remove All Error Boxes|E" "error-remove-all"
|
||||
|
@ -1,3 +1,10 @@
|
||||
2001-06-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* lyxfunc.C (getStatus): support LFUN_READ_ONLY_TOGGLE
|
||||
|
||||
* text2.C (SetSelectionOverString): do not test str[i]==0 for end
|
||||
of string
|
||||
|
||||
2001-06-13 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* buffer.C (parseSingleLyXformat2Token): fix compatability reading
|
||||
|
@ -521,6 +521,10 @@ LyXFunc::func_status LyXFunc::getStatus(int ac,
|
||||
if (font.latex() == LyXFont::ON)
|
||||
box = LyXFunc::ToggleOn;
|
||||
break;
|
||||
case LFUN_READ_ONLY_TOGGLE:
|
||||
if (buf->isReadonly())
|
||||
box = LyXFunc::ToggleOn;
|
||||
break;
|
||||
default:
|
||||
box = LyXFunc::OK;
|
||||
break;
|
||||
|
@ -1925,8 +1925,11 @@ LyXParagraph * LyXText::FirstParagraph() const
|
||||
// sets the selection over the number of characters of string, no check!!
|
||||
void LyXText::SetSelectionOverString(BufferView * bview, string const & str)
|
||||
{
|
||||
if (str.empty())
|
||||
return;
|
||||
|
||||
selection.cursor = cursor;
|
||||
for (int i = 0; str[i]; ++i)
|
||||
for (string::size_type i = 0; i < str.length(); ++i)
|
||||
CursorRight(bview);
|
||||
SetSelection(bview);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user