Commit Graph

239 Commits

Author SHA1 Message Date
Uwe Stöhr
b742ff6406 support for the LaTeX commands \*phantom, fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 00:56:37 +00:00
Jean-Marc Lasgouttes
ec7d9f4593 Fix bug 4741: Pasting with middle mouse button into read only document works
http://bugzilla.lyx.org/show_bug.cgi?id=4741

Create a new LFUN selection-paste (to paste the internal selection), and bind
middle mouse button to
    command-alternatives selection-paste ; primary-selection-paste paragraph


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28154 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 14:24:59 +00:00
Vincent van Ravesteijn
89034a543b Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5560.
Allow users to paste text from e.g. MS Word. This text can be paste from clipboard both as text and as graphics. LyX should prefer to paste it as text.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27988 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:31:32 +00:00
Pavel Sanda
3135ff4959 Line length
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27950 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:51:09 +00:00
Jürgen Spitzmüller
d60537a844 * Text3.cpp:
- enable LFUN_INSET_DISSOLVE for insets at cursor (bug 4985).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27947 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:24:43 +00:00
Pavel Sanda
4e4e8afcc2 Sort order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27940 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-21 01:54:04 +00:00
Pavel Sanda
d9f13a9072 Fix first insert of external material & instant preview.
Bug http://bugzilla.lyx.org/show_bug.cgi?id=5626 .
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146921.html .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27939 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-21 01:53:47 +00:00
Richard Heck
9a67491a3f Make LFUN_FONT_ITAL actually do something.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27712 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 18:47:52 +00:00
André Pönitz
6192345f60 add Buffer * member to DocIterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 11:46:07 +00:00
Jürgen Spitzmüller
df4814e026 Add support for MyThes (i.e., OpenOffice thesauri).
RegExp experts please have a look at the FIXMEs in GuiThesaurus.cpp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27572 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 18:48:25 +00:00
Vincent van Ravesteijn
84a186ebf6 Make sure the selection painting is updated after LFUN_UP or LFUN_DOWN. See http://thread.gmane.org/gmane.editors.lyx.devel/113428
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27567 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 18:03:52 +00:00
André Pönitz
f8f5a7b28d move updateLables to buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:43:49 +00:00
Abdelrazak Younes
4209cbc631 Tommaso patch, part 5, lots of thing to cleanup still but I'll do that afterwards.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27521 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 00:12:21 +00:00
André Pönitz
f1cba8ff64 more latin1..utf8 schanges. all of src/* should be utf8 now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
Enrico Forestieri
28fe97b553 Avoid creating bad math insets with Ctrl+M
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27214 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-31 15:19:39 +00:00
Richard Heck
e275289600 Line length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 15:41:39 +00:00
Richard Heck
70d5f953c9 Fix for another part of 5403, and related bugs, anyway. The InsetLayout
tags should not be so case-dependent, and we ought to use an Enum instead.
of relying upon string comparisons.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 13:32:54 +00:00
Uwe Stöhr
fea9fef1dc Text3.cpp: comment by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27092 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-24 23:09:27 +00:00
Uwe Stöhr
2a69828508 Text3.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5166, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-24 20:56:38 +00:00
Enrico Forestieri
ad41e7d4d7 Remove unneeded include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26985 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 22:45:15 +00:00
Abdelrazak Younes
72e49fbb67 remove unused variables.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26961 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-19 09:23:46 +00:00
Enrico Forestieri
02ebfa000b Fix bug 3397
http://bugzilla.lyx.org/show_bug.cgi?id=3397


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26934 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-17 21:40:11 +00:00
Jürgen Spitzmüller
3109398469 disable some lfuns inside description/list items (bug 223).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26898 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-14 13:27:58 +00:00
Pavel Sanda
792ece8130 Fix whitespaces so the diff between branches is not so huge.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26881 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-13 11:25:37 +00:00
Enrico Forestieri
f505227f6e Smash remaining drawbacks for bug 2315
http://bugzilla.lyx.org/show_bug.cgi?id=2315


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26792 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-06 22:49:30 +00:00
André Pönitz
4c7fdddd74 streamlining setter syntax. using mutable references seems a bit
outlandish compared to the rest of LyX


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 21:27:41 +00:00
Jean-Marc Lasgouttes
a20a4f2ca0 no need to record full document here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26437 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 10:40:53 +00:00
Enrico Forestieri
3e55de70dd Introduce LFUN_FONT_BOLDSYMBOL, performing the same as LFUN_FONT_BOLD
except when in math mode, where \boldsymbol is used instead of \mathbf.
Restore the previous binding of Ctrl-B and make sure that LFUN_FONT_BOLDSYMBOL,
now bound to Ctrl-Alt-B, can be toggled.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:49:11 +00:00
Abdelrazak Younes
2b94a43e38 Header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26415 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:09:08 +00:00
Pavel Sanda
9b1c5d2233 If we call cur.setSelection() in line Text3.cpp:1256 we should require some
sort of repaint, because if the selection is adjusted, we may have to draw the
selection again.

Patch by Vincent.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143572.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26392 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 22:59:09 +00:00
Abdelrazak Younes
d81071086f rev26385: don't know why but some file were not committed...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26387 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 20:19:32 +00:00
Stefan Schimanski
8314b93c04 * enter new macro template and select the name. This save a lot of keystrokes to remoe the long default name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26315 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 15:10:23 +00:00
Abdelrazak Younes
d577bf8c4a Simplify InsetQuotes ctor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 14:12:38 +00:00
Abdelrazak Younes
a5d7f0504d Pass Buffer in InsetQuote ctor. Patch fro Richard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 14:04:01 +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
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
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
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
2d76d3a0c6 Fix bug 5161: Context menu does not respect selection
http://bugzilla.lyx.org/show_bug.cgi?id=5161

	* Text3.cpp (dispatch/LFUN_MOUSE_PRESS): compare the mouse position to
	the bufferview cursor, since cur is already set to the place we
	want; reverse the test for being inside of the selection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26121 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 10:17:31 +00:00
Richard Heck
b3c5c1ca89 Fix crash noticed by Vincent. We don't know that insetText is non-null here!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:56:30 +00:00
Richard Heck
4e2d14a363 Disable nomencl-insert with inappropriate selections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26111 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:31:22 +00:00
Richard Heck
bcedd63443 OK, let's actually get this nomencl-insert thing right.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:15:49 +00:00
Richard Heck
efbf10c5ad Fix my fix for nomencl-insert. The previous one was just a thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26108 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 15:26:06 +00:00
Richard Heck
3d03620a91 Convert LFUN_NOMENCL_INSERT to the newer style, fixing bug 5151.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26107 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 03:11:53 +00:00
Richard Heck
b074fd86d2 Fix bug 5150: Hyperlink makes no sense with multi-paragraph selection, let alone a multicell one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26106 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 02:09:38 +00:00
Richard Heck
9374e68bfd Fix bug 5146. The problem arose when attempting to paste normal text into
a multicell selection. But the more I thought about this, the more it seemed
that pasting into multicell selections shouldn't be allowed. What exactly
ought to happen if the user selects a 2x3 grid of cells and then tries to
paste a 5x5 group of cells? LyX, anyway, just ignores the selection in this 
case, which is not what the user will expect. So let's just not go there.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26099 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 17:28:25 +00:00
Richard Heck
cca78e3c8a Change the "empty layout" to the "plain layout", to try to avoid confusion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26025 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-01 20:57:27 +00:00
Abdelrazak Younes
fa1305ccd3 InsetText: remove InsetText default ctor and make text_ member private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25974 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 12:07:08 +00:00
Abdelrazak Younes
18e9698f6a Fix http://bugzilla.lyx.org/show_bug.cgi?id=5004
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-15 11:06:02 +00:00