Commit Graph

15279 Commits

Author SHA1 Message Date
Vincent van Ravesteijn
78bc661ff8 * MathAutoCorrect: kill compiler warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28390 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 01:21:54 +00:00
Vincent van Ravesteijn
2daac3125f * InsetMathNest.cpp: Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28389 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 01:14:48 +00:00
Vincent van Ravesteijn
814a8411eb Reverse unwanted commits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28388 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 01:11:27 +00:00
Vincent van Ravesteijn
f694cf7135 * InsetMathNest.cpp: Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28387 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 01:01:15 +00:00
Vincent van Ravesteijn
4706961841 Fix bug 1802: http://bugzilla.lyx.org/show_bug.cgi?id=1802.
* allows the selection of a whole cell with shift+key
* shift-movement between empty cells with a single keystroke 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28385 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-07 15:24:47 +00:00
Jürgen Spitzmüller
1f58d53deb Bug 5562: Fix command line output of subfigure insets by introducing new OutputParams and LaTeXFeatures members that tell the insets whether they are in a (sub)float.
Later, this can be replaces by a backpointer approach, as proposed at bugzilla (note that there are already similar cases such as InComment or InTableCell, so a backpointer approach would need to adapt the OutputParams methos anyway).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28382 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-07 12:27:24 +00:00
Jean-Marc Lasgouttes
26751d83ee Move the half baked code that guesses whether to default on metric or
imperial units in only one place (instead of thousands of slightly different
copies). Functionally equivalent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28380 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-06 21:24:13 +00:00
Richard Heck
0a1abacc42 Thanks, Pavel...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28379 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-06 20:49:37 +00:00
Richard Heck
a864caf6f4 Move some stuff from InsetFlex to InsetCollapsable, and make use of the
InToc tag in a couple places.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28378 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-06 17:56:47 +00:00
Richard Heck
5ee35ace6f Introduce the InToc tag for InsetLayout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28377 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-06 17:54:33 +00:00
Vincent van Ravesteijn
22f7d3b3ba * InsetTabular.cpp cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28369 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 22:14:57 +00:00
Richard Heck
875163f7e6 This routine does even less. Bye bye.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28367 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 22:02:15 +00:00
Richard Heck
0439d04f9b This routine actually turns out to do nothing: The name gets read and set
in factory.cpp. Bye bye routine.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28366 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 22:01:12 +00:00
Uwe Stöhr
8a0d98e67e - stdmenus.inc: Phantom can contain other things as well, not only text
- LyXAction.cpp: updates and sorting
- GuiPhantom: a dialog to set the different phantom types (stolen from GuiNote)

The Phantom feature should now be complete. Thanks to all who contributed and helped.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28364 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 18:09:36 +00:00
Vincent van Ravesteijn
4b1d73775c Allow commands with parameters in InsetMathGrid. For example 'tabular-feature append-row 4'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28363 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 16:19:38 +00:00
Uwe Stöhr
7a48ee4349 Color.cpp: use a bit darker gray color for phantom text for better readability
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28361 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-05 15:47:48 +00:00
Pavel Sanda
6d74fca5f7 next bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28358 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 20:25:58 +00:00
Georg Baum
cd27d171d5 Partial fix of bug 1476:
Implement infrastructure to add translations to layout files and translate one .inc file.
Some others are missing.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28356 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 20:06:50 +00:00
Pavel Sanda
c676061c2e * Doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28354 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 19:03:16 +00:00
Jean-Marc Lasgouttes
8979fed151 fix undo bug with phantom inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28352 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 17:52:28 +00:00
Richard Heck
e20156cc5f Constness.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28351 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 17:39:33 +00:00
Jean-Marc Lasgouttes
289600e413 some cleanups to the phantom inset. Undo still broken for unknown reasons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28350 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 16:18:43 +00:00
Jean-Marc Lasgouttes
1106072176 Oops! forgot to set a sane layout (bug 4859 again)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28347 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 14:23:16 +00:00
Jean-Marc Lasgouttes
a5e8cc750b avoid creating empty paragraph list also in the case of an inner insettext (bug 4859 again)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28346 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 11:28:29 +00:00
Jean-Marc Lasgouttes
deac053e36 avoid a crash on empty documents (bug 4859)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28345 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 10:46:54 +00:00
Jean-Marc Lasgouttes
9622577c60 fix faulty documentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28344 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-04 09:52:10 +00:00
Vincent van Ravesteijn
45f62ed5de Fix bug 5736: http://bugzilla.lyx.org/show_bug.cgi?id=5736.
If the current TextMetrics does not contain the paragraph the cursor is in, the screen is recentered. Now, the current TextMetrics should be updated to one that does contain the cursor (as we have just recentered)..

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28341 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 23:18:41 +00:00
Richard Heck
ac4e461898 Move a couple routines from InsetFlex to InsetCollapsable so the CustomPars
and ForcePlain tags will work not just with InsetFlex but all InsetCollapsables.
Thanks to Jurgen and JMarc for reminding me I'd meant to do this.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28340 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 21:12:59 +00:00
Richard Heck
6d90ee1f40 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28339 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 21:11:05 +00:00
Jürgen Spitzmüller
b6f67e1d0b some InsetPhantom fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28336 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 10:38:13 +00:00
Jürgen Spitzmüller
96f45fc163 * InsetPhantom.cpp (toolTip):
- fix compiler warning, l7n, simplify.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28335 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 10:03:47 +00:00
Vincent van Ravesteijn
036e61dd17 Fix bug 5731. http://bugzilla.lyx.org/show_bug.cgi?id=5731\nInsert column after the current one, then copy the current one to the new one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 21:44:37 +00:00
Jürgen Spitzmüller
48d5e2a579 please Jean-Marc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 13:53:41 +00:00
Jürgen Spitzmüller
66e455ba29 * InsetMathHull (numbered):
- prevent NULL pointer (bug 5688).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28319 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 13:27:57 +00:00
Jean-Marc Lasgouttes
9adde5af52 disable math functions in places like ERT insets (bug 5703)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28318 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-02 11:27:30 +00:00
Pavel Sanda
77d824af42 more robust version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28316 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-01 23:46:41 +00:00
Pavel Sanda
1f5c703bae Squash warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28315 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-01 23:27:58 +00:00
Pavel Sanda
edd6631e25 VCS: constify, thanks Andre
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28314 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-01 23:23:01 +00:00
Uwe Stöhr
63efb1ffce InsetPhantom.cpp: don't draw a frame around phantom insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28312 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-01 21:21:38 +00:00
Uwe Stöhr
e900790be8 - InsetPhantom.h: remove unneeded declarations
- InsetPhantom.cpp: add tooltips

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28311 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-01 20:18:52 +00:00
Uwe Stöhr
6e506647ab InsetPhantom.cpp: metrics fix for the horizontal arrow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28308 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-01 18:48:48 +00:00
Pavel Sanda
50f4601c20 VCS: add GUI notification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28304 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-31 18:17:36 +00:00
Pavel Sanda
7ff5bd4c54 VCS: adjust internal structure
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28303 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-31 18:01:48 +00:00
Pavel Sanda
6c412e9e90 VCS: add svn locking mechanism
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28302 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-31 17:10:56 +00:00
Pavel Sanda
b3adfd3d26 Better safe than sorry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28299 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 23:40:53 +00:00
Pavel Sanda
80e87042b4 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28296 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 21:01:32 +00:00
Jean-Marc Lasgouttes
f83ae91f05 Add a new command line parameter -e that sets the default (latex) encoding.
This is overridden by any subsequent inputenc command.

The current encoding is also passed down to \input or \included files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28295 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 14:47:06 +00:00
Jean-Marc Lasgouttes
a4391b65ca now that tex2lyx reads the files as utf8, file names should be correct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28294 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 14:42:35 +00:00
Uwe Stöhr
09c05e6725 FuncCode.h: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28293 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 01:04:10 +00:00
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
Pavel Sanda
1f94bc302a cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28291 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-28 23:44:27 +00:00
Pavel Sanda
3124fff5c8 * lfun doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28287 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-28 20:53:53 +00:00
Jürgen Spitzmüller
72b195fa4b * LyXFileDialog.cpp:
- limit workaround for Qt bug that was fixed in Qt 4.3.4 to previous Qt versions
	  (related to bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28284 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-27 08:50:19 +00:00
Uwe Stöhr
6a0cdc2a1e revert r28281
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28282 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 23:50:54 +00:00
Uwe Stöhr
5ae52b3b6c remove the no longer used GuiNote
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28281 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 17:48:38 +00:00
Jürgen Spitzmüller
0f830027a3 * GuiApplication.cpp:
- use the first command in sequence as icon name for command-alternatives.
* lib/ui/stdtoolbars.inc:
	- use command-alternatives for the alignment buttons in the tabular toolbar (bug 5709).
* lib/images/tabular-feature_align-*.png:
* lib/images/tabular-feature_valign-*.png:
	- rename to tabular-feature_m-[v]align-*.png:

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28280 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 17:04:57 +00:00
Pavel Sanda
86ea78391e Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5627
(painting problems after load of instant preview image)

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



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28276 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-25 12:24:03 +00:00
Jürgen Spitzmüller
241ea2fc88 * GuiViewSource.cpp:
- enable widget in read-only mode.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28270 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-24 12:38:05 +00:00
Pavel Sanda
2c9c081e09 Enhance variables for Convertes - add input and original paths.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147425.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28263 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-21 20:08:07 +00:00
Pavel Sanda
5e3d6fe9d5 When more windows are opened ensureBufferClean tries to save different document.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28256 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-20 14:46:18 +00:00
Uwe Stöhr
5f3ef27629 LyXFunc.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28254 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-20 01:04:48 +00:00
Uwe Stöhr
32d26cd44e FuncCode.h: correct comment character
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28253 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-20 00:38:21 +00:00
Uwe Stöhr
783884d3be InsetNote.cpp: fix comment typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28252 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-19 23:59:57 +00:00
Vincent van Ravesteijn
cf40884454 UI Command Buffer improvements.
* the history is stored in the session file and restored in the next LyX session,
* the lists now disappear when the mouse is released in stead of pressed,
* correct enabling/disabling of the up/down button,
* hide the lists when clicked outside the list. Now using the function event() and check for a mouseButtonPressEvent instead of using mouseReleaseEvent(). The latter is only called when the mouse button is released inside the widget, but we want to use this event to detect a mouseclick outside the list.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28250 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 21:50:23 +00:00
Vincent van Ravesteijn
7da84afa62 Adjust the comment for r28242.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28244 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 15:28:25 +00:00
Vincent van Ravesteijn
83f13982fc Avoid crash due to an infinite recursive loop when inset is NULL.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28242 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 15:21:57 +00:00
Vincent van Ravesteijn
d87030a353 Make the Apply button of the GuiCharacter dialog buffer dependent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28240 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:43:03 +00:00
Vincent van Ravesteijn
2afc45c538 Make the GuiCharacter dialog use the new ButtonPolicy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28239 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:41:12 +00:00
Vincent van Ravesteijn
160b0868c9 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:37:14 +00:00
Vincent van Ravesteijn
780742b73a New ButtonPolicy for dialogs with an auto-apply option.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28237 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:33:51 +00:00
Jürgen Spitzmüller
9485531ca0 * LaTeXFeatures.cpp:
- make lyxarrow robust, since \@ifstar is fragile.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28235 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-18 14:00:43 +00:00
Richard Heck
0596363567 Localize a couple strings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28219 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 18:12:02 +00:00
Richard Heck
4856342a1e Whoops. Was programming in perl yesterday....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28218 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 18:04:54 +00:00
Pavel Sanda
8883d5438e Recognize also dia's compressed format
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28216 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 16:31:59 +00:00
Pavel Sanda
aa2aee5c9b Squash warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28205 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 13:49:49 +00:00
Pavel Sanda
f1cc71b3b5 Another one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28204 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 13:38:21 +00:00
Pavel Sanda
31d7519b13 Uncrustify string for translators
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28203 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 13:30:41 +00:00
Jürgen Spitzmüller
933ab5545c * InsetGraphics.{cpp.h}:
- add possibility to count graphics group members.

* GuiGraphics.{cpp, h}:
	- warning message if a deserted group is going to be dissolved

* GraphicsUI.ui:
	- terminology.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28198 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 08:02:52 +00:00
Pavel Sanda
edbbf01dac Not saved automatically
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28197 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 05:52:32 +00:00
Uwe Stöhr
2a41c48394 InsetHyperlink.cpp: the "#" character must not be escaped in the URL field, only in the name field
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28195 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 05:24:05 +00:00
Richard Heck
01d60968f9 This can be a const ref now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28194 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 00:29:32 +00:00
Richard Heck
32950f6c6c Improve the display of BibTeX info in InsetCitation by retrieving missing
fields from the crossref.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28193 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-17 00:16:31 +00:00
Richard Heck
bb24f02188 We'll do the unicode conversion where it's actually needed: where we
calculate what to display.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28191 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 23:42:16 +00:00
Richard Heck
d8bf83a85a Cache the getInfo() return value. This will matter shortly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28190 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 23:40:37 +00:00
Richard Heck
7dcc99fb17 Revert r27975 and 28105, as they are causing too many problems, e.g.,
that search gets messed up, and that files can take forever to load. 
A better way to do this in in process.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28189 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 23:23:14 +00:00
Vincent van Ravesteijn
a5ceef887d Clean up the menus:
* Two new types of menuitems are introduced: Help and Info
* Help messages make sure that the submenu they are in is enabled.
* Empty lists are now represented by a message in brackets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28188 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 20:58:04 +00:00
Vincent van Ravesteijn
70ddcfdd0e Improved description of VC_COMMAND
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28187 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 20:50:15 +00:00
Pavel Sanda
5a6cdebbf2 Now not needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28186 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 15:58:42 +00:00
Jürgen Spitzmüller
be4beae809 * GuiGraphics.cpp:
- remove redundant line.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28185 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 15:39:29 +00:00
Jürgen Spitzmüller
c248ed757b * GuiGraphics.{cpp,h}:
* GraphicsUi.ui:
	- polish UI for graphics groups.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28184 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 14:54:25 +00:00
Jürgen Spitzmüller
b0edde64a0 * environment.cpp:
- correct return value of setenv.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28182 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 14:41:24 +00:00
Vincent van Ravesteijn
650a0261a6 Disable the Edit->Math menu when not in math.
Introduce new LFUN_MATH_FONT_STYLE which takes one of the font styles as an argument. A dispatch is being redirected to math-insert.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28181 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-16 10:35:57 +00:00
Pavel Sanda
26e3d3ff66 Fix make check
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28179 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 22:49:32 +00:00
Jürgen Spitzmüller
a8516f57ee * GuiAbout.cpp:
- fall back to lyx_release_date, if everything else fails.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28173 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 13:56:40 +00:00
Jürgen Spitzmüller
6bb9cf4918 * configure.ac:
- use ISO format for LYX_DATE
* GuiAbout.cpp:
	- make release date translatable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28172 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 13:31:05 +00:00
Martin Vermeer
b4b47d783b Make autocorrect configurable in preferences file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28171 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 09:48:00 +00:00
Uwe Stöhr
06e961047e InsetHyperlink.cpp: - fix my rash r28141
- bugfix allow the usage of "%" in the URL field

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28169 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 02:53:08 +00:00
Vincent van Ravesteijn
36a2d521a6 Fix display of label in GuiPref.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28166 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 19:38:21 +00:00
Jürgen Spitzmüller
94442d8b30 * qt_helpers.{cpp,h}:
- get rid of function lengthAutoToWidgets, which was only used by GuiGraphics
	- new variant of lengthToWidgets that takes a docstring

* Validator.{cpp,h}:
	- the auto text in the Auto validators are customizable

* GuiGraphics.cpp:
	- make the "auto" string translatable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28165 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 17:53:31 +00:00
Jürgen Spitzmüller
5707a39041 * GuiExternal.{cpp,h}:
* ExternalUi.ui:
	- use LengthCombo for width unit.
	- use reliable item data, instead of doing manual recounts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28164 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:47:25 +00:00
Pavel Sanda
82883a05f4 FindAdvSearch. Next patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147338.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:34:56 +00:00
Pavel Sanda
2ae25baf25 oops
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:33:14 +00:00
Jean-Marc Lasgouttes
1b913ff871 fix compilation of check_filetools
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28161 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:18:29 +00:00
Pavel Sanda
5701383b40 Add editable combobox for groups in graphics dialogs as discussed in
http://www.mail-archive.com/lyx-users@lists.lyx.org/msg70194.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28160 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 15:10:15 +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
Jürgen Spitzmüller
92c30f4294 * GuiBox.cpp:
- remove the useless "none" special length from the combo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28153 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 14:10:52 +00:00
Jürgen Spitzmüller
5ba20465fe * LengthCombo.{cpp,h}:
- rename [add|remove]Item(unit) to [add|remove]Unit(unit)
	- remove now unnecessary reimplemantations of QComboBox functions
	- new member setCurrentItem(QString)

* GuiBox.cpp:
	- set ItemData for special lengths, which simplifies the logic a lot.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28152 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 12:57:23 +00:00
Jürgen Spitzmüller
18a8d490c7 * LengthCombo.{cpp, h}:
- use model/view infrastructure to store reliable data
	- use real unit name, not i18n strings, for all comparision purposes
	- remove unit "mu" in default contruction (bug 5682)
	- add some helpers to add and remove units

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28146 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 10:20:33 +00:00
Pavel Sanda
b05dcd0252 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28145 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 10:18:49 +00:00
Jürgen Spitzmüller
ef6be5f499 * load CJKutf8 package, if available, for CJK documents in utf8 encoding
(first part of fix to bug 5386)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28142 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 09:26:13 +00:00
Uwe Stöhr
03264aab68 InsetHyperlink.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5686
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28141 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 01:27:01 +00:00
Pavel Sanda
21470a6219 Add LFUN_VC_COMMAND.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147331.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28138 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-13 21:33:56 +00:00
Pavel Sanda
da24e05566 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28137 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-13 21:09:47 +00:00
Pavel Sanda
6837cd7a84 Another cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28132 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-13 00:58:01 +00:00
Pavel Sanda
4851e1c9f5 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28131 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-13 00:55:12 +00:00
Pavel Sanda
14b34d5afd Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28129 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 20:29:58 +00:00
Jürgen Spitzmüller
7952dfef25 * lengthcommon.cpp:
- adjust line length.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28121 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 09:23:06 +00:00
Jürgen Spitzmüller
743a29799b * use ulem instead of soul for change tracking
(fixes bugs 5091, 5480, 5647).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28114 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 08:01:28 +00:00
Jürgen Spitzmüller
9fba7d7759 * qt_helpers.cpp:
- fix function Length lengthFromWidgets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28112 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 06:48:12 +00:00
Uwe Stöhr
ef9b66cf2d lengthcommon.cpp: separate the translations for mu
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28107 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-12 01:50:16 +00:00
Pavel Sanda
a87df64327 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28106 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 22:55:16 +00:00
Richard Heck
d17e30c00d Fix the translation of macros like: \"u, which don't appear
in unicodesymbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28105 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 21:40:10 +00:00
Richard Heck
392381882b r28101 for trunk, courtesy of Bo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28104 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 21:38:04 +00:00
Enrico Forestieri
e4eb0f3118 Fix layout of the View Source window when using Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28091 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 12:12:56 +00:00
Jürgen Spitzmüller
b99fc9bcd9 * LaTeXFeatures.cpp:
* InsetSpecialChar.cpp:
	- make the menu separator direction-aware [only in LaTeX output] (bug 3560).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28085 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 08:31:52 +00:00
Jürgen Spitzmüller
6525a79188 * InsetSpace.cpp: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28071 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-10 17:07:52 +00:00
Enrico Forestieri
7728b5cbb9 Fix bug 5665
http://bugzilla.lyx.org/show_bug.cgi?id=5665


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28058 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 16:09:41 +00:00
Pavel Sanda
4ef19a6580 Another round.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28052 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 08:44:52 +00:00
Pavel Sanda
42040b7757 Add tooltip to images groupId.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28047 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:41:31 +00:00
Jürgen Spitzmüller
56f22a330e * GuiView.cpp (insertPlaintextFile):
- set a proper file filter in the file dialog.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28045 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:35:20 +00:00
Pavel Sanda
c1ca2b89fb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5648
Patch from Bo.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28043 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-09 07:32:52 +00:00
Pavel Sanda
b91f9d7d42 Comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28040 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 22:07:22 +00:00
Pavel Sanda
e5767128ec Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28039 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 21:50:11 +00:00
Pavel Sanda
b74d910ffe AdvSearch - regexps fix.
Patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147090.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28038 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 21:49:56 +00:00
Jürgen Spitzmüller
4c0dcc4a57 forgot to save ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28034 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 08:00:37 +00:00
Jürgen Spitzmüller
454a2d4832 * GuiDocument.cpp (dispatchParams):
- do not set master buffer and warn if the master does not include child
	- issue warning if the master could not be loaded.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28033 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 07:59:37 +00:00
Vincent van Ravesteijn
658cee5ad4 Do not create a new file after 'new from template..' and cancel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 00:29:06 +00:00
Vincent van Ravesteijn
c53082b6c3 Improved UI for version control:
* the menu-item should also be enabled when the buffer is still unnamed (it will be saved anyway), and
* no buffer-reload after user cancel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28028 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-08 00:14:55 +00:00
Vincent van Ravesteijn
f48e86dedc Fix disabling of submenus that are empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 17:59:10 +00:00
Vincent van Ravesteijn
a16fabfb26 Fix disabling of submenus that have only disabled items.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28026 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 17:54:29 +00:00
Jürgen Spitzmüller
72dc5352dd * TocWidget: whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28024 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 14:49:40 +00:00
Jürgen Spitzmüller
2a4a108e60 * Buffer.cpp:
- prevent potential null pointer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28023 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 11:07:48 +00:00
Jürgen Spitzmüller
bd934ddf3e * Buffer.cpp:
- do not set master_file as master buffer if the document s no real child (bug 5653).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28020 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 07:53:28 +00:00
Vincent van Ravesteijn
c51ae2651c Correct enabling of the "Navigate->Bookmarks->Clear Bookmarks" menu item.
* LyXFunc.cpp:

Note that getStatus() always returned true for LFUN_BOOKMARK_CLEAR. This is because bookmarks().size() is hardcoded in the code to be 9 which is always larger than zero, obviously

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28014 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-07 01:48:47 +00:00
Martin Vermeer
823e27f465 Make autocorrect (still disabled) better. Now switched
on/off by !/space.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28008 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-06 09:44:47 +00:00
Vincent van Ravesteijn
78a05e4359 Improved debug message for locating toolbar icons. Patch from Dieter Jurzitza.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28000 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 19:05:46 +00:00
Vincent van Ravesteijn
7b659b4ecd Case-insensitive sorting of colors in GuiPrefs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27995 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 13:37:46 +00:00
Vincent van Ravesteijn
bd97d99c9a Add comment about r27991.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27992 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 09:56:37 +00:00
Vincent van Ravesteijn
cc3b9c61cf Fix crash when no new document can be created.
This occurs frequently when the temporary directory cannot be created because it already exists. The temporary directory can exist as a result of previous crashes of LyX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27991 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-05 00:00:19 +00:00
Vincent van Ravesteijn
d57b6f315d Safety measure for r27988.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27990 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:39:12 +00:00
Richard Heck
9d48ad4f74 Improvements to the parser that extracts the "family name". We now get
the last name, with the "von" part, even when commas are not used in the
BibTeX file.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27989 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:35:08 +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
Richard Heck
a05cc2c93e Fix minor problem with fromLaTeXCommand(): We were missing things like
\"{U}ber, since \"{U} was followed by a letter.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27987 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:26:04 +00:00
Vincent van Ravesteijn
dd64c572c2 Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27979 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-03 18:33:09 +00:00
Vincent van Ravesteijn
965fdcb46a Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27977 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-02 01:52:54 +00:00
Vincent van Ravesteijn
5e860f2344 Prevent empty warning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27976 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-01 16:35:14 +00:00
Richard Heck
f93e4254ee Convert LaTeX constructs to Unicode when reading BibTeX files.
Also, ignore other LaTeX commands.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27975 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-29 00:10:41 +00:00
Georg Baum
a9f29e6f6c make Pavel happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27971 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 17:25:11 +00:00
Enrico Forestieri
ef65f0e1af Add clarifying comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27969 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 12:49:42 +00:00
Abdelrazak Younes
852c5178de FindAndReplace by Tommaso:
- solves some issues related to the dialog set-up
 (overlapping of dialog title with upper sub-widget),
 by "borrowing" the widget structure from
 ViewSource.{h,cpp}
- reduces the default occupation of the dialog (in particular,
 it was "colliding" with the ViewSource itself);
- proposes to introduce a tabbed-panel in the F&R
 dialog, so as to have a "basic" and "advanced" tabs;
 (one option could be to make the dialog even smaller
  by moving all of the replace-related stuff into a separate
  "Replace" tab)

- recovers the eventFilter functionality back, so as to catch
 "Enter" or "Esc" key presses while in the Search Work Area 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27967 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 08:18:11 +00:00
Enrico Forestieri
98114f5a82 Take into account that '\' is always part of a LaTeX command and also
that entries in the unicodesymbols file may not start with '\'.
Maybe the method should be renamed as fromLaTeXCode?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27957 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-23 02:03:53 +00:00
Georg Baum
030e249d91 fix potential problems detected by gcc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27956 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:18:47 +00:00
Georg Baum
07676f2330 fix metrics debugging
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27955 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:16:05 +00:00
Georg Baum
ac1fd9b37f fix bug 2558: hspace support in math
The basic idea was to reuse the corresponding text space inset in the same
fashion as is already done for references. The dialog displays a different
selection for math than for text. If wanted, the additional spaces could
also be enabled for text, but that would be a file format change.
Constructs like \hspace{\mylengthvariable} that are not supported are
treated by the math parser as ERT as before.

For reasons I don't know the context menu does not work, but this is not so
important IMHO (since a left click opens the dialog).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00
Jean-Marc Lasgouttes
df8bb4edcd * Encoding.cpp (fromLaTeXCommand): fix bug when the string passed
to the method does not match any of the known unicode symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27953 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 15:23:05 +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
739ad5d718 * GuiPrefs.cpp (apply):
- unbind existing shortcuts before binding new ones (bug 5444).
	  Patch submitted and tested by Bennett.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27948 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 10:41:37 +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
Pavel Sanda
fd6679bd34 AdvSearch - next patch from Tommaso.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146966.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 16:00:47 +00:00
Pavel Sanda
d5f2772922 Hopefully better dialog policy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27936 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 13:09:36 +00:00
Pavel Sanda
fe5a20a489 Template type can be changed in dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27933 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:08:15 +00:00
Pavel Sanda
aee1c6c785 Affect only scale box. Thanks Juergen.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27932 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 10:06:31 +00:00
Pavel Sanda
05879ba39f Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5628 .
Instant preview of external material uses scaling from latex settings.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27928 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-20 01:30:57 +00:00
Martin Vermeer
d6f30aac95 Fix, but keep disabled, mathed autocorrect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27927 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 10:26:33 +00:00
Jürgen Spitzmüller
96b062a520 * LaTeXUI.ui:
* UserGuide:
	- Postscript driver -> graphics driver.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27920 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 09:57:27 +00:00
Jürgen Spitzmüller
3d48607f1a * BufferParams.{cpp,h}:
- pass graphics driver to geometry (bug 5613)
	- put papersize options to package call, not in \geometry
	  which broke compilation in some cases (bug 3838)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27917 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-19 09:32:04 +00:00
Richard Heck
fa6d2fd93d Currently, a second InsetLayout declaration of a given inset completely
overwrites the existing definition, instead of updating it, as our Style
declarations do. This patch fixes this behavior, so that e.g.:

#\DeclareLyXModule{ERT}
#DescriptionBegin
#Make ERT Classic
#DescriptionEnd

Format 11

InsetLayout ERT
	Decoration classic
End

will do as advertised.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27900 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:11:15 +00:00
Richard Heck
6525159a41 Exit early to avoid indentation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27897 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:01:32 +00:00
Jürgen Spitzmüller
5784ce29fd Let InsetWrap find its InsetLayout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 15:34:32 +00:00
Richard Heck
6172a07a9d Constness and a typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 14:13:02 +00:00
Jürgen Spitzmüller
c65ed50ced * BufferView.cpp:
- record undo for LFUN_NEXT_INSET_MODIFY.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27891 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 09:04:27 +00:00
Jürgen Spitzmüller
80044635f0 * LyXAction.cpp:
- LFUN_NEXT_INSET_MODIFY: ReadOnly -> Noop.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27888 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 07:44:09 +00:00
Jean-Marc Lasgouttes
85822a8784 improve debug information
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27885 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-15 15:47:33 +00:00
Jean-Marc Lasgouttes
5c2539f9ee do not require inset dimensions when the inset is not in the right range (bug 4443)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27878 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-15 10:51:00 +00:00
Peter Kümmel
f50a1f68ea Could not convert file: don't warn me to death
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27869 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-13 15:11:34 +00:00
Peter Kümmel
009e239108 fix linker error
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27868 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-13 14:41:37 +00:00
Jean-Marc Lasgouttes
370a4d8cf2 1/ call InsetCollapsable::validate instead of InsetText::validate in several
to allow customization in layout files

2/ do not add preamble chunks for features that are used in inactive insets
  (notes, inactive branches)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27859 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-12 15:38:52 +00:00
Jean-Marc Lasgouttes
e79a9fa983 make help-open search in examples too
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27858 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-12 15:34:35 +00:00
Jürgen Spitzmüller
a31a6ccadf * LyXFunc.cpp: prevent potential assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27842 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-11 09:25:08 +00:00
Jürgen Spitzmüller
04d1a65234 * Paragraph.cpp: embrace ']' (fix bug 5610)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27838 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-10 19:52:13 +00:00
Pavel Sanda
c5b2eb76b6 another ispell leftover
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-09 10:45:29 +00:00
Uwe Stöhr
74abd44fb1 lyxfind.cpp: fix spacing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27800 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-07 17:18:30 +00:00
Uwe Stöhr
08a0d7f3cd Makefile.am: PSpell and ISpell was removed for LyX 2.0 at the developer meeting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27798 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-07 17:09:18 +00:00
Jürgen Spitzmüller
4d363d56dd * LyXFunc.cpp (reload):
- if the lyx_view_ has been detroyed, create a new one (fix bug 5389).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27781 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-06 14:44:40 +00:00
Jürgen Spitzmüller
f4b8f4528f * src/buffer_funcs.{cpp,h}:
- add optional bool "acceptDirty" to checkAndLoadLyXFiles. 
	   If true, the method doesn't care for buffer dirtiness
* src/Buffer.cpp:
	- when checking for master buffer, do not care if it's dirty
	  (fix bug 5514)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27774 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 15:49:07 +00:00
Jürgen Spitzmüller
6edb56cf03 * GuiToolbar.cpp (set):
- honour obsoleted styles (part of bug 2607).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27772 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 14:02:03 +00:00
Jürgen Spitzmüller
287de0508d * GuiSpellchecker:
- prevent invalid pointer access (spellchecker crash reported by Abdel).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27770 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-05 10:20:26 +00:00
Jürgen Spitzmüller
1a24671e1c * Buffer.cpp (readFile):
- set params().compressed (bug 5589).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27768 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-04 09:14:17 +00:00
Jürgen Spitzmüller
1e08043e67 Add button to rescan the list of bib/bst files from within the dialogs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27761 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-02 08:46:59 +00:00
Vincent van Ravesteijn
10b88864a8 Add *.lyx16 filter to File->Open..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27754 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-30 19:14:34 +00:00
Vincent van Ravesteijn
9c9cdd3912 Fix bug 5507: Full screen hangs LyX when no file is opened
http://bugzilla.lyx.org/show_bug.cgi?id=5507

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27744 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 17:29:13 +00:00
Uwe Stöhr
9563341e84 Paragraph.cpp: revert r27719 because this broke every document that uses a note or comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27734 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-29 00:23:21 +00:00
Vincent van Ravesteijn
c8685184f4 Oops.. compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27728 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-28 23:01:20 +00:00
Vincent van Ravesteijn
85f73a4271 Fix bug 5074: Crash while switching to Word
http://bugzilla.lyx.org/show_bug.cgi?id=5074

In GuiApplication.cpp the function cfFromMime returns an invalid FORMATETC struct with uninitialized members when the mimeType is not emf or wmf. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27727 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-28 22:48:50 +00:00
Jürgen Spitzmüller
9b39fbf557 Add support for Swiss German (bug 5450). File format change.
Babel doesn't support this variant (yet), so we use ngerman. However, for spell checking and thesaurus, this makes
a difference.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27725 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-28 13:44:03 +00:00
Jürgen Spitzmüller
b6938386a2 * LaTeX.cpp (run):
- perform an additional bibtex cycle if requested
	  (e.g. by Biblatex)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27724 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-28 12:54:29 +00:00
Jean-Marc Lasgouttes
632da1cc57 very basic support for switching encoding in a document (no context of grouping right now)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27721 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-27 14:16:02 +00:00
Jean-Marc Lasgouttes
4d07d0b61c when validating a paragraph, skip insets that do not produce output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27719 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-27 08:32:52 +00:00
Vincent van Ravesteijn
aaf27b169d Remove useless and confusing lines of code. As subfloat is not written into the LyX file, we have to (at the moment) rely on a call to updateLabels before setting the new label.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 23:29:36 +00:00
Vincent van Ravesteijn
0488bee43f Constify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27716 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 19:42:18 +00:00
Vincent van Ravesteijn
39f6e4b898 Fix bug 5088:
http://bugzilla.lyx.org/show_bug.cgi?id=5088

After executing DEPM to remove a double space, the position of the cursor was only 'fixed' if the cursor remained in the same par. This patch corrects this
to fix the position of the cursor also when the cursor is in a nested inset which is in the same par. This is needed because otherwise the cursor would not
point to the inset but one pos after it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27715 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 19:26:29 +00:00
Enrico Forestieri
4e12c4327a Avoid useless assignment to errno and add scope operator for safety.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27713 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 19:05:35 +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
Enrico Forestieri
077baded5c Fix bug 641 (Detect stale lyxpipes after crash)
http://bugzilla.lyx.org/show_bug.cgi?id=641


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27708 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 01:22:05 +00:00
Jürgen Spitzmüller
c2bdcc6b63 * Lexer.{cpp,h}:
- implement quoteString for docstring
* Menus.cpp:
	- use it for quoting flex argument.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27703 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 14:44:17 +00:00
Vincent van Ravesteijn
cf247233c9 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5567: Enable up button in command buffer widget.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27701 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-25 13:20:54 +00:00
Richard Heck
bf8c0ff40d Wrap flex-insert's argument in quotes, as it could contain spaces. (Do we need to go further, in case it contains quotes? Or do you get what you deserve if you try that?)
Jurgen, OK for branch?


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27698 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 22:10:38 +00:00
Stephan Witt
3cef6c3bab convert string arguments for bformat with proper encoding
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27696 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 21:12:58 +00:00
Richard Heck
74037183fe Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27694 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 16:31:25 +00:00
Richard Heck
39bc3f3f93 Fix most of bug 5539.
If a file fails to load, we do not try to load it again. The downside is that, even if you fixed the problem, then LyX won't try to load it again in that session. I tried resetting the failedtoload_ variable in fileChanged(), but that didn't work, as it doesn't seem to get hit. I'm not sure what to do here, but it isn't a huge issue.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27688 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 12:45:18 +00:00
Richard Heck
aeb997e3f0 Make getChildBuffer() and loadIfNeeded() methods rather than standalone
functions. Preparatory to another patch.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27687 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 12:40:53 +00:00
Jürgen Spitzmüller
78ab480e72 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 14:46:33 +00:00
Vincent van Ravesteijn
d6f4fb4944 Some fixes for the buttons of the Document and Preferences dialog:
http://bugzilla.lyx.org/show_bug.cgi?id=5295
- set the bc status to INITIAL when the dialog is initialized, and
- enable the restore button in the Document dialog.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 14:12:39 +00:00
Jürgen Spitzmüller
b394f9998f * GuiErrorList.cpp (showEvent):
- add missing dialog update to fix a problem reported on the users list
	  and here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506183
	  (missing package error not shown).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27679 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 10:55:41 +00:00
Abdelrazak Younes
21b78c8d5a Fix assertion on exit when quitting.
Wraning for everybody: don't use static Buffer object, always pass through theBufferList().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27677 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 08:37:14 +00:00
Abdelrazak Younes
9062958419 FindAndReplace: more simplification and add a WorkArea for replace (not used yet).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27671 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 18:18:51 +00:00
Abdelrazak Younes
6f305f211d FindAndReplace: more simplification.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27669 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:54:59 +00:00
Abdelrazak Younes
b718b83074 FindAndReplace: more simplification and correct focus handling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:35:17 +00:00
Abdelrazak Younes
227dd33f2f Doh!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 17:06:26 +00:00
Jürgen Spitzmüller
17e11a930d * output_latex:cpp:
- fix some CJK nesting issues.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 16:40:39 +00:00
Abdelrazak Younes
09738dbba4 Transfer more things from FindAndReplace to EmbeddedWorkArea.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27664 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 15:21:45 +00:00
Abdelrazak Younes
5b02eaa5e8 Create a new EmbeddedWorkArea for dialog embedding purpose and use that in FindAndReplace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27663 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-22 14:45:47 +00:00
Jürgen Spitzmüller
6b64fc8ca6 * src/Language{.cpp,h}:
- new member internalFontEncoding() that indicates if a language
	  switches the font encoding internally.

* src/Paragraph.cpp (latexSpecialChar):
	- don't call latexSpecialT1 if the internal font encoding isn't T1.

This fixes the output of straight quotation marks in Hebrew and Greek.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27660 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-21 14:58:26 +00:00
Dov Feldstern
af1d2906ef get rid of code duplication between overloaded versions of isRTLBoundary
This is in preparation of some changes to be made in this function, now the change will only have to be done once...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27656 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-21 11:32:56 +00:00
Enrico Forestieri
0a2b62f468 According to http://en.wikipedia.org/wiki/ISO-2022-JP, a character may be
encoded using 1 or 2 bytes, but it may be prefixed by 3-byte escape sequence.
So, a single ucs4 char could need a maximum of 5 bytes. I think that it
is better to be safe than sorry...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27645 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-20 19:32:22 +00:00
Enrico Forestieri
487af713fb Hrmpf.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27644 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-20 19:13:41 +00:00
Enrico Forestieri
b48de25bb1 Was forgetting this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27643 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-20 19:05:47 +00:00
Enrico Forestieri
01c6c4879e After a better understanding of the problem, restrict the fix for
bugs 5216, 5280, and 5489 to the ISO-2022-JP encoding.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27642 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-20 18:48:56 +00:00
Richard Heck
c03e5941a3 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 04:41:10 +00:00
Richard Heck
0ad3996fd3 Remove obsolete comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27636 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 04:28:03 +00:00
Richard Heck
69e95a3ed9 The comment preceding getValueForField() reflected an earlier implmentation.
There is now no reason not to use operator[] here, which is more natural.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 04:16:12 +00:00
Richard Heck
900355d27f Fix some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27634 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 03:58:20 +00:00
Richard Heck
656ffa1079 Fix 5538.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27633 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 03:52:22 +00:00
Vincent van Ravesteijn
d38cc523c6 Fix tabular cursor movement:
- allow repeated shift-up in a multi-line column,
- finish r27581 and r27567 :
    we have to call cur.selHandle ourselves now,
- do not dispatch to the cell in multicell selection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 01:02:48 +00:00
Vincent van Ravesteijn
550f1d9ce8 Do not paint an invisible cursor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27631 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 23:57:26 +00:00
Vincent van Ravesteijn
912979d2db Correct painting of a fully selected tabular cell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 22:35:02 +00:00
Stephan Witt
2d1e0ffabd fix some memory leaks (NSAutoreleaseNoPool)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27627 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 21:51:41 +00:00
Vincent van Ravesteijn
6f88e64895 Fix bug #5536.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 21:37:02 +00:00