Commit Graph

14279 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
9b99e7be2c Fix rest of bug 4886, following Richard's advices.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26354 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 16:02:32 +00:00
Richard Heck
e16468d72e Revert 26348 and 26350. Wrong solution.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26353 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 14:36:38 +00:00
Jürgen Spitzmüller
623308f1e9 * src/insets/InsetTabular.cpp:
- correct LaTeX output for alignment in fixed width multicolumn cells
	  (bug 1747).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26352 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 12:49:08 +00:00
Abdelrazak Younes
c1fdb12118 n-th bug fixing patch from Vincent:
Almost all methods in the GuiPainter class have something like
 
if (!isDrawingEnabled())
  return;
 
except GuiPainter::fillRectangle(...) !!
 
Adding this will solve
 
gmane.editors.lyx.devel/109857
gmane.editors.lyx.devel/109859
http://bugzilla.lyx.org/show_bug.cgi?id=4937
http://bugzilla.lyx.org/show_bug.cgi?id=5027
http://bugzilla.lyx.org/show_bug.cgi?id=5235
 
Maybe also:
http://bugzilla.lyx.org/show_bug.cgi?id=5230


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26351 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 21:01:18 +00:00
Richard Heck
e3b15701a7 Forgot this part.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26350 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 18:46:38 +00:00
Richard Heck
3bb9c0d34d Fix bug 4886.
Introduce OutputParams::inTableCell, to track when we are in a table cell.
Use this information to output \newline rather than \\ when in one.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 18:42:17 +00:00
Richard Heck
e78347a673 Restore toggling behavior to math bold.
I've left mathbf in the symbols file. We should perhaps restore it as something that can be toggled.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26348 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 17:50:37 +00:00
Edwin Leuven
fab42d011c fix sideways scrolling in tabulars with nested insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26347 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 14:12:08 +00:00
Jürgen Spitzmüller
a4610848dc * GuiSearch.cpp:
- Texts that are entered in the search and replace fields of the
	   GuiSearch dialog are added to the bottom of the ComboBox. With this
	   patch they are added to the top as it probably most intuitive.
	   (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26346 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 13:20:44 +00:00
Jürgen Spitzmüller
8c097556d5 * GuiRef.cpp:
- The GuiRef dialog does not respond to keyboard events if the
	  reference list is empty. This is because the reference list has the
	  focus proxy and is disabled when the list is empty. Therefore I removed
	  the focus proxy from the list if it is disabled.
	  (patch from Vincent)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26345 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 13:18:36 +00:00
Uwe Stöhr
eb963540d4 various listings fixes by Vincent, see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg143302.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26341 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 21:51:38 +00:00
Uwe Stöhr
19c8baa1e1 specify a background color for listings and allow the user to change it, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26340 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 21:38:01 +00:00
Pavel Sanda
e6a27a4724 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5234 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26338 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 15:46:23 +00:00
Pavel Sanda
c1173eb11c Coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26335 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:18:33 +00:00
Pavel Sanda
4649511c2c Fix for accepting Tab key in shortcut dialog.
Patch from Bo.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26334 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 01:00:58 +00:00
Pavel Sanda
5aa4c26c22 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26333 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:28:32 +00:00
Pavel Sanda
cc5d0478c6 Move code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26332 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:27:07 +00:00
Pavel Sanda
375a2e6e1c Add completion-accept lfun.
Fixes first part of http://bugzilla.lyx.org/show_bug.cgi?id=5062 .

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26331 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:24:47 +00:00
Stefan Schimanski
f6084eaaa9 * LFUNs complete and complete-cancel. No key interception anymore. For now you have to bind the two LFUNs yourself.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26330 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-08 00:13:55 +00:00
Jürgen Spitzmüller
6875fa60be cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26328 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-07 16:13:24 +00:00
Pavel Sanda
809ed31d54 Fixing inline completion, Vincent strikes back :)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26327 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-07 15:54:06 +00:00
Uwe Stöhr
9a57449f40 GuiWorkArea.cpp: allow to navigate in tables with the Tab key, patch by Vincent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26320 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 21:10:59 +00:00
Stefan Schimanski
8314b93c04 * enter new macro template and select the name. This save a lot of keystrokes to remoe the long default name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26315 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 15:10:23 +00:00
Stefan Schimanski
849b405c73 * typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26314 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 15:10:10 +00:00
Abdelrazak Younes
d577bf8c4a Simplify InsetQuotes ctor.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26313 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 14:12:38 +00:00
Abdelrazak Younes
a5d7f0504d Pass Buffer in InsetQuote ctor. Patch fro Richard.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26312 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 14:04:01 +00:00
Abdelrazak Younes
2bd480132a fix crash: Copying the paragraphs invalidate the referenced Buffer so a new setBuffer() would be necessary, in it preferable and faster to just use a const ref.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26311 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-06 13:49:10 +00:00
Abdelrazak Younes
009bd5b8ff GuiApplication::resetGui(): clear out Mac nenubar before deletion, just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26307 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-05 12:42:47 +00:00
Abdelrazak Younes
0595b725f7 GuiApplication::resetGui(): Recreate Mac nenubar.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-05 12:39:43 +00:00
Enrico Forestieri
8fde2a6fa7 Implement the EnsureMath inset in mathed for nesting math mode in text mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26304 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 22:24:07 +00:00
Richard Heck
2807761e65 Fix a bug that allowed setting of layouts inside optional arguments.
There is more that could be done here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26303 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 21:50:14 +00:00
Pavel Sanda
827f28a1b1 Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26300 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 19:54:32 +00:00
Jürgen Spitzmüller
808dfb6c1f * src/LaTeXFeatures.cpp:
- handle case where natbib is loaded internally by a class, but still plain cite commands
	  have to be output (bug 5182)
* lib/revtex4.layout:
	- this is such a case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26298 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 14:39:08 +00:00
Jürgen Spitzmüller
7950986c87 Some GuiSendto polishing by Vincent and me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 09:36:44 +00:00
Enrico Forestieri
105e0dfe29 Add FIXME
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26294 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 19:07:54 +00:00
Edwin Leuven
ca2bf82ca9 correct size
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26293 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 18:47:12 +00:00
André Pönitz
78767f76fe cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26292 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 18:30:05 +00:00
Abdelrazak Younes
37e389baf7 Fix http://bugzilla.lyx.org/show_bug.cgi?id=5191
Patch from Vincent van Ravesteijn

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26291 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 12:59:36 +00:00
Enrico Forestieri
8d6b5113ec We may have buffers with different encodings, that, in turn, may also
be different from the language default ones.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26290 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-03 08:17:00 +00:00
Enrico Forestieri
1c362c80b2 Specify that we are in math mode. This avoids unnecessary \ensuremath
commands when using math in text mode (such as in $\text{$\phi$}$, where
\phi would be enclosed in \ensuremath{} as it is inside \text{}).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26288 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:04:05 +00:00
Enrico Forestieri
ad91dd139c Take into account the latex encoding when generating math preview snippets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26287 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-02 20:02:08 +00:00
Jürgen Spitzmüller
2179c671cf better naming for encoding default, as discussed in bug 4971.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-01 08:39:19 +00:00
Uwe Stöhr
ed5fcd95ac InsetHyperlink.cpp: coding style change according to André's advice
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26269 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 14:52:56 +00:00
Abdelrazak Younes
cc8653b95e potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5168
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26266 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-30 09:25:55 +00:00
Uwe Stöhr
ac3f391b46 InsetHyperlink.cpp: fix a bug I introduced in r26218
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 22:44:48 +00:00
Pavel Sanda
2d811e48e2 Get rid of annoying tooltips. ERT tooltip survived for the time being.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg142984.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:38:51 +00:00
Pavel Sanda
8a478b5ab8 Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5093 .
Patch by Vincent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26249 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:31:04 +00:00
Pavel Sanda
8b62eb2c64 Silence warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26240 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-27 20:24:18 +00:00
Richard Heck
9c2a1a828a Quick fix for a problem noted by Stefan. The better fix is to migrate this
dialog, and all the others, to the new framework. GuiRef still inherits from
GuiDialog, rather than from DialogView.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26234 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-25 17:38:57 +00:00
André Pönitz
3a5e4ab8ca more appropriate behaviour on assert
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26233 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-24 21:24:21 +00:00