Commit Graph

5871 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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