Abdelrazak Younes
37e389baf7
Fix http://bugzilla.lyx.org/show_bug.cgi?id=5191
...
Patch from Vincent van Ravesteijn
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 12:59:36 +00:00
Enrico Forestieri
8d6b5113ec
We may have buffers with different encodings, that, in turn, may also
...
be different from the language default ones.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26290 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 08:17:00 +00:00
Enrico Forestieri
1c362c80b2
Specify that we are in math mode. This avoids unnecessary \ensuremath
...
commands when using math in text mode (such as in $\text{$\phi$}$, where
\phi would be enclosed in \ensuremath{} as it is inside \text{}).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:04:05 +00:00
Enrico Forestieri
ad91dd139c
Take into account the latex encoding when generating math preview snippets.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:02:08 +00:00
Jürgen Spitzmüller
2179c671cf
better naming for encoding default, as discussed in bug 4971.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-01 08:39:19 +00:00
Uwe Stöhr
ed5fcd95ac
InsetHyperlink.cpp: coding style change according to André's advice
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26269 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 14:52:56 +00:00
Abdelrazak Younes
cc8653b95e
potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5168
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 09:25:55 +00:00
Uwe Stöhr
ac3f391b46
InsetHyperlink.cpp: fix a bug I introduced in r26218
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 22:44:48 +00:00
Pavel Sanda
2d811e48e2
Get rid of annoying tooltips. ERT tooltip survived for the time being.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg142984.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:38:51 +00:00
Pavel Sanda
8a478b5ab8
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5093 .
...
Patch by Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:31:04 +00:00
Pavel Sanda
8b62eb2c64
Silence warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26240 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-27 20:24:18 +00:00
Richard Heck
9c2a1a828a
Quick fix for a problem noted by Stefan. The better fix is to migrate this
...
dialog, and all the others, to the new framework. GuiRef still inherits from
GuiDialog, rather than from DialogView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-25 17:38:57 +00:00
André Pönitz
3a5e4ab8ca
more appropriate behaviour on assert
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 21:24:21 +00:00
André Pönitz
68c1719929
fix off-by-two drawing error
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26232 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 21:16:09 +00:00
Pavel Sanda
a60eee1daf
VCS: add notification
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26231 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 20:36:23 +00:00
André Pönitz
aaff139335
remove superflous lyx:: qualification
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 20:29:20 +00:00
Jürgen Spitzmüller
c0ff4f48e5
* src/insets/InsetNewline.cpp:
...
- revert accidental commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26228 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 15:07:31 +00:00
Jürgen Spitzmüller
fb12b282f1
* src/inset/InsetNomencl.cpp:
...
- implemet inset tooltip.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26227 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 15:02:44 +00:00
Jürgen Spitzmüller
641708ac4b
* separate nomencl processing command from index processing command, since nomencl
...
relies on makeindex (with specific options) [bug 5184].
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26226 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-23 09:44:00 +00:00
Jürgen Spitzmüller
b556fe1bcb
* src/inset/InsetNomencl.cpp:
...
- indicate content of nomencl inset (bug 5183).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26223 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-22 16:12:29 +00:00
Uwe Stöhr
a258a932d9
InsetHyperlink.cpp: add "http://" when the hyperlink type is web and no protocol is specified (as requested on the lyx-devel list)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26218 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 22:06:10 +00:00
Jürgen Spitzmüller
0d63bbae14
* src/insets/InsetFloat{.cpp,h}:
...
- subfloat labelling fixes from Vincent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 14:56:12 +00:00
Jürgen Spitzmüller
26e3e050a4
* src/Paragraph.cpp:
...
- use \textquotedbl for straight quotes in T1 encoding (bug 5091).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26212 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 08:51:56 +00:00
Jürgen Spitzmüller
9bfc1c9d46
final final touch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26208 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 07:51:40 +00:00
Jürgen Spitzmüller
db9885f882
final touch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26207 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 07:48:24 +00:00
Jürgen Spitzmüller
5da25426f5
* adjust line lengths
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26206 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 07:30:09 +00:00
Jürgen Spitzmüller
cd42bffb52
whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26205 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-19 07:06:51 +00:00
Jürgen Spitzmüller
a2906cb877
** proper implementation of pLaTeX by Tetsuya Makimura and me, fixes many remaining problems and bugs with language "japanese" (bugs 4863, 4290, 4700 and partially 4697) **
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26200 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-18 17:26:09 +00:00
Jean-Marc Lasgouttes
17dd645862
Bug 5173: Undo Grouping
...
http://bugzilla.lyx.org/show_bug.cgi?id=5173
* Undo.cpp (beginUndoGroup, endUndoGroup): new methods.
(UndoElement): add group_id member
(UndoElementStack): when removing old undo entries, make sure to
remove whole groups.
(Undo::Private): add group_id and group_level (for nesting) members.
(doTextUndoOrRedo): new method. Apply _one_ UndoElement.
(textUndoOrRedo): call doTextUndoOrRedo on each element of the current
group.
(recordUndoFullDocument): put inside an undo group
* Cursor.cpp (beginUndoGroup, endUndoGroup): new methods.
* LyXFunc.cpp (dispatch): add calls to (begin|end)UndoGroup.
* lyxfind.cpp (replaceAll): use several recordUndo instead
of one recordUndoFullDocument.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26178 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 19:24:56 +00:00
Jean-Marc Lasgouttes
608c46b080
Add a new debug channel UNDO (in place of the unused ROFF)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26177 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 19:09:42 +00:00
Jean-Marc Lasgouttes
d0827e017e
Fix crash when the Gui Name of a toolbar is not plain ascii. This
...
happens for example with fr.po.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26176 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 18:43:46 +00:00
Jean-Marc Lasgouttes
e22b5d0718
Fix bug 2449: Insertion of math delimiter cannot completely be undone
...
http://bugzilla.lyx.org/show_bug.cgi?id=2449
* Text3.cpp (dispatch): handle undo for LFUN_MATH_INSERT,
LFUN_MATH_MATRIX, LFUN_MATH_DELIM and LFUN_MATH_BIGDELIM.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26174 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 16:15:20 +00:00
Jean-Marc Lasgouttes
97e6476feb
Fix bug 3407: Undo with text-in-mathmode
...
http://bugzilla.lyx.org/show_bug.cgi?id=3407
* InsetMathNest.cpp (doDispatch/LFUN_MATH_MODE): handle undo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26173 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 15:50:42 +00:00
Enrico Forestieri
2566c9496d
Fix bug 5172: Toolbar names are not translated
...
http://bugzilla.lyx.org/show_bug.cgi?id=5172
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26171 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 10:56:53 +00:00
Richard Heck
10585e780c
One more.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26170 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 01:03:51 +00:00
Richard Heck
a40183c0a9
Add a comment about how to clean this up. This looks like post-1.6 stuff,
...
since it doesn't actually affect current function.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26169 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-15 01:03:32 +00:00
Richard Heck
b899cf8f3d
A FIXME for later.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26164 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 15:53:32 +00:00
Richard Heck
42c5781bce
Do the last commit the right way. The previous one led to a crash because I wasn't
...
returning a fully realized font.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26163 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 15:44:36 +00:00
Richard Heck
004b672399
Fix bug discussed in this thread: http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg142814.html . The problem was that the font information in InsetLayout was not being properly integrated into the routines that set the active font.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26162 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 15:24:12 +00:00
Jean-Marc Lasgouttes
771673ccbb
Fix bug 5149: Pasting outside math when cursor is inside
...
http://bugzilla.lyx.org/show_bug.cgi?id=5149
Make sure that the cursor is set to the right place before doing a middle-
button paste.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 11:03:51 +00:00
Jean-Marc Lasgouttes
5ca204ea10
Fix bug 5156 http://bugzilla.lyx.org/show_bug.cgi?id=5156
...
Be more strict when evaluating whether the cursor is inside the selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26159 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 10:28:20 +00:00
Jean-Marc Lasgouttes
aa67d5eb64
Fix bug 5065: DEPM fails with "cursor follows scrollbar"
...
http://bugzilla.lyx.org/show_bug.cgi?id=5065
* BufferView.cpp (setCursorFromScrollbar): makes sure that the mouse is set using mouseSetCursor (so that dEPM can trigger).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26158 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 09:59:04 +00:00
Jean-Marc Lasgouttes
1b2c73c555
* BufferView.cpp (contextMenu): If there is a selection, return the
...
containing inset menu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26157 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 09:45:42 +00:00
Richard Heck
98c7c96ca4
Remove some unused code, and replace with a comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26156 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-14 07:03:46 +00:00
Peter Kümmel
1da756723a
fix merged build
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 21:39:59 +00:00
Richard Heck
6f7136fc7b
whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 19:58:00 +00:00
Richard Heck
cf33f88943
We should at least also check the index. But probably more is needed.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26147 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 17:05:34 +00:00
Jean-Marc Lasgouttes
1bad3e5232
avoid empty selections (patch from Vincent van Ravesteijn)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26146 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 15:22:41 +00:00
Jean-Marc Lasgouttes
3589a75a11
clearSelection invokes resetAnchor
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 15:13:37 +00:00
Jean-Marc Lasgouttes
3d9f151e00
set cursor correctly when right clicking on inset button
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 15:01:12 +00:00