Commit Graph

15595 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
dd930b4535 * final splitindex feature addition: support for \printindex* and \printsubindex*
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 06:10:25 +00:00
Enrico Forestieri
a7e1aac652 Don't try to load a nonexisting file when executing server-goto-file-row
as this leads to a crash.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29418 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 22:52:22 +00:00
Jürgen Spitzmüller
0bd5c5fca8 * Add support for splitindex's \printsubindex command. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 11:24:38 +00:00
Pavel Sanda
a329ab84a6 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29405 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 08:39:18 +00:00
Abdelrazak Younes
3a502dfbec Simple fix for bug 4464
http://www.lyx.org/trac/ticket/4464

Thanks to Vincent for showing the way.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29394 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-24 21:04:51 +00:00
Jean-Marc Lasgouttes
26b1c55e03 whitespace only
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29393 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-24 12:37:56 +00:00
Jean-Marc Lasgouttes
fcc4a0f794 Sometimes, iconv on windows returns -1, but sets errno to 0. I do not
know what this means, but tex2lyx did not like it at all.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29392 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-24 12:28:00 +00:00
Jean-Marc Lasgouttes
0a99e817f1 Fix bug #5912: http://www.lyx.org/trac/ticket/5912
The problem was that \" was forgotten in the list of accents to check
in unicodesymbols (because it used to have its own german-centric derogatory
handling).

I took the Comprehensive LaTeX Symbols List (table 6) and added all the
missing accents.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29387 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-23 13:08:31 +00:00
Vincent van Ravesteijn
b44f8eb2ef * cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29378 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 21:17:49 +00:00
Vincent van Ravesteijn
96174d2d66 Fix bug that you can't change Info insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29377 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 21:16:51 +00:00
Vincent van Ravesteijn
2bc9c7c9c4 * Revert the noise.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29376 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 21:02:05 +00:00
Vincent van Ravesteijn
4c9fe33c83 * Move handling of LFUN_INSET_SETTINGS to Inset,
* Remove the EDITABLE enum,
* add functions hasSettings() for all insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29375 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 20:55:13 +00:00
Uwe Stöhr
f6b85a17de InsetHyperlink.cpp:
- fix #5908
 - break too long code lines

OK for branch too?  

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29366 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 00:55:55 +00:00
Pavel Sanda
3ea345b90f Patch from Edwin - spellcheck typos.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150327.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29365 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-21 21:06:21 +00:00
Jean-Marc Lasgouttes
adab0618e7 fix crash when importing LaTeX file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29364 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-21 09:01:33 +00:00
Jean-Marc Lasgouttes
f3038bed06 Remove bogus ifdocstream constructor argument, which _may_ be the cause of
tex2lyx woes under windows. It may also help chktex under windows
(does it works currently?)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29361 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 15:40:01 +00:00
Jean-Marc Lasgouttes
ac5a6ac79a I did this one all by myself; naughty jmarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29358 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 11:00:30 +00:00
Jean-Marc Lasgouttes
4b32876be0 revert 29349; Abdel made me do it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29356 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 10:00:54 +00:00
Jean-Marc Lasgouttes
19e6f30b18 cut-and-paste made me do it, I swear
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29355 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 09:46:52 +00:00
Jean-Marc Lasgouttes
9c61ea54ef compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29351 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 23:03:50 +00:00
Uwe Stöhr
0ff6c86ee1 Counters.cpp: whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29350 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 22:44:46 +00:00
Jean-Marc Lasgouttes
b20965dd83 please Abdel
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29349 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 22:24:48 +00:00
Jean-Marc Lasgouttes
2e45185cd5 improve tex2lyx Usage display (on error...); describe option -e on man page; remove non-implemented -p and -r options
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29346 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 22:13:43 +00:00
Jean-Marc Lasgouttes
8d0fcad676 Speedup the expandLabel by avoiding the recursive part. The labelstrings
are computed recursively to get rid of any \thexxx string by the method
flattenLabelString. The values are cached in Counter objects.

On my mac, the total time (updatelabels+redraw) goes down by 30%. YMMV.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29342 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 20:05:26 +00:00
Vincent van Ravesteijn
4e685e3565 Fix bug #5758: Crash when closing the dosbox from which LyX was started
The wmf_mime_ object was deleted both when deleting GuiApplication::Private as from 
QWindowsMimeList::~QWindowsMimeList().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 13:43:00 +00:00
Jürgen Spitzmüller
8d97f1c6d2 * ToggleWarningUi.ui:
- string change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29325 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 12:30:19 +00:00
Jürgen Spitzmüller
605f6bebf2 Implement a warning dialog with a "Do not show this warning again!" checkbox.
Since Qt does not provide this, we have to roll our own dialog.
Hidden warnings are stored in sessions.

The dialog is currently only used in the case where an included file
has a different textclass then the master (bug 3218).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 11:57:52 +00:00
Jean-Marc Lasgouttes
22e92f0d6f constify counters code and rename private variable counterList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 10:06:17 +00:00
Abdelrazak Younes
ef5f53017a transform the SpellChecker gui into a dock widget.
This commit introduces a new way to use the ui file in a more transparent way with regards to header inclusion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29322 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 08:57:43 +00:00
Vincent van Ravesteijn
ee4e7db35e Add context menus to the toc for child-documents, listings and indices.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29319 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 18:53:39 +00:00
Vincent van Ravesteijn
b6ce46fb94 InsetInfo: simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29317 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 17:02:48 +00:00
Jürgen Spitzmüller
521577ba4c * InsetIndex.cpp:
- fix InsetPrintIndex::getStatus logic (detected by Vincent).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29316 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 16:20:08 +00:00
Vincent van Ravesteijn
6192d3dbbf InsetPrintIndex: Fix getStatus() for INSET_MODIFY.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29315 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 16:02:36 +00:00
Vincent van Ravesteijn
ac6a7ed432 InsetInfo is editable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 12:14:08 +00:00
Jürgen Spitzmüller
051a50439d remember the last selection on the view/update popup button.
This introduces a new "sticky" popup button.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29309 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 10:44:44 +00:00
Jürgen Spitzmüller
30961c95d9 * InsetInfo: fix bug 5901.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29305 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 05:57:02 +00:00
Jürgen Spitzmüller
d12426a340 New inset dialog for InsetPrintIndex (only used with multiple indices)..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29290 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-17 14:29:32 +00:00
Jürgen Spitzmüller
de22184d97 New inset dialog for InsetIndex (only used with multiple indices)..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29285 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-17 09:22:44 +00:00
Jürgen Spitzmüller
c090147654 * BrnachUi.ui: minor tweaks.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29284 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-17 09:18:51 +00:00
Jürgen Spitzmüller
c9a0462954 * GuiBranch.cpp: remove duplicated include.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29277 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-17 07:47:09 +00:00
Jean-Marc Lasgouttes
37d6ef964c fix compiler warnings in new mathfrac/binom code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29257 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 09:15:24 +00:00
Jürgen Spitzmüller
d8396e9c7f * LaTeX.cpp: some debug output.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29256 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 08:33:43 +00:00
Jürgen Spitzmüller
c52bd08442 Introduce splitindex support. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:29:01 +00:00
Jürgen Spitzmüller
a86337e83f * Converter.cpp: tell the converters that we are using pLaTeX.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29254 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:20:16 +00:00
Jürgen Spitzmüller
bdc31723cc * GuiPrefs: revert unintended parts of previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29253 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 06:51:19 +00:00
Jürgen Spitzmüller
fe41f206bd * GuiPrefs: fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29252 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 06:43:43 +00:00
Vincent van Ravesteijn
6643fac7db Fix a small bug in the finding of changes. If a change starts at pos==1 and one tries to find it backwards, the character at pos==0 was also selected as part of the change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29251 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 22:09:27 +00:00
Vincent van Ravesteijn
67503f8fe1 Fix the bug that when pressing the merge button while in the middle of a change, only half of the change was found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29250 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 22:07:59 +00:00
Vincent van Ravesteijn
ff294eb173 Update RELEASE-NOTES and LFUN documentation for the changes in LFUN_INSET_TOGGLE and LFUN_INSET_SETTINGS.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29249 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 21:41:07 +00:00
Vincent van Ravesteijn
cdd802421a Fix bug #5435.
Revert the previous fix and fix the DEPM regression.

This reverts r28910.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29248 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 20:20:42 +00:00
Vincent van Ravesteijn
586afc2a4c * LyXAction.cpp: doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29247 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 17:14:48 +00:00
Vincent van Ravesteijn
e4a6b62f03 InsetListings.cpp: simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29246 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 17:00:43 +00:00
Vincent van Ravesteijn
a018cae244 Fix bug 5894: Inserting tabs with inline selections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29245 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 16:42:38 +00:00
Jürgen Spitzmüller
26b361417d * Properly separate the specific Japanese (i.e., pLaTeX) auxiliary programs (jbibtex, mendex)
from the standard LaTeX programs.
  These programs are only used now if the document actually uses Japanese, not always if they are found.
  (bug 5601 a.o.).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29238 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-13 09:53:40 +00:00
Pavel Sanda
a6145ac4cd next attempt for PageLayoutUi
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29237 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-13 09:28:34 +00:00
Uwe Stöhr
d109eb6984 PageLayoutUi.ui: correct space between buttons and remove some strange three dots
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29236 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-13 01:35:55 +00:00
Pavel Sanda
d6819bf658 Next ui tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29232 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 14:25:51 +00:00
Uwe Stöhr
7acab93ad1 PageLayoutUi.ui: add tooltip for the new push button
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29231 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 13:19:11 +00:00
Pavel Sanda
0f77509d23 Correct naming
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29230 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 12:56:38 +00:00
Pavel Sanda
a9ffac3052 add tooltip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29229 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 12:46:14 +00:00
Pavel Sanda
aed0adea18 Change button type for proper color in linux
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29228 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 12:40:25 +00:00
Pavel Sanda
88f32018f7 Fix background of color dialog
(inherit from dialog and not button for which we changed stylesheet)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29227 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 12:33:35 +00:00
Vincent van Ravesteijn
91a6ac3457 Please Andre'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29224 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 10:11:54 +00:00
Vincent van Ravesteijn
91bcc5cdce Cosmetics for r29220.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29223 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 09:13:46 +00:00
Uwe Stöhr
ed69577fa3 GuiDocument.cpp: remove unneeded conversion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29222 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 00:43:05 +00:00
Uwe Stöhr
5f981cdd48 GuiDocument.cpp: fix whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29221 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-12 00:37:25 +00:00
Uwe Stöhr
4d30bc7579 support for \pagecolor, fileformat change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29220 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 21:40:11 +00:00
Vincent van Ravesteijn
c1dce34f53 Enable dialogs that can apply for read-only documents.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29217 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 18:34:03 +00:00
Jürgen Spitzmüller
2943f1e880 * InsetGraphics.cpp (findTargetFormat):
- consider XeTeX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29205 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 13:00:10 +00:00
Vincent van Ravesteijn
95e4c52e24 * InsetLabel: Return the status for LFUN_INSERT_LABEL_AS_REF.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29201 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 11:45:11 +00:00
Vincent van Ravesteijn
86392456e8 Implement the getStatus mechanism for the context menu of the toc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29200 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 11:43:13 +00:00
Jürgen Spitzmüller
1c738a37fb * InsetBranch.cpp:
- indicate branch status in the tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29197 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 07:11:37 +00:00
Jürgen Spitzmüller
6974c65ed4 * GuiDocument.cpp:
- reintroduce prefix to fix gcc warning.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29196 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 06:52:55 +00:00
Uwe Stöhr
c841f96691 GuiDocument.cpp: remove unneeded prefix since we are there already in namespace lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29195 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-11 00:59:13 +00:00
Vincent van Ravesteijn
a62b68befd Show the current type of Phantom in the Phantom context menu.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29190 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 17:21:40 +00:00
Vincent van Ravesteijn
61dffbdbcf Fix qt assertion when requesting settings dialog of an InsetPhantom.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29189 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 17:15:02 +00:00
Jürgen Spitzmüller
a7d719fbac * GuiDocument.cpp:
- minor xetex UI tweaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29188 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 14:39:22 +00:00
Vincent van Ravesteijn
ce8323e5d3 These insets are NOT_EDITABLE.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29187 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 14:11:39 +00:00
Vincent van Ravesteijn
3c0755b572 * compile_uic.sh: Add OutputUi.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29185 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 12:43:35 +00:00
Vincent van Ravesteijn
80228965b1 Move handling of LFUN_MOUSE_RELEASE up to Inset and remove the edit() functions for insets that do not derive from InsetCollapsable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29184 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 12:38:32 +00:00
Jürgen Spitzmüller
823e44822e * remove outdated RC_CUSTOM_EXPORT_COMMAND and RC_CUSTOM_EXPORT_FORMAT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29183 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 11:11:14 +00:00
Vincent van Ravesteijn
f71a2f708e Show inset-toggle in the ShortCuts dialog. (Why was this Hidden ?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29182 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 11:07:54 +00:00
Jürgen Spitzmüller
60d2b3295a * new per-document default output format. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29181 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 11:06:53 +00:00
Vincent van Ravesteijn
c199293cf1 Remove last bits of LFUN_INSET_TOGGLE that is used to show the inset settings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29179 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 01:40:16 +00:00
Vincent van Ravesteijn
4b6a802398 Add context menus to the Toc for labels(settings), branches, graphics, citations, figures, tables.
This is now possible because we can dispatch all the necessary LFUNs to the insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29177 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 00:42:24 +00:00
Vincent van Ravesteijn
cc11c6803c Make the insets accept LFUN_INSET_SETTINGS. These insets did not yet respond to LFUN_INSET_SETTINGS. One had to use LFUN_INSET_TOGGLE to show the settings dialog. Now, this dependency on LFUN_INSET_TOGGLE can be removed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29176 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 00:20:12 +00:00
Vincent van Ravesteijn
9b111ea5a6 Make the insets accept LFUN_INSET_SETTINGS. For these insets, LFUN_INSET_SETTINGS was already used to show the settings dialog (in contrast to the insets in the next commit).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29175 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 00:17:34 +00:00
Vincent van Ravesteijn
07c4880fea * Inset: Dispatch FuncRequest.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29174 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 00:13:20 +00:00
Vincent van Ravesteijn
5c2f819adc Make sure we also dispatch the doDispatch() and getResult() to Inset when Text could not process the request.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29173 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-10 00:08:50 +00:00
Pavel Sanda
d47e87f92f Compil fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29172 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 23:36:34 +00:00
Vincent van Ravesteijn
2d40854a46 Move handling of LFUN_INSET_SETTINGS to Inset.cpp
* Inset
Handle LFUN_INSET_SETTINGS.

* LyXAction
Use the AtPoint command flag.

* BufferView
* Text3
Remove code that handled LFUN_INSET_SETTINGS. The inset/next-inset part is handled by the AtPoint lfun flag. showInsetDialog is called by Inset::doDispatch and getStatus will be handled by all insets themselves.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29171 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 23:17:20 +00:00
Uwe Stöhr
305ac4e923 Buffer.cpp: fix due to compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29170 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 22:58:51 +00:00
Vincent van Ravesteijn
889d3591d9 * whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29169 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 22:17:32 +00:00
Vincent van Ravesteijn
305d24217f Allow LFUNs to be relayed from InsetText to Inset if they are not supposed to be handled by the Text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29168 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 22:15:06 +00:00
Vincent van Ravesteijn
f7cad53d1f Remove unwanted comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29167 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 22:09:06 +00:00
Vincent van Ravesteijn
52460281bb Implement InsetCommand::showInsetDialog() (declared in Inset).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29166 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 22:08:00 +00:00
Vincent van Ravesteijn
80ee77ff85 TOC context menu (part 4)
* TocWidget: Relay the LFUNs to the appropriate inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29165 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:51:07 +00:00
Vincent van Ravesteijn
ed42a06abb TOC context menu (part 4)
* TocBackend: Give public access to the docIterator of the TocItem. In this way, the TocWidget can find the Inset which is related to the TocItem.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29164 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:42:59 +00:00
Vincent van Ravesteijn
2cd997962c Leave handling of LFUN_COPY_LABEL_AS_REF to InsetLabel and move handling of LFUN_INSERT_LABEL_AS_REF also to InsetLabel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29163 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:31:17 +00:00
Vincent van Ravesteijn
49fb2980eb TOC context menu (part 3)
* TocWidget: Deconstify cur in doDispatch because I need a non-const Cursor when dispatching to Insets.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29162 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 18:24:28 +00:00
Richard Heck
1b160bd82d Just rearranging and adding some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29158 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-09 12:55:47 +00:00
Vincent van Ravesteijn
df3cddcd37 Add "Insert label as reference" to the context menu of the TOC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29157 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 22:03:28 +00:00
Vincent van Ravesteijn
695870771f Add "Copy label as reference" to context menu of the TOC.
(Note: it is not perfect yet for references in the same model as the labels).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29156 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 21:40:42 +00:00
Vincent van Ravesteijn
a465fcb55e TOC context menu (part 2)
* TocWidget: add context menu to toc.

* Menus: specify origin of cmd.

* GuiView: if cmd coming from toc, dispatch to GuiToc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29155 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 21:06:58 +00:00
Vincent van Ravesteijn
f7f24a2709 TOC context menu (part 1): Only scroll the document to the item when the user left-clicks on the item.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29154 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 17:39:14 +00:00
Jürgen Spitzmüller
074b66db2f * InsetExternal.cpp:
- add XETEX to switch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29149 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 07:55:55 +00:00
Uwe Stöhr
23f833a92b InsetMathFrac.cpp: add some comments and remove an unused code line
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29147 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-08 00:19:57 +00:00
Jürgen Spitzmüller
cb0bfc9445 * Buffer.cpp (getDefaultOutputFormat):
- prevent crash if no formats are found (and return an empty string).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29141 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 11:54:02 +00:00
Pavel Sanda
ed8a3a4f91 Revert r25174
on users request http://www.mail-archive.com/lyx-users@lists.lyx.org/msg72822.html .



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29140 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 11:21:54 +00:00
Jürgen Spitzmüller
76afa61c78 * GuiPrefs.cpp:
- clear combo before refilling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29139 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 10:59:03 +00:00
Jürgen Spitzmüller
7537a461f5 * LyXAction.cpp: update doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29138 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 08:49:48 +00:00
Jürgen Spitzmüller
5fd1f2211c * GuiDocument.cpp:
- minor UI fixes wrt XeTeX.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29137 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 08:39:56 +00:00
Jürgen Spitzmüller
25a14730ed * First step towards default view format.
The icons could be replaced by something nicer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29134 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 05:01:08 +00:00
Uwe Stöhr
23f9e34a08 InsetMathFrac.cpp: some code optimization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29133 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 01:02:34 +00:00
Uwe Stöhr
48236d215c InsetMathNest.cpp: forgot this in last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29132 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-07 00:23:38 +00:00
Uwe Stöhr
8225a56dfe InsetMathFrac: reimplement \cfrac with its optional argument the way Enrico proposed (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg149855.html)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29131 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 23:58:42 +00:00
Enrico Forestieri
3e341497a8 Introduce a helper function and use it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29130 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 22:12:22 +00:00
Vincent van Ravesteijn
0de1e7730f Fix bug #4510: GuiInclude->Edit marks master as changed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29129 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 20:10:13 +00:00
Vincent van Ravesteijn
81f1aa7597 Where did that go ?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29128 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 18:29:19 +00:00
Vincent van Ravesteijn
b9aa501051 Fix LFUN_MARK_TOGGLE, which actually did set the mark in stead of toggling it, remove some duplicated code (clearSelection() already calls resetAnchor()), and do some cosmetics.
(Is LFUN_MARK_TOGGLE actually used by anyone ?)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29127 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 18:25:23 +00:00
Richard Heck
2f7260d3b4 The --batch patch.
Introduces a "--batch" command line flag, so you can do this:
	lyx --batch -x "buffer-print printer default dvips" myfile.lyx
The "--batch" flag basically means: no gui.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29126 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 12:13:33 +00:00
Richard Heck
4daf7b5dfc The Buffer::dispatch() patch.
This patch enhances the Buffer::dispatch() method to make it a full-fledged
member of the dispatch sequence. The most immediate payoff is that LFUNs that
are handled in Buffer::dispatch() can be used from the command line.

We make better use of the DispatchResult object and return error information 
through it, rather than using return values. (This was JMarc's suggestion.) We 
also introduce a  corresponding Buffer::getStatus() method, and modify 
BufferView::getStatus() to return a flag indicating whether a decision has been 
made, as is already done in some other cases.

Finally, some LFUNs are moved to Buffer::dispatch(), including LFUN_BUFFER_PRINT.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29125 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 12:12:06 +00:00
Jürgen Spitzmüller
14845fcaec * XeTeX can be launched via the toolbar now
* non-functional view formats are now disabled in the toolbar

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29123 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 09:27:05 +00:00
Enrico Forestieri
56210f5a39 Don't wrap characters marked as mathalpha in the unicodesymbols file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29121 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 09:04:00 +00:00
Jürgen Spitzmüller
ca6d526ba1 * BufferParams.cpp:
- move loading of the xetex packages xunicode and xltxtra
	  to the end of the preamble

Now the UserGuide compiles with XeTeX!

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29120 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 08:10:50 +00:00
Jürgen Spitzmüller
737e9b2c20 start XeTeX support.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29119 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-06 06:58:30 +00:00
Enrico Forestieri
ed6f569fc8 Don't create nested text-in-math environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29118 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 23:34:22 +00:00
Vincent van Ravesteijn
326a035a5b Fix bug #2213 (part 5): GuiChanges lacks "Previous Change" button.
Make sure we jump to the next or previous change when we switch search direction. Without this patch, the same Change will be found and only the cursor is moved from the end (or begin) to the begin (or end) of the selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29115 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 20:16:32 +00:00
Uwe Stöhr
a97b097768 major code cleanup for fractions:
- InsetMathFrac.cpp/h:
    - InsetCFrac, InsetDFrac, and InsetTFrac are now included as kind of InsetMathFrac
    - InsetDBinom and InsetTBinum are now included as kind of InsetMathBinom
    - support for the optional argument of \cfrac (cursor position still needs to be fixed, see post in mailing list)

- stdtoolbars.inc:
    - add entries for \cfrac
    - remove entry for \atop since atop is outdated and only in LaTeX2e for compatibility reasons (according to the LaTeX companion, you get warnings from amsmath in the LaTeX log when using atop)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29114 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 19:52:53 +00:00
Vincent van Ravesteijn
58b87df638 Fix bug #2213 (part 4): GuiChanges lacks "Previous Change" button.
Also show the Merge dialog when we are behind the last change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29111 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 19:26:26 +00:00
Vincent van Ravesteijn
bb5b02a362 Fix bug #2213 (part 3): GuiChanges lacks "Previous Change" button.
Add Button to GuiChanges.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29110 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 19:15:52 +00:00
Vincent van Ravesteijn
03671821d3 Fix bug #2213 (part 1): GuiChanges lacks "Previous Change" button.
Add LFUN_CHANGE_PREVIOUS.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29109 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 19:14:37 +00:00
Vincent van Ravesteijn
5a1dc72483 Fix bug #2213 (part 1): GuiChanges lacks "Previous Change" button.
*lyxfind: Add findPreviousChange().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29108 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 19:11:25 +00:00
Enrico Forestieri
8f52d3b7db The \text macro does not require the full AMS package. Also load amstext
when a text-in-math environment is used, such that super and subscripts
are typeset in the correct size.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29098 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 02:11:07 +00:00
Enrico Forestieri
67cbe895fe No need to call t.character() as the char is already available in c.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29097 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 01:49:25 +00:00
Enrico Forestieri
376f3f08bd Unicode symbols entered or pasted in math are wrapped in \text{} by default.
Unwrapped symbols can be obtained either by dissolving the text inset or by
verbatim paste (Ctrl+Shift+V). In such a case, the symbols are wrapped in
\lyxmathsym when exporting to latex, as usual.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29096 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-05 01:14:10 +00:00
Richard Heck
bd8a0686fb Fix the year display in InsetCitation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29095 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 21:10:35 +00:00
Richard Heck
f7164212b1 Simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29094 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 21:04:26 +00:00
Richard Heck
920bfedf1f Manage the initial setting of Default or Plain Layout more simply.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29093 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 19:34:14 +00:00
Abdelrazak Younes
193074b384 Spellchecker: More simplifications.
This change makes it possible (at long last!) to go to the work area, do some edition and then come back to the SpellChecker. We probably need a [Continue] button.

* Buffer::nextWord(): go back a bit to return the current word.

* SpellChecker and Dialog: get rid of the complicated, useless exitEarly() handling.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29092 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 17:25:14 +00:00
Abdelrazak Younes
64c3229bd7 Hum...
Copy&paste bug fix.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29091 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 16:55:13 +00:00
Abdelrazak Younes
a4169da139 More SpellChecker cleanups.
* Buffer::spellCheck() new method constructed from mutiple bits of GuiSpellchecker.cpp.

* GuiSpellchecker: lots of simplifications.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29090 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 16:40:47 +00:00
Richard Heck
1352592874 Fix assertion in trunk, and add a comment about why this needs to
be done twice.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29085 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 13:48:30 +00:00
Uwe Stöhr
a9c466ae2f InsetMathFrac.h: forgot to add my name in r28639
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29082 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 11:33:13 +00:00
Vincent van Ravesteijn
12ba68f6ef * LyXAction.cpp: Document the optional parameter of LFUN_BUFFER_ZOOM_IN/OUT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29081 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 10:26:51 +00:00
Pavel Sanda
6eddca5440 Compilation fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29080 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 10:15:06 +00:00
Pavel Sanda
9420fbedf4 Revert unintended commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29078 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 09:31:34 +00:00
Vincent van Ravesteijn
6b5ce8a999 Fix bug #3038: wish for lfuns for zoom-in and zoom-out
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29077 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 09:14:38 +00:00
Richard Heck
876dc0d54e Fix up a few little things after r29065. If we're calculating the autosave
filename in a different way, we need to make sure we always do it the same
way. Makes more sense to do this in Buffer anyway.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29073 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 03:13:46 +00:00
Richard Heck
dd8a3f6f83 Fix comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29072 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 03:10:54 +00:00
Richard Heck
292b27e74b Routine no longer exists.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29071 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 03:10:38 +00:00
Vincent van Ravesteijn
e207b0250f Make sure that the document is only scrolled to the cursor when the cursor is/was visible before resizing .
Resizing can occur by toggling toolbars (bug 4733), or by creating or closing buffers which causes the tabbar to toggle (e.g. bug 4174, comment 5).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29066 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 21:39:06 +00:00
Vincent van Ravesteijn
4ec167330f Store the autosave file in the default document path as long as the document is 'unnamed'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29065 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 20:07:43 +00:00
Pavel Sanda
5806be1528 Fix bug http://www.lyx.org/trac/ticket/5812
(Icons replacement broken)

Patch from Martin Engbers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29057 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 17:00:09 +00:00
Richard Heck
46c5596462 Add a comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29056 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 16:04:45 +00:00
Jürgen Spitzmüller
49fdaa8507 Buffer.cpp:
- re-assign a master's children if a child was reloaded (bug 5873)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29046 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 11:07:53 +00:00
Richard Heck
c8d03a4d81 Fix bug 5859.
http://www.lyx.org/trac/ticket/5859



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29037 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-03 00:44:33 +00:00
Vincent van Ravesteijn
e90b43444a Fix bug 4067: Incorrect indentation in Description environment
http://www.lyx.org/trac/ticket/4067

If we are in the first pos, we are never in the body and always in the label.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29033 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 21:36:30 +00:00
Richard Heck
404f1dc80a Whoops. I somehow undid the reordering with that last commit. Anyway,
this fixes that again.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29020 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 18:59:25 +00:00
Richard Heck
62beaaa37f There are too many things here named `table'.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29019 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 18:57:19 +00:00
Richard Heck
ab0d757bed Just re-ordering stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29018 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 18:51:38 +00:00
Richard Heck
275c9cde02 Fix crash when hitting delete key once more after deleting
all the keystrokes associated with an LFUN in the shortcut
dialog.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29017 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 18:19:33 +00:00
Richard Heck
be0991288a Now these don't have to be public.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29016 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 15:56:12 +00:00
Richard Heck
9098af80aa Clean up a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29015 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-02 15:53:23 +00:00
Vincent van Ravesteijn
cdaefbf484 GuiViewsource:
* Revert cs 28992 and do something better to fix the bug that the view source window remains disabled forever when autoUpdate is not checked and the view source window gets disabled or LyX is closed.
* Update the source window, when autoUpdate checkbox is toggled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28999 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-01 20:32:26 +00:00
Vincent van Ravesteijn
14d0e66eae Fix bug that the view source window remains disabled forever when autoUpdate is not checked and the view source window gets disabled or LyX is closed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28992 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 15:29:51 +00:00
Jean-Marc Lasgouttes
67bafed7bb Mark status of branches in the Button. This uses two dingbat symbols (check
and cross). I'll revert if people do not like it (otherwise it is candidate
for branch).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28988 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 10:31:28 +00:00
Jean-Marc Lasgouttes
6c422712e1 Extend the branch-(de)activate functions to work without a parameter. In
this case, when the cursor is on a branch inset (using the AtPoint mechanism)
the branch to which the branch inset belongs will be (de)activated.

This functionality can now be used through the branch inset context menu



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28987 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-31 09:38:07 +00:00
Enrico Forestieri
d786fa0ab8 Partly revert r28731 (see discussion in bug 5836).
Essentially, it is not true that Cyrillic characters in math are to be typeset
in italic by default, and LyX already permits to style them as desired. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28981 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 22:40:27 +00:00
Jean-Marc Lasgouttes
30afece93d Kill next-inset-toggle and expand inset-toggle to provide the same functionality
* src/LyXAction.h: introduce new function attribute AtPoint: this is 
	for lfuns that should first look at cursor postion whether there
	is an inset, before dispatching to container inset.
	* src/LyXAction.cpp: remove LFUN_NEXT_INSET_TOGGLE; 
	mark LFUN_INSET_TOGGLE as AtPoint.
	* src/BufferView.cpp (dispatch, getStatus): remove handling of
	LFUN_NEXT_INSET_TOGGLE.
	* src/LyXFunc.cpp (dispatch, getStatus): handle functions marked 
	AtPoint.	
	* lib/*/*: replace next-inset-toggle with inset-toggle.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28980 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 13:49:52 +00:00
Jean-Marc Lasgouttes
827c72e1f5 Simplify and fix the TOGGLE_INSET code for branch inset. If it turns out
that the extra complexity was intended, I would be interested to know
what the idea was.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28979 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 12:45:33 +00:00
Jean-Marc Lasgouttes
3030a279ac fix two compiler warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28978 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 10:36:05 +00:00
Abdelrazak Younes
26bb1474f3 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28977 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 07:44:01 +00:00
Uwe Stöhr
8b96731805 math.cpp: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28976 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-30 01:43:40 +00:00
Abdelrazak Younes
a7dfd5796f Simplifications
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28975 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-29 21:35:37 +00:00
Abdelrazak Younes
34bddccb13 * Singleton-ify the used SpellChecker object.
* Simplify Aspell construction as the object is capable of supporting multiple languages at the same time.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28974 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-29 21:18:16 +00:00
Abdelrazak Younes
29c40527e5 Put the foundations to support continuous spell checking.
* Font: new misspelled_ member.
* GuiPrefs/PrefSpellchecker: new check box to enable/disable continuous spellcheck.
* LyXRC: new spellcheck_continuously parameter.
* RowPainter: new paintMisspelledMark() method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28973 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-29 19:57:30 +00:00
Abdelrazak Younes
1141ccb997 * rename SpellBase to SpellChecker
* make it a pure virtual interface
* delete alive() method as this one is not useful anymore since we killed ispell support.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28972 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-29 19:49:52 +00:00
Vincent van Ravesteijn
da242ecd12 Prevent assertion with command 'buffer-switch xxx' in which xxx is not the name of a loaded buffer.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28966 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-29 02:29:15 +00:00
Abdelrazak Younes
966ea2752e Buffer::nextWord(): simplify a bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28964 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 19:08:38 +00:00
Abdelrazak Younes
1ec0b390f5 Transfer some general code from GuiSpellchecker to Buffer and DocIterator.
* Buffer::nextWord(): new method to search for next word.
* DocIterator.cpp: new function isLetter() moved from GuiSpellchecker.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28963 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 19:02:49 +00:00
Abdelrazak Younes
6ae860a59d Forgot that in previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28962 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 17:33:20 +00:00
Abdelrazak Younes
dc1d8af9a2 Painter::wavyHorizontalLine(): new method for inline spellcheck purpose.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28961 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 16:37:28 +00:00
Vincent van Ravesteijn
b2e3355bf5 Preferences dialog fixes:
* accelerator clashes,
* missing accelerators, and
* strings (capitalization). 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28960 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 13:13:13 +00:00
Jürgen Spitzmüller
5a4e4dec15 Fix bug 5863:
* beamer.layout:
* powerdot.layout:
	- those provide geometry

* BufferParams.cpp:
* GuiDocument.cpp:
	- implement provides("geometry")

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28957 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 10:48:16 +00:00
Jürgen Spitzmüller
32875625c8 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28956 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 10:45:24 +00:00
Uwe Stöhr
acb9214dee LyXAction.cpp: fix documentation bug: add-vline-left/right is not allowed for the cases environments and we already correctly check this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28952 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-28 01:36:26 +00:00
Richard Heck
ba92863f0a Whitespace, formatting.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28948 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:57:42 +00:00
Vincent van Ravesteijn
7ad28349ab Fix bug 4935: Scroll down below document
http://bugzilla.lyx.org/show_bug.cgi?id=4935

* GuiPrefs: Add an option to the Editing dialog.

* BufferView: Scroll below document if the option is set.

* LyXRC: Write/read the option from preferences file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28947 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:41:58 +00:00
Vincent van Ravesteijn
1bbcd403fc Fix bug 4733: Auto popup of math toolbar hides the math editor
http://bugzilla.lyx.org/show_bug.cgi?id=4733

* GuiWorkArea: This adds "buffer_view_->scrollToCursor();" to GuiWorkArea::resizeBufferView() to make sure that the cursor remains visible. 

* BufferView: Make sure that we can call the scrollToCursor function without causing a new repaint.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28946 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 17:27:38 +00:00
Vincent van Ravesteijn
2420f5ed1e Fix bug 4441. GuiRef: Ok button must be default.
See also:
http://www.lyx.org/trac/changeset/28784
http://www.lyx.org/trac/changeset/28726
http://bugzilla.lyx.org/show_bug.cgi?id=5695



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28940 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 13:53:01 +00:00
Jürgen Spitzmüller
88421aaeda Fix bug 5851: Branch definitions not shown in Insert>Branch menu if master is set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28934 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:44:40 +00:00
Jürgen Spitzmüller
5be56b517a Fix bug 5827 (validate date-insert argument):
* src/support/os*.{cpp,h}:
	- new function is_valid_strftime that validates strftime arguments, 
	  OS dependant (win32 differs here)

* src/Text3.cpp:
	- use is_valid_strftime in LFUN_DATE_INSERT status check.

* src/frontends/qt4/GuiPrefs.{cpp, h}:
	- new GUI validator for strftime.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28932 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:22:54 +00:00
Jürgen Spitzmüller
e47e1cd751 * PrefPaths.ui:
- fix some "buddies" (accelerators).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28931 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 10:27:45 +00:00
Vincent van Ravesteijn
d0b6aebd39 Fix r28909: check for texted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28927 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 23:08:47 +00:00
Pavel Sanda
cfb86427df * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28922 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 13:31:16 +00:00
Richard Heck
837661a255 Enhance LyX by fixing bug 5872.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28920 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 12:29:54 +00:00
Vincent van Ravesteijn
74741ca5b9 Some cleanup in InsetInclude:
* use the UpdateScope, introduced recently, to prevent the 'strange' calls to setParent which also causes the update mechanism to run,
* remove the buffer parameter of loadIfNeeded and all function,
* remove doubled code from getChildBuffer.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28919 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 00:48:32 +00:00
Vincent van Ravesteijn
b0d53e3250 Fix bug 5526: screen-recenter LFUN doesn't work
http://bugzilla.lyx.org/show_bug.cgi?id=5526

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28916 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-26 00:09:16 +00:00
Vincent van Ravesteijn
b133fa44ab Revert cs 28908: wrong fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28911 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 22:40:04 +00:00