Commit Graph

10472 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
a60f43e53a * src/mathed/InsetMathGrid.cpp:
- fix off-by-one-error in append-column (fix bug 4323/2).
	  This is Martin's original fix (r21430) minus the buggy renaming.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21439 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 14:31:33 +00:00
Martin Vermeer
5c7dd90532 Reverting crashing patch for 4323
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21438 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 14:10:10 +00:00
Abdelrazak Younes
2b310c8157 Fix bug 4317.
http://bugzilla.lyx.org/show_bug.cgi?id=4317

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21437 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 13:54:57 +00:00
Jürgen Spitzmüller
306dcd3916 * src/mathed/InsetMathGrid.cpp:
- clear selection before deleting row/column (fix bug 4323/1).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21434 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 10:47:54 +00:00
Martin Vermeer
2929845c7f Fix bug 4323/2, and more logical naming of addRow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21430 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 10:03:45 +00:00
Abdelrazak Younes
035078cc87 The wide() removal patch!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21428 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 08:04:20 +00:00
Jürgen Spitzmüller
e196b2c531 * src/mathed/MathParser.cpp (getChar):
- return 0 instead of char_type(), which is unpredictable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21427 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 07:56:20 +00:00
Jürgen Spitzmüller
9754bc398c * src/mathed/MathParser.cpp (getChar):
- empty return if the char is not good() (fix bug 4318).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21424 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 07:15:12 +00:00
Martin Vermeer
32f92613c1 Allow dissolution of insets inside mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21423 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 20:23:20 +00:00
Jürgen Spitzmüller
2579af6bf2 * src/LyXRC.cpp: fix order.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21419 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-04 11:25:20 +00:00
Abdelrazak Younes
43b0d5f626 Fix compilation for Qt < 4.3 (using 4.2.1).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21412 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 22:23:45 +00:00
Jürgen Spitzmüller
607bdaf91a * src/lengthcommon.cpp: disambiguation of gui string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21373 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 14:49:54 +00:00
Jürgen Spitzmüller
cfd4d240c2 * src/LyXRC.cpp: fix typo in commented-out code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21371 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 14:39:51 +00:00
Jürgen Spitzmüller
0f1b6903a8 * src/LyXRC.{cpp,h}:
- new RC_USE_PIXMAP_CACHE
* src/frontends/qt4/QlPainter.{cpp,h}:
	- use rc.use_pixmap_cache
* src/frontends/qt4/QPrefs.cpp:
* src/frontends/qt4/ui/QPref.ui:
	- implement rc.use_pixmap_cache

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21368 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 11:14:28 +00:00
Jürgen Spitzmüller
77d1135988 * src/insets/InsetTabular.{cpp, h}:
- Abdelize fix for bug 4147.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21356 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 18:41:51 +00:00
Jürgen Spitzmüller
a94fe3fb62 * src/insets/InsetTabular.cpp:
- handle char correctly for docstream (bug 4147).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21353 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 18:02:15 +00:00
Jürgen Spitzmüller
fd4fa37926 * src/frontends/qt4/QErrorList.cpp:
- do not close the dialog on double click (bug 4090).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21349 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:48:14 +00:00
Jürgen Spitzmüller
147e31bff5 * src/frontends/controllers/ControlSpellchecker.cpp:
- update screen after checking the last word (bug 3586).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21348 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 17:45:39 +00:00
Jürgen Spitzmüller
11be446d51 * src/frontends/qt4/QSearch.{cpp, h}:
- implement update_contents() and move selection-setting of the find input widget there
	  (fixes bug 3999).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21288 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 14:52:42 +00:00
Uwe Stöhr
f95696320b InsetMathBinom.cpp: fix bug 4308
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21281 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-30 00:52:55 +00:00
Bernhard Roider
ba328852b8 fix bug 3172: open file in binary mode, otherwise iteration of a binary file with for_each stops early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21221 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 21:45:55 +00:00
Abdelrazak Younes
3bb7b4153c Fix MSVC/CMake error and display caught exception.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21187 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 20:47:12 +00:00
Enrico Forestieri
6b2fe73e91 Add support for greek and cyrillic chars such that it is not
necessary to mark them in the proper language for typesetting.

	* src/Paragraph.cpp
	(Paragraph::Pimpl::writeScriptChars): new method.
	(Paragraph::Pimpl::simpleTeXSpecialChars): output proper
	latex code for greek and cyrillic chars when they cannot
	be encoded using the current latex encoding.

	* src/LaTeXFeatures.cpp: add textgreek and textcyr features.

	* src/Encoding.{cpp,h}
	(Encodings::isKnownScriptChar): new method.

	* lib/unicodesymbols: add greek and cyrillic alphabetic chars.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21184 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 17:24:56 +00:00
Jean-Marc Lasgouttes
3175af3ff9 * filetools.cpp (isFileReadable): boost::fs is tasteless enough to
throw exceptions on tests like existence of a file. Work around it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21172 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-24 09:01:51 +00:00
Jürgen Spitzmüller
0d7a465f33 * src/frontends/qt4/ui/ParagraphUi.ui:
- fix several duplicated accelerators (bug 4277)
* src/frontends/qt4/QParagraph.cpp:
	- use the original string from the dialog for the alignDefaultRB
	  widget, in order to display the accelerator.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21143 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-23 07:49:07 +00:00
Martin Vermeer
1267d53707 Fix off-by-one error addCol()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21123 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 18:18:10 +00:00
Martin Vermeer
3837b7a47e Fix problem with pressing C-Enter converting equation to eqnarray
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21122 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-22 18:07:48 +00:00
Enrico Forestieri
7dfea4e1bb Fix bug 4287
* src/Buffer.cpp (Buffer::save): also replace the ':' character
	in the mangled filename as this it is illegal on Windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-21 18:00:37 +00:00
Bo Peng
d323b6d03e Does not display the type of charstyle insets by default. Display type of an charstyle inset under mouse in the status line.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20968 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-14 16:30:22 +00:00
Bo Peng
880739c5c5 Check and show proper error message if configure.py fails (part of buf 2829)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20966 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-14 14:48:09 +00:00
Bo Peng
492c3a1cde Add Erlang support for listings (bug 4263)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20957 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-13 20:55:33 +00:00
Uwe Stöhr
dd60fe4480 LaTeXFeatures.cpp: URL-code cleanup, fix bug http://bugzilla.lyx.org/show_bug.cgi?id=2265
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20874 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 21:05:51 +00:00
Abdelrazak Younes
fd69063e00 clear the pixmap cache and the font metrics cache in case of zoom or dpi changes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20868 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-09 16:22:24 +00:00
Jean-Marc Lasgouttes
e16f8a2fd3 Fix bug 2445.
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to 
	simpler 'keep_layout'

	* src/Text.cpp (breakParagraph): change parameter keep_layout to 
	inverse_logic.

	* src/Text3.cpp (dispatch): remove LFUN_BREAK_PARAGRAPH_KEEP_LAYOUT;
	implement "inverse" flag to LFUN_BREAK_PARAGRAPH.

	* lib/bind/cua.bind:
	* lib/bind/xemacs.bind: 
	* lib/bind/emacs.bind:
	* lib/bind/mac.bind: adapt bindings.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20848 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-08 13:35:16 +00:00
Enrico Forestieri
2adcf3c23d Fix bug 2330
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20844 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-08 11:50:58 +00:00
Jürgen Spitzmüller
6887b5a328 * src/BranchList.cpp:
- fix crash when theApp() didn't exist (command line export of document with branches) [bug 4255]

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20841 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-08 09:25:37 +00:00
Jürgen Spitzmüller
f95b09aa14 * src/BufferView.cpp:
- revert the singlepar optimization (r20567) 
	  for the time being

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20728 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-04 09:28:26 +00:00
Richard Heck
454227569a Fix bug 4232: Crash on bad counter name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20702 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-03 18:10:23 +00:00
Jürgen Spitzmüller
22561386d0 * src/frontends/qt4/IconPalette.cpp (updateParent): listen to André
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20651 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-02 05:54:36 +00:00
Jürgen Spitzmüller
d49e986892 * src/frontends/qt4/IconPalette.cpp (updateParent):
- extent simplification done in r20630 also to math popup menus,
	   by Edwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20636 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 13:02:29 +00:00
Jürgen Spitzmüller
1b1132bd94 * src/frontends/qt4/IconPalette.cpp (updateParent): Oops ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 10:46:18 +00:00
Jürgen Spitzmüller
91f82566e8 * src/frontends/qt4/IconPalette.cpp (updateParent):
- don't check any single action, but only one for all (performance workaround),
	   by Edwin.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20630 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 10:40:47 +00:00
Jürgen Spitzmüller
fac4864d5a * src/frontends/qt4/QLToolbar.cpp (update):
- only update visible toolbars (performance fix).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20627 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 09:20:21 +00:00
Abdelrazak Younes
5dbee2a3f4 Fix slowness issue related to Clipboard and Selection under X11 platforms:
- GuiClipboard: Cache the Clipboard status when the data is changed.
- GuiSelection: Cache the Selection status when the data is changed.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20624 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-01 09:03:17 +00:00
Jürgen Spitzmüller
819f458d84 * src/insets/InsetGraphics.cpp (prepareFile):
- Fix wrong external_path that triggered an assert on Windows
	  while exporting to LaTeX (bug 4243).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20606 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-30 12:32:31 +00:00
Abdelrazak Younes
3ab50efe1f Rework 'dbg painting' to be in line with trunk.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20568 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-28 12:24:20 +00:00
Abdelrazak Younes
39cd77bee0 singlePar with non wide inset optimization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20567 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-28 12:22:11 +00:00
Jürgen Spitzmüller
95a9ed8c3f * src/LyX.cpp: style corrections.
This should also be done in trunk, but I don't have trunk here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20525 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 20:31:50 +00:00
Bo Peng
4493a50d41 Lyx now starts and asks for reconfigure if no textclass is found (bug 2829)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20521 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 19:33:10 +00:00
Richard Heck
00de2ddcb2 Backport change 20366 to branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20498 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-25 17:18:33 +00:00
Jürgen Spitzmüller
e244c4c2b4 Fix bug 4182:
* src/insets/InsetCaption.cpp (draw, metrics):
	- set correct font for caption in Workarea.
* src/insets/insetListings.cpp (latex):
	- set correct font for caption in output.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20471 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-24 17:50:07 +00:00
Uwe Stöhr
c79cc07cbc QBox.cpp: fix bug 4233 http://bugzilla.lyx.org/show_bug.cgi?id=4233
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20461 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-24 11:55:16 +00:00
Jean-Marc Lasgouttes
b873259da2 fix uninitialized variable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20413 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-21 13:33:03 +00:00
Jean-Marc Lasgouttes
8aac38439a fix second parameter of breakParagraph
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20411 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-21 12:37:47 +00:00
Abdelrazak Younes
623038deec shut down conversion warning and unicode fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20375 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-20 10:30:49 +00:00
Abdelrazak Younes
309e9a5516 Fix bug 4211.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20370 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-20 06:47:39 +00:00
Richard Heck
35c6ae6f30 Somehow this got missed when (partially) fixing the recursive include problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20364 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-19 23:53:01 +00:00
Abdelrazak Younes
a84506795b Fix bug 4002 and 4029.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20350 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 18:31:24 +00:00
Jürgen Spitzmüller
f535b7e321 * src/LaTeX.cpp (scanLogFile):
- parse file:line:error style messages (bug 4222)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-18 13:39:18 +00:00
Bo Peng
648f1b1a97 make index label translatable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20317 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 14:42:56 +00:00
Jürgen Spitzmüller
171fb900e4 * src/Text3.cpp:
- revert accidental commit in r20311.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20316 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 14:31:48 +00:00
Bo Peng
d61a106b0d Display index name in the screen label of index insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20315 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 14:20:08 +00:00
Uwe Stöhr
88ae5b3ba1 EmbeddedObjects.lyx: new section about scaled and rotated material
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20311 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 12:45:41 +00:00
Abdelrazak Younes
656e851b88 Fix bug 4178.
Clear out selection and cut stack buffers on exit.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20302 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 09:00:10 +00:00
Abdelrazak Younes
0175b39db0 Fix crash with math inset with empty string.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20286 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-15 13:12:21 +00:00
Jean-Marc Lasgouttes
c9a12aabdc * src/Encoding.cpp (read): avoid gcc warning
* src/BranchList.cpp:  inintialize correctly variable to please 
	valgrind


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20278 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-14 14:07:31 +00:00
Enrico Forestieri
23456280af Fix crash with old versions (earlier than 2.2.92) of fontconfig.
* src/frontends/qt4/GuiFontLoader.{cpp,h}
	(GuiFontLoader::GuiFontLoader): don't store font IDs anymore,
	as we are not going to clean up after ourselves.
	(GuiFontLoader::~GuiFontLoader): make it virtual again and
	do nothing (avoids a crash with fontconfig < 2.2.92).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20247 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-12 19:08:04 +00:00
Richard Heck
99f97be8f4 Port change at 19867 by Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20222 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 20:38:25 +00:00
Abdelrazak Younes
5f24e6cc63 Bug fix: correctly redraw a Row containing and inset which Dimension slightly changed. This replace the need for leftEdgeFixed boolean in rowpainter.C:paintPar() which can be removed now.
* Inset::dimension(): access to dim_

* TextMetrics?::redoParagraph(): checking Inset::metrics() returned boolean is not enough as the internal dimension is changed down in the inheritance chain for InsetFoot?->InsetCollapsable?->InsetText?. 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20221 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 20:37:03 +00:00
Abdelrazak Younes
b01b6a3023 BufferView: Be on the safe side: clear out all of text_metrics_ when doing a full update.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20220 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 20:09:36 +00:00
Jürgen Spitzmüller
33384ba6b2 Backport revision 19747:
* src/frontends/qt4/GuiView.h:
	- Delete include of config.h. This was needed only for the qt3 port.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-11 06:21:53 +00:00
Bo Peng
f79e11e5f1 backport r19472
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20199 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-10 19:24:43 +00:00
Jürgen Spitzmüller
2b240a39c2 * src/insets/InsetCommand.{cpp,h}:
- implement edit function that opens the inset's dialog.
* src/BufferView.cpp (doDispatch):
	- call inset->edit (i.e. open dialog) for EDITABLE insets on next-inset-toggle (bug 2907)
* src/Text3.cpp (doDispatch: INDEX_INSERT):
	- move inset->edit to where it belongs.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20192 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-10 16:04:21 +00:00
Abdelrazak Younes
a0c7b98414 Fix bug where the cursor was largely off-screen on document opening (bug 3427).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20191 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-10 14:44:05 +00:00
Jürgen Spitzmüller
e93b4dc529 * src/Paragraph.cpp (getLabelWidthString):
- don't judge possibility of configurable label string by the existence of such,
	  but rather by the margintype (bug 4127) 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20187 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-10 13:44:49 +00:00
Enrico Forestieri
f6b585d311 Register math fonts with Qt 4.2 or higher. Using Qt 4.1, the old
xft-fonts package is still required. However, on *nix there seem
to be no way to tell fontconfig to prefer our fonts instead of
others matching the requirements, so, in case of conflict, the
fontconfig files should be manually adjusted, or some existing
font package used (note that the quality of the bakoma fonts is
better than that of the xft ones). There is no such problem on
Windows where our private fonts are always preferred over the
installed ones (and I hope the same holds true for Mac).

	* src/LyX.cpp
	(LyX::exec): don't call addFontResources() and restoreFontResources()
	anymore, as the frontend code will do the job.

	* src/frontends/qt4/GuiFontLoader.{cpp,h}
	(GuiFontLoader::GuiFontLoader): register math fonts with Qt.
	(GuiFontLoader::~GuiFontLoader): unregister math fonts.

	* src/support/os.h
	* src/support/os_unix.cpp
	* src/support/os_win32.cpp
	* src/support/os_cygwin.cpp:
	remove code dealing with fonts.

	* configure.ac: don't check for fontconfig headers anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20148 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-08 17:35:21 +00:00
Jean-Marc Lasgouttes
fd17266d65 Fix bug 4212
* Text2.cpp (deleteEmptyParagraphMechanism):
	* paragraph_func.cpp (breakParagraph): make sure that the start of 
	appendix marker is not lost when deleting or breaking a paragraph



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20125 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-07 13:27:38 +00:00
Alfredo Braunstein
80af79b747 optimization: avoid checking fonts if lyxrc.rtl_support is false
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20124 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-07 10:31:32 +00:00
Alfredo Braunstein
99dbbcfa3f font optimization: avoid one font copy in getFont
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20123 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-07 10:24:58 +00:00
Martin Vermeer
b074fa50bf another translation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20111 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 18:10:11 +00:00
Martin Vermeer
b75e3a7a16 Fix ambiguity in translation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20110 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 18:06:14 +00:00
Martin Vermeer
e1cdcc86e4 Fix old error string in Cases
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20109 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 18:03:04 +00:00
Bo Peng
4c43b3465f Fix bug 4193: Revert and saveAs treated as "file is externally modified"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20108 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 16:09:28 +00:00
Enrico Forestieri
2fef8a94bd Register math fonts with fontconfig
* src/support/os_unix.cpp
	  (addFontResources): add the system fonts dir to the paths
	  scanned by fontconfig.
	  (restoreFontResources): remove the system fonts dir from the
	  fontconfig configuration.

	* configure.ac:
	  add check for the fontconfig devel headers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20035 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-04 13:34:50 +00:00
Alfredo Braunstein
f3b55ec4e7 fix bug 3600
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19942 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 10:45:51 +00:00
Georg Baum
c51c8a7257 fix bug 4132: parse some more column specifiers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19941 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-31 10:31:19 +00:00
Richard Heck
484ce8eba7 Fix bug 3999: Highlight search text.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19917 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 15:06:14 +00:00
Richard Heck
98a7516921 Fix bug 4170: Close window when user wants it closed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19890 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 15:31:22 +00:00
Jürgen Spitzmüller
97e7578b62 * src/Text2.cpp:
- fix wrong DEPM in ct mode (bug 3961).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19885 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-29 13:05:35 +00:00
Abdelrazak Younes
58d777eca3 MacOS compil fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19831 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 13:12:18 +00:00
Abdelrazak Younes
d0b8f24cc2 Backport the pixmap cache from trunk. Disabled for X11 and for Qt < 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19829 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 11:10:28 +00:00
Abdelrazak Younes
6de44e53f5 Fix crash when inserting float.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19828 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 09:31:38 +00:00
Abdelrazak Younes
8fd3e3ecbc New 'Save all on shutdown or cancel' feature from Stephan Witt (Fix bug 1656).
* GuiApplication::commitData(): implement.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19825 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 07:13:05 +00:00
Richard Heck
896b797e05 Make LYX_ALIGN_LAYOUT always be available. (Trunk committed at r19332).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19810 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-26 19:55:46 +00:00
Bo Peng
024ff89634 Remove unused std::time in src/DepTable.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19780 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 17:07:36 +00:00
Abdelrazak Younes
2d8a0710eb Bugfix: the current cursor font was not reset when going to a bookmark.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19770 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 13:53:45 +00:00
Abdelrazak Younes
75e3b6a419 Fix crash when using down cursor in an empty math subscript (Bug 4117).
http://bugzilla.lyx.org/show_bug.cgi?id=4117 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19689 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 08:17:07 +00:00
Abdelrazak Younes
920be91bec Fix bug 4123: crash when closing LyX window with document tabs
http://bugzilla.lyx.org/show_bug.cgi?id=4123 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19688 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 08:10:54 +00:00
Bo Peng
b6fb32535a Fix crash when a user removes a formula when its preview is being generated. (Another signal/destructor/gcc3 bug)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19666 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 21:25:14 +00:00
Bo Peng
e025b9fa98 Fix crash when a user removes the underlying figure of a graphic inset that has been copied and pasted (Bug 4108)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@19611 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-16 18:29:53 +00:00