Commit Graph

3267 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Uwe Stöhr
06e961047e InsetHyperlink.cpp: - fix my rash r28141
- bugfix allow the usage of "%" in the URL field

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28169 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-15 02:53:08 +00:00
Uwe Stöhr
03264aab68 InsetHyperlink.cpp: fix http://bugzilla.lyx.org/show_bug.cgi?id=5686
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28141 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-14 01:27:01 +00:00
Pavel Sanda
a87df64327 Add comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28106 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 22:55:16 +00:00
Richard Heck
d17e30c00d Fix the translation of macros like: \"u, which don't appear
in unicodesymbols.


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

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28085 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-11 08:31:52 +00:00
Jürgen Spitzmüller
6525a79188 * InsetSpace.cpp: typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28071 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-10 17:07:52 +00:00
Vincent van Ravesteijn
dd64c572c2 Allow users to specify toolbar icons for commands with a backslash. This is in the same style as the replacements made for math-insert commands.
See the user's list:
http://thread.gmane.org/gmane.editors.lyx.general/52712

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


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

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27954 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-22 18:12:32 +00:00
Pavel Sanda
d9f13a9072 Fix first insert of external material & instant preview.
Bug http://bugzilla.lyx.org/show_bug.cgi?id=5626 .
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146921.html .


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

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

Format 11

InsetLayout ERT
	Decoration classic
End

will do as advertised.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27900 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 16:11:15 +00:00
Jürgen Spitzmüller
5784ce29fd Let InsetWrap find its InsetLayout.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 15:34:32 +00:00
Richard Heck
6172a07a9d Constness and a typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27894 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-16 14:13:02 +00:00
Jean-Marc Lasgouttes
370a4d8cf2 1/ call InsetCollapsable::validate instead of InsetText::validate in several
to allow customization in layout files

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27859 a592a061-630c-0410-9148-cb99ea01b6c8
2008-12-12 15:38:52 +00:00
Vincent van Ravesteijn
aaf27b169d Remove useless and confusing lines of code. As subfloat is not written into the LyX file, we have to (at the moment) rely on a call to updateLabels before setting the new label.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-26 23:29:36 +00:00
Richard Heck
39bc3f3f93 Fix most of bug 5539.
If a file fails to load, we do not try to load it again. The downside is that, even if you fixed the problem, then LyX won't try to load it again in that session. I tried resetting the failedtoload_ variable in fileChanged(), but that didn't work, as it doesn't seem to get hit. I'm not sure what to do here, but it isn't a huge issue.



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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27687 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-24 12:40:53 +00:00