Commit Graph

3326 Commits

Author SHA1 Message Date
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
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
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
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
Jürgen Spitzmüller
78ab480e72 whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-23 14:46:33 +00:00
Richard Heck
c03e5941a3 Whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27637 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 04:41:10 +00:00
Vincent van Ravesteijn
d38cc523c6 Fix tabular cursor movement:
- allow repeated shift-up in a multi-line column,
- finish r27581 and r27567 :
    we have to call cur.selHandle ourselves now,
- do not dispatch to the cell in multicell selection.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27632 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-19 01:02:48 +00:00
Vincent van Ravesteijn
912979d2db Correct painting of a fully selected tabular cell.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27630 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 22:35:02 +00:00
Vincent van Ravesteijn
6f88e64895 Fix bug #5536.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-18 21:37:02 +00:00
André Pönitz
6192345f60 add Buffer * member to DocIterator
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27603 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 11:46:07 +00:00
Stefan Schimanski
5a10add52e * "Copy as Reference" in the context menu of a label
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27575 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 19:19:07 +00:00
André Pönitz
32a53f8d6a move more stuff from buffer_func to Buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27565 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 17:49:00 +00:00
André Pönitz
f8f5a7b28d move updateLables to buffer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27562 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 16:43:49 +00:00
Jean-Marc Lasgouttes
0778007050 rename [io]docfstream to [io]fdocstream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-16 12:21:29 +00:00
Jean-Marc Lasgouttes
ffafdb2bbe move the catInit call around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 19:30:58 +00:00
André Pönitz
937de4d880 fix constness of string literals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27467 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 17:40:05 +00:00
Stefan Schimanski
481aff5aff * notifyCursorEnters called on insets when the cursor entered
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27465 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-15 17:11:01 +00:00
André Pönitz
f1cba8ff64 more latin1..utf8 schanges. all of src/* should be utf8 now
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
Jürgen Spitzmüller
3cc2dda65e * InsetLabel.cpp:
- no duplicate check for unchanged parameters (bug 5496).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27403 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-12 18:51:36 +00:00
Richard Heck
b83564d82c Inset::textString --> Inset::tocString
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27378 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-10 22:45:14 +00:00
Jean-Marc Lasgouttes
4804b60f1c do not show Index contents in ToC (note that Inset::textString is only for this use)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27326 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-07 13:06:20 +00:00
Jean-Marc Lasgouttes
4e2c8c4f9b Make sure that the contents of the inset uses the buffer language (in order to
avoid the ugly blue line).

Fixes part of http://bugzilla.lyx.org/show_bug.cgi?id=5348


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27267 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 16:40:18 +00:00
Jean-Marc Lasgouttes
0e2ded8161 Fix bug 5407
http://bugzilla.lyx.org/show_bug.cgi?id=5407

This patch makes insetfloat search its styles using "Float:<floatname>" (or
"Float" if this fails). This allows to define a default behaviour for new
floats that makes sense.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-05 15:35:02 +00:00
Jürgen Spitzmüller
a73c6c72dc * InsetInfo.cpp (toolTip):
- use bformat for proper syntactic translatability
	  (the tooltips of this inset look rather weird in generals, though).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27242 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 17:36:28 +00:00
Jean-Marc Lasgouttes
84395acfb5 * insets/InsetText.cpp (addToToc):
* TocBackend.cpp (updateItem): pass option AS_STR_INSETS to asString,
	so that insets get a chance to be displayed in ToC.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27238 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 13:47:12 +00:00
Jean-Marc Lasgouttes
7356fcd2cf Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5339
* InsetInfo.cpp (updateInfo): insert the text using inherit_font
	so that there is not an extra \textsf output to LaTeX; change
	"shortcut" to display the first shortcut, not the last (if only
	to be consistent with menus).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 11:12:52 +00:00
Jean-Marc Lasgouttes
e4dea6c076 oops! r27229 was wrong
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27230 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 09:03:01 +00:00
Jean-Marc Lasgouttes
24ac7258c5 revert r27209
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27229 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-03 08:59:03 +00:00
Jürgen Spitzmüller
10e05161fb * InsetWrap (updateLabels):
- use master buffer if necessary (fixes bug 5431).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27226 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-02 16:49:48 +00:00
Jean-Marc Lasgouttes
adf48d1f51 Fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5421
Make InsetInfo shortcuts use Portable representation of KeySequence.

	* KeyMap.cpp (printBindings): add format parameter

	* LyXFunc.cpp (sendDispatchMessage):
	* insets/InsetInfo.cpp (updateInfo): adapt.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27208 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-31 11:19:16 +00:00
Richard Heck
f771d9a994 This is a conservative fix for the layout setting bug discussed in
this thread:
  http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145547.html
The more dramatic fix suggested there can wait.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27164 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 14:11:24 +00:00
Jean-Marc Lasgouttes
a47deb4897 fix warning and reindent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27147 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-27 10:36:38 +00:00
Richard Heck
6b0e349980 Revert r27129. We can't get rid of these until we have something else positive to do.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 16:05:19 +00:00
Richard Heck
d6f1915684 This optional argument to the InsetCollapsable constructor
is more trouble than it is worth.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27131 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 02:25:57 +00:00
Richard Heck
2e81620979 The last commit was, uhh, not what I intended.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 02:14:30 +00:00
Richard Heck
9e3b4803fe The two lines deleted here attempt to call virtual functions from a constructor. They have no effect, basically. Patch that does what these try to do forthcoming.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 01:18:26 +00:00
Richard Heck
90d118cf56 Fixme comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 15:25:46 +00:00
Richard Heck
976a59af1b Fix another part of 5403, again to do with case sensitivity.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 14:02:25 +00:00
Richard Heck
53252839ea Style.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 13:41:02 +00:00
Richard Heck
70d5f953c9 Fix for another part of 5403, and related bugs, anyway. The InsetLayout
tags should not be so case-dependent, and we ought to use an Enum instead.
of relying upon string comparisons.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 13:32:54 +00:00
Richard Heck
bdc1d80151 More general fix for part of 5403.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 12:49:49 +00:00
Pavel Sanda
e4808961c9 Another selection painting patch, PainterInfo::backgroundColor introduced.
Patch by Vincent.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145438.html



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 10:47:38 +00:00
Uwe Stöhr
bed3844f30 InsetLayout.cpp: fix part of http://bugzilla.lyx.org/show_bug.cgi?id=5403
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27095 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 01:55:55 +00:00
Jean-Marc Lasgouttes
0790ad1b72 fix bug 5349: properly quote InsetInfo argument
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27055 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-23 13:12:19 +00:00
Jürgen Spitzmüller
25c8c8ce8a * InsetMarginal.cpp:
- \marginpar needs to be \protect'ed in fragile context (bug 2790).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26992 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-20 17:08:39 +00:00