Commit Graph

15735 Commits

Author SHA1 Message Date
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
Vincent van Ravesteijn
9d1f4a3d98 Fix bug 5435: DEPM doesn't function when leaving an inset
http://bugzilla.lyx.org/show_bug.cgi?id=5435

The code for this was already present, but was never reached.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28910 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 21:21:00 +00:00
Vincent van Ravesteijn
7ad10f7403 Fix bug 5434: DEPM not executed for PgUp/PgDown
http://bugzilla.lyx.org/show_bug.cgi?id=5434

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28909 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 21:00:34 +00:00
Vincent van Ravesteijn
06cfe568bb Fill the paragraph metrics cache before checkInsetHit is called and asserts in getPitNearY. LyX asserts when the mouse is over the buffer when it is created. Only trunk and qt4.5 (?)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28908 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 20:40:43 +00:00
Richard Heck
b0177410b0 Make LFUN_BUFFER_NEXT and _PREVIOUS skip documents that are open
but not shown.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28900 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 14:34:42 +00:00
Vincent van Ravesteijn
08467b3ddc Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28899 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 12:49:52 +00:00
Richard Heck
9761d953dc Tooltips for InsetCitation. Please check if this works with RTL.
I think it should.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28896 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 12:23:43 +00:00
Richard Heck
a0e266734d Cache the location of an InsetInclude's associated Buffer.
Abdel says this will be OK. ;-)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28895 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 12:23:07 +00:00
Richard Heck
d1c255d99d Whitespace (and a commit check).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28894 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 12:14:24 +00:00
Abdelrazak Younes
660d86948a header ordering.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28892 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-25 08:31:46 +00:00
Richard Heck
af68d27725 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28882 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 19:36:37 +00:00
Enrico Forestieri
350e43c482 More Ui tweaks for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28879 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 15:14:13 +00:00
Enrico Forestieri
9925d1f88a Fix reference dialog layout for Qt 4.2.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28877 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 14:14:50 +00:00
Jürgen Spitzmüller
8d8462afaf * GuiView.cpp (closeEvent):
- store child documents in session.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28874 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-20 09:31:02 +00:00
Jean-Marc Lasgouttes
a6d6c632fd Overhaul of the tex2lyx manpage
- make it autogenerated
- clean up the markup
- remove obsolete information
- try to update in general

Hopefully I did not break the markup...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28871 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-19 22:31:22 +00:00
Jean-Marc Lasgouttes
eb74cde19b use $version_suffix instead of $program_suffix in man pages (the later can come up as NONE)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28870 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-19 22:29:40 +00:00
Pavel Sanda
627f08f9f1 Revert r28853
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg148960.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28866 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-19 15:57:12 +00:00
Enrico Forestieri
aba488dea8 Fix display of release date with Qt 4.2.
In Qt 4.2, QLocale::toString(QDate, ...) returns an invalid but not empty date
when QDate is invalid. So, check whether QDate is valid before conversion.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28862 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 23:17:33 +00:00
Jean-Marc Lasgouttes
8bb055a973 fix "make check" with gcc 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28860 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:49:51 +00:00
Vincent van Ravesteijn
1a94a63db8 Adjust the comment about QFileInfo::operator==().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28859 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:49:11 +00:00
Richard Heck
22e1e85c8e Fix bug 1492.
Please let me know if this doesn't work right with various langauges, makes things worse, or what have you. I posted a note to devel about this but didn't get any response, so I'm guessing it's OK. If not, we'll revert it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28856 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 18:47:42 +00:00
Pavel Sanda
3f299e466b * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28854 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 13:29:45 +00:00
Pavel Sanda
e8e363338c Context-branch menu uselessly shows both open/close items.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28853 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 13:21:06 +00:00
Enrico Forestieri
12d1cb2076 Fixes for gcc4 on cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28842 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 22:35:55 +00:00
Jürgen Spitzmüller
44e35d1cd4 * VCBackend.cpp:
- some spelling and grammar fixes (a native EN speaker will have to double-check).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28837 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 11:06:28 +00:00
Jürgen Spitzmüller
13a1390271 * InsetMathCases.cpp:
- fix string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28835 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 10:47:55 +00:00
Jürgen Spitzmüller
d4f11c17e9 * Fix encoding problem following a Listing (bug 5783).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28830 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 09:25:52 +00:00
Jürgen Spitzmüller
4e61a40a92 * LaTeX.cpp:
- perform extra LaTeX run when requested by lettre.cls (bug 5818).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28828 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 05:09:18 +00:00
Richard Heck
ce8babd5b0 Fix bug 5782.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28823 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 20:10:57 +00:00
Pavel Sanda
7112e9bbdb * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28821 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 19:50:18 +00:00
Jean-Marc Lasgouttes
c7a08d57ce implement new lfuns inset-begin/end and their -select versions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28814 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-16 13:33:27 +00:00
Richard Heck
31d355d4f5 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28807 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 21:21:45 +00:00
Jürgen Spitzmüller
629e2073fc please Lars.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28799 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 15:53:17 +00:00
Vincent van Ravesteijn
cdfc9575a9 * GuiCommandBuffer: Fix bad programming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28794 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:20:15 +00:00
Jürgen Spitzmüller
53877ef28f * GuiDelimiter.cpp:
- do not auto-apply if "match" is not chosen (bug 5789).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28792 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-15 13:15:24 +00:00
Vincent van Ravesteijn
d3cca37860 Fix bug 5695. Now for the Include dialog.
http://bugzilla.lyx.org/show_bug.cgi?id=5695

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28784 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-14 19:29:03 +00:00
Richard Heck
22ba8256b2 So we do, sometimes, need the setBuffer calls that were removed in r28720.
This patch encapsulates the needed call in Buffer::setBuffersForInsets(),
and calls it from Undo::Private::textUndoOrRedo(). As noted in the FIXME,
this is still a bit of a "hammer" and ought to be replaced with the sort of
more refined approach taken in r28709. But I don't at the moment see how to
do that. The place to do it, though, is in doTextUndoOrRed().
 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28757 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 20:10:46 +00:00
Richard Heck
3aecc2c4ff Use an enum to make things a little clearer here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28756 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 20:02:12 +00:00
Vincent van Ravesteijn
d757c34e79 gcc compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28755 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 19:44:40 +00:00
Vincent van Ravesteijn
26529a1732 Fix a few peculiarities wrt graphics. E.g., an InsetGraphic with a non-existing image showed the message that the image was loaded, instead of "No file found!".
* CacheItem::Impl::tryDisplayFormat

- Enhance description of the return value.
- Negate the return values to match the description.

* CacheItem::tryDisplayFormat

- Impl::tryDisplayFormat returns whether a conversion is needed, not whether the try was successful. Therefore, we should check the status as well.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28754 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-12 19:25:07 +00:00
Pavel Sanda
d1a00c53b3 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28752 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-11 11:58:16 +00:00
Uwe Stöhr
662846f227 preamble.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5846
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28751 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-10 23:55:25 +00:00
Vincent van Ravesteijn
83dc36d66c Fix an infinite loop with Qt4.5 when creating two unnamed files.
In Qt4.5, QFileInfo::operator==() compares the file locations instead of the files themselves. Therefore, an extra check is needed.

see Qt4.5 documentation:
http://doc.trolltech.com/4.5/qfileinfo.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28748 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 23:30:08 +00:00
Vincent van Ravesteijn
8988dffe7c Remove black box around GuiWorkarea which is visible with Qt4.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28747 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 22:29:02 +00:00
Vincent van Ravesteijn
8768fa7251 Proper fix to avoid an infinite loop with Qt4.5.
see: 
http://www.qtsoftware.com/developer/faqs/why-does-qstring-indexof-qregexp-cause-a-crash-or-hang-in-qt-4.5

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28746 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:54:47 +00:00
Vincent van Ravesteijn
e7e4f9fd55 Revert cs 28742:28744 to prepare for a proper fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28745 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:47:46 +00:00
Richard Heck
ea0ed17421 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28744 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 19:12:02 +00:00
Abdelrazak Younes
500add162b Stupid me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28743 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 17:59:17 +00:00
Abdelrazak Younes
2cefb12b22 Avoid infinite loop with Qt4.5 (asserts instead).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28742 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 17:38:35 +00:00
Jean-Marc Lasgouttes
76d0ead2b6 make the lyxclient man page autogenerated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28740 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 14:49:40 +00:00
Jean-Marc Lasgouttes
9c0b6cf700 really reset the LANGUAGE variable to its old value, instead of some other guessed value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28737 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 13:49:53 +00:00
Jean-Marc Lasgouttes
fc1fb61336 allow to read Flex insets with a space in their name
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28736 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 13:48:09 +00:00
Enrico Forestieri
bd8788f377 Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
Japanese char between math insets becomes wrong in TeX output


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28732 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 06:47:26 +00:00
Enrico Forestieri
3175a28893 Fix bug 5836 (http://bugzilla.lyx.org/show_bug.cgi?id=5836)
Cyrillic formatted text in mathmode

If some other letters from some script need to be typeset in italic,
it will suffice adding the flag "mathalpha" to the unicodesymbols file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28731 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 06:34:00 +00:00
Vincent van Ravesteijn
1827aeda46 Fix scrolling regression (http://www.lyx.org/trac/changeset/28397).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28730 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 21:23:31 +00:00
Jürgen Spitzmüller
c4f0fb88f1 * tex2lyx/Makefile.am:
- add tex2lyx.1 to the distribution.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28728 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 10:49:06 +00:00
Vincent van Ravesteijn
8e633570bf Fix bug 5357: Close tab possible without close tab icon
http://bugzilla.lyx.org/show_bug.cgi?id=5357

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28727 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 10:21:33 +00:00
Vincent van Ravesteijn
8bb4c7bfe9 Fix bug 5695: Default button in GuiHyperlink must be "OK"
http://bugzilla.lyx.org/show_bug.cgi?id=5695

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28726 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-08 09:42:16 +00:00
Richard Heck
80c7326663 Remove setBuffer() calls that are no longer needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28720 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 21:09:41 +00:00
Jürgen Spitzmüller
d7601a684b fix bug 5833
* Buffer.{cpp, h}:
	- new method getChildren() that returns included (and sub-included) files

* GuiView.cpp (closeEvent):
	- do not just close dirty child documents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28712 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 16:33:03 +00:00
Jürgen Spitzmüller
0bee8a3b56 * CutAndPaste.cpp:
- correctly set buffer on paste. This fixes a crash on pasting branches 
	   within child documents (bug 5813)

(patch by rgheck)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28711 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-07 11:45:41 +00:00
Jean-Marc Lasgouttes
f24870ea9b In math matrices, make sure that only the align-type tablar-feature can get a check box in menus (with some themes, empty check boxes are visible)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28703 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 17:07:05 +00:00
Jean-Marc Lasgouttes
7bd971ff32 isAvailable is static
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28702 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 17:02:22 +00:00
Uwe Stöhr
fd051070a1 InsetMathCases.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=4141
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28700 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-04 01:30:08 +00:00
Jürgen Spitzmüller
2b24e2a45b InsetCollapsable.cpp (resetFonts):
- correctly initialize font (language) for PassThru insets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28672 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 10:24:07 +00:00
Vincent van Ravesteijn
ab3be86f96 * InsetTabular.cpp: Make sure the caption is inserted in the correct cell. This means we first have to reset the cursor to point to the new multicolumn, and then insert the caption.
See:
http://www.lyx.org/trac/changeset/28440

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28651 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-01 15:50:46 +00:00
Vincent van Ravesteijn
2e78ca5a47 Fix bug 5819: Close button of tabbar closes wrong document
http://bugzilla.lyx.org/show_bug.cgi?id=5819.

If no call to setCurrentIndex is made, we should make sure ourselves that the currentWorkArea switches to the clicked TabWorkArea.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28641 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-28 13:56:41 +00:00
Uwe Stöhr
ff9f9c92ae support for \cfrac in mathed, fixes bug 2473 and can also go to LyX 1.6.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28639 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-28 02:43:26 +00:00
Vincent van Ravesteijn
07dba7f761 Fix^3 of bug 4346.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28633 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-27 00:04:28 +00:00
Vincent van Ravesteijn
7580efc7f3 * Cursor.cpp: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28630 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 21:37:58 +00:00
Vincent van Ravesteijn
f03d2fb6ef Fix bug 5765: http://bugzilla.lyx.org/show_bug.cgi?id=5765.
[visual cursor] Crash when cutting a figure caption and moving the cursor.

Avoid negative positions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28629 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 21:29:19 +00:00
Vincent van Ravesteijn
4b775f5393 * Cursor.cpp: compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28628 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 21:17:34 +00:00
Vincent van Ravesteijn
e990b98cfd * Cursor.cpp: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28627 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 21:13:50 +00:00
Vincent van Ravesteijn
28cb308313 Fix bug 5762: http://bugzilla.lyx.org/show_bug.cgi?id=5762.
[visual cursor] Crash when moving left in table in an RTL document 

Avoid negative positions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28626 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 21:01:35 +00:00
Vincent van Ravesteijn
3919eeafe4 Fix warning similar to bug 5799: http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28625 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 20:52:47 +00:00
Vincent van Ravesteijn
36aa11863b Fix bug 5806: http://bugzilla.lyx.org/show_bug.cgi?id=5806.
Branch names with spaces impossible

Read the whole line to catch the whole branch name.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28620 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 00:24:12 +00:00
Pavel Sanda
17cb2e992b Add comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28617 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 00:13:47 +00:00
Pavel Sanda
5d2456ad90 Add dbg
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28616 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-26 00:06:20 +00:00
Pavel Sanda
9874a917df * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28613 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 23:46:55 +00:00
Pavel Sanda
37f82f7c2b Squash zillion warnings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28612 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 23:26:09 +00:00
Vincent van Ravesteijn
0b082f852a Put back the FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28611 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 22:41:29 +00:00
Vincent van Ravesteijn
7eb04d61d9 Fix the fix for bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346.
Synchronizing insets asserts with two views open

This finishes the change of http://www.lyx.org/trac/changeset/28587.

Replace the setButtonLabels functions that need a BufferView by buttonLabel functions. These functions modify the label at drawing time. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28610 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 22:35:41 +00:00
Enrico Forestieri
654600486b Fix bug 5541: http://bugzilla.lyx.org/show_bug.cgi?id=5541
This was due to a thinko in http://www.lyx.org/trac/changeset/26002


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28605 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 12:16:56 +00:00
Vincent van Ravesteijn
708e38ddb3 Fix bug 5744: http://bugzilla.lyx.org/show_bug.cgi?id=5744.
Crash with completion in mathed.

When deleting an inset, the stored DocIterator might contain a reference to a non-existent Inset and Text. Therefore, if we detect that the depth has changed, we are (for sure) not in the same paragraph, but we should make sure not to ask for the innerParagraph.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28596 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 00:39:55 +00:00
Pavel Sanda
303177ad81 Case-insensitive reference sorting.
Patch from Manoj Rajagopalan.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147931.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28593 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-24 22:56:57 +00:00
Pavel Sanda
316764c611 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28592 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-24 22:42:41 +00:00
Vincent van Ravesteijn
1907b28770 Fix bug 5769: http://bugzilla.lyx.org/show_bug.cgi?id=5769.
Copy content vanishes on Quit.

The work-around to clear the clipboard was needed to work around bug 4846. This bug has been resolved by the fix for bug 5472, so the work-around isn't needed anymore.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28589 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-23 19:06:43 +00:00
Vincent van Ravesteijn
8e2babb833 Fix bug 5797: http://bugzilla.lyx.org/show_bug.cgi?id=5797.
GetStatus of an InsetCollapsable asserts for unhandled commands.

When you add a command to the context menu of an InsetCollapsable of which the getStatus method does not handle this command, an assertion will be raised. This happens when getStatus doesn't handle a command it is forwarded to text::getStatus which asserts because cur.text() is the text the inset is in, while this is the text of the inset. So, we only dispatch to text_ if the cursor is inside the text_. This is not the case for e.g. context menus.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28588 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-23 19:00:23 +00:00
Vincent van Ravesteijn
92d90a0be3 Fix bug 5799. Warning when opening the document settings dialog. http://bugzilla.lyx.org/show_bug.cgi?id=5799.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28584 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 23:02:35 +00:00
Peter Kümmel
f0edb3dfb3 fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28581 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-22 12:42:10 +00:00
Richard Heck
90c64a5f5e A couple things noticed by Andre.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28578 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 21:49:56 +00:00
Uwe Stöhr
bf730bda7c LayoutModuleList.cpp: correct include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28577 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 21:19:12 +00:00
Uwe Stöhr
2bab705f62 LayoutModuleList: - make LyX compile
- fix SCons after r28575
                  - set EOL to native

@ Richard: For new files please always set the EOL flag to native. If possible it would be nice if you can also update SCons manifest file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28576 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 21:04:27 +00:00
Richard Heck
c67c0da43d Whoops.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28575 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 19:38:10 +00:00
Richard Heck
f946b6ed0b Move some more code around so as to make module-related routines available
to tex2lyx.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28574 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 16:45:37 +00:00
Vincent van Ravesteijn
aedfb81808 Fix bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346.
Synchronizing insets asserts with two views open

It changes the autoOpen_ member of InsetCollapsable into a map, such that an autoOpen value can be specified for each bufferView. Now, the assertion is avoided and insetCollapsable can be open in one bufferview and be closed in the other in very special cases that the cursor end up in a closed inset.

Compare with the MathMacro::editing_ member. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28573 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 16:27:00 +00:00
Jürgen Spitzmüller
3ccf39a084 * tex2lyx/preamble.cpp:
- fix thinko that caused tex2lyx to silently drop custom preamble entries in non-LyX-generated tex files.
	  (bug 5788). Patch from Jean-Marc.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28567 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-20 09:46:03 +00:00
Vincent van Ravesteijn
90feb482db Fix bug 5787-part_2 (Labels in Listings Children Don't Update Properly).
It was still possible to set the label of an included Program Listing to an already existing label (if there was no label specified yet).

See also:
	http://www.lyx.org/trac/changeset/28556


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 21:33:07 +00:00
Vincent van Ravesteijn
bc5bc24812 Fix a crash when removing the label of an included Program Listing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28563 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 20:53:35 +00:00
Vincent van Ravesteijn
3373aa588c Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:41:41 +00:00
Vincent van Ravesteijn
90258a0dd3 Remove the GuiRef::sort_ member. It was a relic of the old days.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:24:42 +00:00
Richard Heck
084de459fb Make Andre a little happier.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28560 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 19:10:59 +00:00
Richard Heck
00f5adcfe3 Rename a routine.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 17:24:37 +00:00
Richard Heck
072ed23ffc Patch from Bo. Fixes problem with labels in child docs of the listings type:
Duplicate labels were not being updated.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28556 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:50:25 +00:00
Richard Heck
ae6462af96 Fix more of bug 5751.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28555 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:42:30 +00:00
Richard Heck
e2d20d4386 Fix bug 5751.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28554 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:18:31 +00:00
Pavel Sanda
45134ce20b gcc compil fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28553 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 04:05:44 +00:00
Richard Heck
7ca8f5a5ec Cosmetics, and comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28552 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 03:24:51 +00:00
Vincent van Ravesteijn
0aca981637 Fix bug 5699 (crash when using outliner in child document while the master is not opened).
The problem was that, if the master is not opened, no respective guiDelegate exists, and the functions that update the toc do not trigger. The fix is to update the child's toc backend and toc items directly in such cases. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28551 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-19 00:29:04 +00:00
Vincent van Ravesteijn
c85e24b066 Fix bug 5785: http://bugzilla.lyx.org/show_bug.cgi?id=5785.
Reference dialog update crash for read-only documents.

Comments:
* -1 is a valid return of bufferCO->currentIndex() so we need to test for it.
* set the correct enabling of the button in case no call to updateContents follows.
* remove unneeded call to setFocusProxy. The widget is either disabled or the focus proxy is set in updateRefs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28547 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-18 23:45:00 +00:00
Georg Baum
9aad4bc27f Better fix for bug 1476 (following an idea by Jean-Marc).
Don't go into an endless loop if layout2layout cannot produce the desired file format.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28529 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-17 20:25:56 +00:00
Jean-Marc Lasgouttes
53dc4ae015 compilation warning: add exta braces around assignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28512 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:08:18 +00:00
Jean-Marc Lasgouttes
f1c6bfdc9d compilation warning: scale is unsigned
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28511 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:07:16 +00:00
Jean-Marc Lasgouttes
22e13587b3 compilation warning: comparison of two char *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28510 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:06:24 +00:00
Jean-Marc Lasgouttes
29117ed909 compilation warning: unused parameter
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28509 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-16 10:05:40 +00:00
Uwe Stöhr
8d69d174c5 InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5777
Also OK for branch?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28494 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 21:39:15 +00:00
Vincent van Ravesteijn
fe980636db Compile fix for r28492.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28493 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 16:57:52 +00:00
Vincent van Ravesteijn
d1074d1dbc Fix a crash on exit when the child documents are already unloaded.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28492 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 16:49:28 +00:00
Jürgen Spitzmüller
37d89378ca * Buffer.cpp:
- avoid wrong console message while loading a child from a master
	  that lead me on the wrong track when debugging bug 5699.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 14:21:59 +00:00
Jürgen Spitzmüller
93aff2c611 * Buffer.h: cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28489 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-14 13:52:10 +00:00
Uwe Stöhr
ba086ee65d InsetTabular.cpp: Reverting r28472 and part of r28461 - this would have been a regression, therefore readding it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28485 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 23:48:19 +00:00
Pavel Sanda
9212d03426 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28480 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 14:00:03 +00:00
Pavel Sanda
93ea6ec214 * doxy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28479 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 13:58:49 +00:00
Pavel Sanda
e59dbac2ed Introduce jump-back navigation through bookmark 0
http://bugzilla.lyx.org/show_bug.cgi?id=898
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg147949.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28478 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 13:46:08 +00:00
Uwe Stöhr
39aae243dc InsetTabular.cpp: I was over eager in r28442: there can only be one caption, but several header/footer rows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28474 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-13 03:17:01 +00:00
Uwe Stöhr
256ba59d5f InsetTabular.cpp: when there is no first header or last footer, then don't mention it in the LaTeX code, otherwise the header/footer will not appear on the first page.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28472 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 23:59:31 +00:00
Pavel Sanda
8044f9e4f3 Cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28469 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 23:46:16 +00:00
Richard Heck
08d7f7885a Next step: LayoutModuleList is now a thin wrapper around a list<string>.
It'll get its own methods later.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28468 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 15:07:22 +00:00
Richard Heck
4ae0333a99 Redundancy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28467 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 15:01:12 +00:00
Richard Heck
9bf18ee38e Squash warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28466 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 14:30:29 +00:00
Uwe Stöhr
a12e81fe06 GuiTabular.cpp, InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5773
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28464 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 03:02:34 +00:00
Uwe Stöhr
ff677ecfdb InsetTabular.cpp: output the caption for docbook according to the docbook documentation http://docbook.org/tdg/en/html/caption.html and this example: http://sources.redhat.com/ml/docbook/2004-06/msg00017.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28463 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 02:37:14 +00:00
Uwe Stöhr
cb81a4e0d4 InsetTabular.cpp: output the caption for docbook
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28462 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 02:31:00 +00:00
Uwe Stöhr
21cab38549 InsetTabular.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5772
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28461 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-12 02:23:48 +00:00
Richard Heck
52d3a1e426 Move some code around in an effort to make information about modules
available to tex2lyx. The point is to move the crucial routines that 
deal with modules out of BufferParams.cpp, which tex2lyx does not have,
and into TextClass.cpp, which it does.

This is all cleanup that makes a lot of sense independently.

Note that LayoutModuleList will shortly become a real class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28456 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 23:22:10 +00:00
Richard Heck
7e4d4d2641 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28455 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 20:02:53 +00:00
Richard Heck
9db713da16 Author info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28454 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 19:59:25 +00:00
Richard Heck
0a5514d2a4 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28453 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 19:51:56 +00:00
Richard Heck
61bef3b043 Access private data directly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28452 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 19:48:54 +00:00
Richard Heck
4407eb186f Use the typedef.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28451 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 19:35:22 +00:00
Richard Heck
2ebd679192 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28450 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 17:16:05 +00:00
Richard Heck
ee36483a8e Let's have a little more info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28448 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 17:08:51 +00:00
Jean-Marc Lasgouttes
24e29ad498 compilation fix on openbsd (bug 5650)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28445 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 14:34:40 +00:00
Jean-Marc Lasgouttes
209f2167f0 fix compilation with external boost
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28444 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 14:27:42 +00:00
Uwe Stöhr
b9df3d88c9 InsetTabular.cpp: partly reverting r28437, because I was wrong: it is totally valid to have several rows to be the header and also several rows can have a caption, my own EmebeddedObjects manual has examples for this - stupid me!
Bug 5752 is nevertheless still fixed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28442 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 03:18:16 +00:00
Uwe Stöhr
8bbd9f254d InsetTabular.cpp: Insert a caption, when a longtable row is marked to be the caption, otherwise the LaTeX output would be is incorrect
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28440 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-11 01:30:20 +00:00
Jean-Marc Lasgouttes
2d66dbb678 Fix bug 5666: assertion when an inset is outside of workwidth
http://bugzilla.lyx.org/show_bug.cgi?id=5666

Check whether an inset is in the coordcache before reading this cache (doh!)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28439 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 22:27:43 +00:00
Uwe Stöhr
e029b216b7 GuiTabular, InsetTabular: fix http://bugzilla.lyx.org/show_bug.cgi?id=5752
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28437 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 18:08:09 +00:00
Jürgen Spitzmüller
0c3109e2d3 * TocWidget.cpp:
- improve performance with Outliner open with Qt >= 4.3 by using native methods instead of home-brewn code.
	  This should especially pay off on the Mac, if the Outliner shows as a drawer (bug 4443).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28432 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 08:32:34 +00:00
Pavel Sanda
7cfe885af1 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5082
(Outliner uninitialized after lyx launch)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28428 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 00:10:45 +00:00
Vincent van Ravesteijn
0be0516d28 Fix bug 5753: http://bugzilla.lyx.org/show_bug.cgi?id=5753.
Crash when setting caption on a row with a multicolumn.

If there is already a multicolumn on the row, the number of cells is different from column_info.size().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28427 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-10 00:02:39 +00:00
André Pönitz
20d5148dca move ColorSet to a header of its own to reduce #include dependencies
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28426 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 23:30:24 +00:00
Vincent van Ravesteijn
c912d253f2 Fix bug 5711: http://bugzilla.lyx.org/show_bug.cgi?id=5711.
Add button in Citation dialog grayed out when key matches the start of an already selected key.

One parameter of match() was forgotten, so the MatchFlags were basically ignored, i.e. the standard flags were used always.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28425 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 23:20:52 +00:00
Vincent van Ravesteijn
09a0e37b15 Replace the PainterInfo::erased_ member by a proper Change object and remove the Color_deletedtext from InsetTabular.
see:
http://thread.gmane.org/gmane.editors.lyx.devel/114326

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28424 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 21:14:23 +00:00
Vincent van Ravesteijn
26c5e8a83b Fix bug 5629: http://bugzilla.lyx.org/show_bug.cgi?id=5629.
Hard to distinguish between added and deleted text.

* Changes.cpp/h: add a merge_color for deletions and change the return type to Color.

* ColorCode.h/Color.cpp: add a new customizable color that indicates the merge color for deletion.

See: 
http://thread.gmane.org/gmane.editors.lyx.devel/114189 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28423 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 20:47:32 +00:00
Vincent van Ravesteijn
438aaf2ec9 Add a new member to FontInfo denoting the color to be used when painting.
* rowpainter.cpp: now the color for painting selected text and changed text is set via FontInfo::setColor. However, this color should remain a ColorCode as this color is used in e.g. the GuiCharacter dialog and for LateX output. Therefore I use now the FontInfo::setPaintColor function.

* FontInfo.cpp/h: new members paint_color_ and setPaintColor(). The function realColor is updated to return the paintColor when it is set.

See:
http://thread.gmane.org/gmane.editors.lyx.devel/114189

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28422 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 20:22:48 +00:00
Vincent van Ravesteijn
a37eaf4f0b Use the new Color class (see r28420) in the Painter code.
See:
http://thread.gmane.org/gmane.editors.lyx.devel/114189

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28421 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 20:10:11 +00:00
Vincent van Ravesteijn
2e7698c4e6 Add a new Color class. This class makes it possible to specify a color as a merging of two other colors. The actual computation of the new color is done in ColorCache::get.
See:
http://thread.gmane.org/gmane.editors.lyx.devel/114189

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28420 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 20:00:31 +00:00
Vincent van Ravesteijn
74163aa0cf Fix bug 5766: http://bugzilla.lyx.org/show_bug.cgi?id=5766.
Crash when selecting a row and doing "Delete column" in a table with multicolumns.

The check "column + 1 < column_info.size()" checks whether there is at least one column after this one. However, this check is no longer valid if we remove the column from column_info first.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 19:39:28 +00:00
Vincent van Ravesteijn
71c44aa9d0 Add a comment for r28404.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28408 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 09:14:38 +00:00
Vincent van Ravesteijn
96eac2ca3f Fix bug 5750: http://bugzilla.lyx.org/show_bug.cgi?id=5750.
Wrong width display of multicolumn cells.

When changing a custom width cell into a multicolumn, the isFixedWidth bool should be set to false. Now, the function setFixedWidth could only set isFixedWidth to true when needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28407 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 09:02:50 +00:00
Uwe Stöhr
ff12fcb01b GuiTabular.cpp: a whitespace fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28406 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-09 00:06:32 +00:00
Pavel Sanda
887ba34eeb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5767
(disabled keep&sort buttons on ToC in readonly mode)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28405 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 23:45:17 +00:00
Vincent van Ravesteijn
adac53cbb2 Prevent assertion when closing LyX with GuiTabular open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28404 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 19:44:53 +00:00
Vincent van Ravesteijn
72fdd1b861 Fix bug 5604: http://bugzilla.lyx.org/show_bug.cgi?id=5604.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28400 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 18:33:01 +00:00
Vincent van Ravesteijn
0730c9235a Fix bug 5764: http://bugzilla.lyx.org/show_bug.cgi?id=5764.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28399 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 14:14:30 +00:00
Vincent van Ravesteijn
24cd681863 Fix bug 5573. http://bugzilla.lyx.org/show_bug.cgi?id=5573.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28397 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-08 12:35:14 +00:00
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