Commit Graph

10431 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
77c1dbe3ba * src/Text.cpp:
- safer (but slightly less nice) fix for bug 4334. Fixes bug 4347 that was introduced in r21488.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21540 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 10:48:13 +00:00
Abdelrazak Younes
dd172d53ed Fix bug 4335:
http://bugzilla.lyx.org/show_bug.cgi?id=4335

I say "assertion" in status.15x because the crash happens only in debug mode. Of course, as assertion are enabled in the Windows packages these are equivalent to crashes...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21528 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-09 10:06:09 +00:00
Jürgen Spitzmüller
c0a625149f * src/Text.cpp (getPossibleLabel):
- remove line breaks from label proposals (fixes bug 4334)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21488 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 15:26:06 +00:00
Jürgen Spitzmüller
382db53914 * src/BufferView.cpp:
- move the LFUN_OUTLINE_*'s out of here ...
* src/Text3.cpp:
	- to this place. This fixes a crash (bug 4330).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21473 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 14:39:30 +00:00
Jürgen Spitzmüller
452d7e28c0 * src/frontends/qt4/QSpellchecker.cpp:
- fix bug 2218 (spellchecher skips first word)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21470 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 13:46:52 +00:00
Bernhard Roider
4abde70bc3 correct previous commit (sync with trunk)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21446 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 17:24:33 +00:00
Bernhard Roider
53cd7838e4 more complete fix for bug 4318 and variants (see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg130765.html)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21445 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 16:53:16 +00:00
Bernhard Roider
5275a25cf4 fix bug 4301:
BufferView::moveToPosition(..) failed for every position inside an inset because buffer_->text() was used instead of cursor_.text() to set the current font.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21442 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 16:40:14 +00:00
Jürgen Spitzmüller
508f44d8be * src/LyXFunc.cpp (actOnUpdatedPrefs):
- add missing LyXRC::RC_USE_PIXMAP_CACHE to switch,

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21440 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-05 15:47:13 +00:00
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