Commit Graph

3420 Commits

Author SHA1 Message Date
Uwe Stöhr
42715a37f0 InsetNomencl.cpp: remove hardcoded symbol width
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29797 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 23:23:09 +00:00
Jürgen Spitzmüller
e9cbe2f80f A GUI for nomencl settings. Adds the possibility to enter a custom length.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29779 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 16:26:15 +00:00
Jürgen Spitzmüller
72ae399fad * InsetNomencl.cpp (nomenclWidest):
- use FontMetrics to determine widest string.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29776 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 09:25:31 +00:00
Jürgen Spitzmüller
18cfe15b64 file format change due to r29770.
No automatic width calculation is done for old documents, because these might rely on settings in
nomencl.cfg.

A GUI to alter this is needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29775 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 08:31:43 +00:00
Uwe Stöhr
ce473c810a InsetNomencl.cpp: assure that the label width is never below the predefined value and that there is always enough space
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29773 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-21 22:18:08 +00:00
Uwe Stöhr
8f3acbb484 remove unused includes of convert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29772 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-21 21:02:14 +00:00
Uwe Stöhr
ec5e4b26f5 InsetNomencl: calculate the needed symbol width for \printnomenclature, fixes #5909
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29770 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-21 19:33:09 +00:00
Uwe Stöhr
42e16892c3 InsetBibitem.cpp: typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29744 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 21:29:30 +00:00
Uwe Stöhr
23998a89c0 InsetFloat.cpp: remove unneeded include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29743 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 21:26:23 +00:00
Jürgen Spitzmüller
06cdeb86f5 * InsetTabular.cpp (getStatus):
- allow again to set allocate multiple header attributes to a row,
	  since this is valid (fix bug 5950).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29721 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-18 06:22:25 +00:00
Uwe Stöhr
629b07b72f InsetCollapsable.cpp, factory.cpp: sorting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29720 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 21:28:35 +00:00
Vincent van Ravesteijn
3cc18261ef Fix bug #4952: Multiple cells pasting fails if cells are selected.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29719 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 21:22:02 +00:00
Jürgen Spitzmüller
8179094fa9 whitespace and typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29710 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 11:27:44 +00:00
Jürgen Spitzmüller
e71be32d2a * InsetCollapsable.cpp (doDispatch):
- reset paragraph fonts also after LFUN_SELECTION_PASTE.
	  This assures lang is set to latex in ERTs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29690 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-16 15:39:03 +00:00
Vincent van Ravesteijn
8996be1208 Restore Object.Event order for:
- LFUN_LABEL_COPY_AS_REF,
- LFUN_LABEL_INSERT_AS_REF.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29680 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-15 21:05:19 +00:00
Vincent van Ravesteijn
7083f02b1d Prevent two more assertions due to non-absolute filename as a parameter of file-insert-plaintext.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29638 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 00:15:16 +00:00
Vincent van Ravesteijn
71f9d3600c Fix bug #5890: Assertion when reducing the view size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29597 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 20:26:04 +00:00
Richard Heck
675925f659 This patch introduces wrapped tooltips for some more insets.
New method wrapParas() in support, deployed in various
insets.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 18:04:05 +00:00
Richard Heck
cca51a04c2 Move the word-wrapping code to support, so that it can be re-used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 12:23:12 +00:00
Enrico Forestieri
128c2b31d8 Avoid ugly macros in the preamble and protect underlined \cite commands
in a clever way.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29558 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 10:57:52 +00:00
Jean-Marc Lasgouttes
36a811cba2 keep a cast for later
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29551 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-06 13:41:35 +00:00
Pavel Sanda
6fde8f8067 Introduce double underline and wavy underline styles from ulem
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150803.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29542 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-05 09:26:28 +00:00
Pavel Sanda
381b86788d Introduce strikeout text style (strike-through)
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150743.html

Somewhat related to http://www.lyx.org/trac/ticket/4248 .


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29523 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 22:45:14 +00:00
Enrico Forestieri
ccc77c73da Speed up FileName operator== (Georg's solution).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29498 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 17:12:31 +00:00
Abdelrazak Younes
f665e65071 Forgot to commit this in previous rev. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29467 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 10:30:16 +00:00
Jürgen Spitzmüller
dd930b4535 * final splitindex feature addition: support for \printindex* and \printsubindex*
File format change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29419 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-27 06:10:25 +00:00
Jürgen Spitzmüller
0bd5c5fca8 * Add support for splitindex's \printsubindex command. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29409 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-26 11:24:38 +00:00
Vincent van Ravesteijn
2bc9c7c9c4 * Revert the noise.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29376 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 21:02:05 +00:00
Vincent van Ravesteijn
4c9fe33c83 * Move handling of LFUN_INSET_SETTINGS to Inset,
* Remove the EDITABLE enum,
* add functions hasSettings() for all insets.

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

OK for branch too?  

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

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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-19 11:57:52 +00:00
Vincent van Ravesteijn
b6ce46fb94 InsetInfo: simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29317 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 17:02:48 +00:00
Jürgen Spitzmüller
521577ba4c * InsetIndex.cpp:
- fix InsetPrintIndex::getStatus logic (detected by Vincent).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29316 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 16:20:08 +00:00
Vincent van Ravesteijn
6192d3dbbf InsetPrintIndex: Fix getStatus() for INSET_MODIFY.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29315 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 16:02:36 +00:00
Vincent van Ravesteijn
ac6a7ed432 InsetInfo is editable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29310 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 12:14:08 +00:00
Jürgen Spitzmüller
30961c95d9 * InsetInfo: fix bug 5901.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29305 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-18 05:57:02 +00:00
Jürgen Spitzmüller
d12426a340 New inset dialog for InsetPrintIndex (only used with multiple indices)..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29290 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-17 14:29:32 +00:00
Jürgen Spitzmüller
de22184d97 New inset dialog for InsetIndex (only used with multiple indices)..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29285 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-17 09:22:44 +00:00
Jürgen Spitzmüller
c52bd08442 Introduce splitindex support. File format change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29255 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-16 07:29:01 +00:00
Vincent van Ravesteijn
e4a6b62f03 InsetListings.cpp: simplify.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29246 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 17:00:43 +00:00
Vincent van Ravesteijn
a018cae244 Fix bug 5894: Inserting tabs with inline selections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29245 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-15 16:42:38 +00:00
Jürgen Spitzmüller
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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