Commit Graph

10540 Commits

Author SHA1 Message Date
Enrico Forestieri
00dfbc05a3 Use a less verbose form for warnings in the view source window
and correctly match strings in order to coalesce translations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-30 21:27:41 +00:00
Jürgen Spitzmüller
83c2108f79 Backport revision 22332:
URL: http://www.lyx.org/trac/changeset/22332
Log:
Following rev 21967: final touch to odocfstream:
- odocfstream: properly fix plaintext output by getting rid of ctor with std::string argument as this can be mixed up with std::ofstream(std::string) ctor where the argument is a file. UTF8 is now the default encoding.
- PreviewLoader::Impl::startLoading(): catch another potential iconv exception.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22335 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-30 10:14:29 +00:00
Jürgen Spitzmüller
5eea754d54 * src/output_plaintext.cpp:
- fix plaintext output. Abdel, you still should have a look at this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22331 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 10:22:42 +00:00
Jürgen Spitzmüller
762a38c282 Fix multiple cell pasting on Windows and Mac (bug 4436):
* src/frontends/Clipboard.h:
* src/frontends/GuiClipboard.{cpp,h}:
	- new member hasInternal() which indicates whether the OS knows
	  the concept of clipboard ownership.

* src/insets/InsetTabular.cpp (doDispatch):
	- consider hasInternal() while pasting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22326 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 15:58:28 +00:00
Jürgen Spitzmüller
80410d0386 backport revision 20903:
URL: http://www.lyx.org/trac/changeset/20903
	Log:
	initial support for shift + right-mouse-click selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22323 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 10:50:01 +00:00
Jürgen Spitzmüller
2bfa4c6bd7 * src/support/unicode.cpp (convert):
- flush out data at the end of the conversion process (bug 4439).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22320 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 07:30:56 +00:00
Jürgen Spitzmüller
6799fbc1c6 * src/insets/InsetSpace.cpp:
- further improve appearance of protected space.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22306 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 10:27:32 +00:00
Jürgen Spitzmüller
3f3caf121a * src/Buffer.cpp:
- better translatable error message for uncodable chars, now also
	  displaying the code point value.
* src/Paragraph.cpp:
	- do not throw in View Source mode, but mark up uncodable chars (fix bug 4437).
* src/frontends/qt4/QViewSource.{cpp,h}:
	- highlight LyX warnings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22293 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 13:53:46 +00:00
Enrico Forestieri
644475c13b Try to improve maintainability by separately checking for the
gather environment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22289 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 02:42:39 +00:00
Enrico Forestieri
fccbc1c6e0 Center rows in the gather environment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22279 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 02:10:14 +00:00
Jürgen Spitzmüller
8ece22c237 * src/insets/InsetCharStyle.cpp:
- fix update/metrics (patch by Abdel).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22261 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 15:55:55 +00:00
Richard Heck
8a46f91320 Improve space size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22237 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 19:39:49 +00:00
Bo Peng
3181c5122f An dialog is displayed if some character can not be encoded properly. The offending character will be highlighted. (BUG3511)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22235 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 17:31:45 +00:00
Jürgen Spitzmüller
9975b55687 backport revision 21967, from Abdel:
* src/support/docstream.{cpp.h}: 
	- factorize out some code and introduce odocfstream::reset()
* src/output_plaintext.cpp:
	- pass encoding argument.
* src/Buffer.cpp (makeLaTeXFile()): 
	- try to catch one more iconv exception. Fix bug 4385 (http://bugzilla.lyx.org/show_bug.cgi?id=4385)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22234 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 17:18:36 +00:00
Jürgen Spitzmüller
677689945f Fix bug 2913: "mark-on" broken.
* src/Cursor.cpp (selHandle):
	- handle mark()
* src/Text.cpp (dissolveInset):
	- switch mark off before using selHandle, just in case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22229 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 11:30:54 +00:00
Jürgen Spitzmüller
b903a4abd4 * fix bug 4055, overdue patch from Stefan Schimanski:
"The idea of the beforeDispX/Y_ variables in the Cursor is to hold the position
of the cursor on screen before the lyxfunc is dispatched. But to get this the
metrics must be valid. It's updated in Cursor::dispatch before the dispatch
loop.
After inserting/deleting stuff (like when deleting the selected text before
inserting the alpha) the metrics are invalid. But the handler for the alpha
calls Cursor::dispatch after the deletion and hence the crash with your second
patch.

Here is a patch fixing that:

The beforeDispatchXY variable do not belong into the Cursor::dispatch because
Cursor::dispatch is often called "manually" by many handlers to some followup
action. So this logic must go somewhere else where it is sure that is not
updated after the metrics got invalidated."

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22194 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 18:15:14 +00:00
Jürgen Spitzmüller
cf0411cffa * src/ASpell.cpp:
- implement lyxrc.isp_accept_compound (bug 4408).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22191 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:53:07 +00:00
Jürgen Spitzmüller
d8e0a2ba6b Sanitize CJK support (fix bug 3561, 4349 and 4337):
* src/output_latex.{cpp, h}:
	- Many changes in order to allow CJK in a mulitlingual context.
* src/Paragraph.cpp:
	- Fix file encoding switch and language nesting with CJK.
* src/Buffer.cpp:
	- Move the opening and closing CJK and lanaguage tags to ouput_latex.cpp.
* src/Font.cpp:
	- switchEncoding call now takes runparams as argument.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22181 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 10:01:57 +00:00
Jürgen Spitzmüller
9b2c0e8032 * src/support/os_win32.cpp:
- backport rev. 22179: Fix network drive access (on Windows).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22180 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 08:18:14 +00:00
Jürgen Spitzmüller
04f6c55ebd src/frontends/qt4/GuiSelection.cpp:
- use QClipboard::selectionChanged() signal instead of 
	  QClipboard::dataChanged() (bug 4147).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22122 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 09:03:18 +00:00
Jürgen Spitzmüller
c84f22b5ca * src/frontends/controllers/ControlCitation.cpp:
- catch exception from boost::regex (bug 4421)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22100 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 11:50:05 +00:00
Jürgen Spitzmüller
911fd5d12e * src/tex2lyx/text.cpp:
- add space between bounding box arguments (bug 4418).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22087 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 17:17:31 +00:00
Pavel Sanda
bc141fe397 Add selection dbg output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22082 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 11:23:35 +00:00
Uwe Stöhr
fc39fb8caa preamble.cpp: as promised and announced:
- fix the buggy language find routine I had to revert two days ago (the current is crash free but leads to wrong imported multi-language files)
 - the fix only makes sense with the remaining language stuff (babel-only, the document language stuff was already in trunk but could be overwritten because of the missing babel-only support.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22073 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 00:39:29 +00:00
Jean-Marc Lasgouttes
05a11f6322 src/Buffer.cpp (validate): require "float" when global float placement option
contains 'H'.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22059 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 11:40:18 +00:00
Jean-Marc Lasgouttes
a92428c89c * rowpainter.cpp (paintOnlyInsets): do not paint Hfill insets (avoids a
crash).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22045 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 17:39:41 +00:00
Uwe Stöhr
003c6aa0f8 preamble.cpp revert crash prone code
a real fix is on the list and will hopefully be comitted tomorrow.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22043 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 16:45:04 +00:00
Jürgen Spitzmüller
2cd8c4e01d * src/tex2lyx/preamble.cpp:
* src/tex2lyx/text.cpp:
	- fix encoding and indendation.
	  (Uwe, please do this for trunk as well).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22038 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 14:48:13 +00:00
Uwe Stöhr
af4af91b68 preamble.cpp: code simplification to r21995 suggested by Angus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22037 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 14:39:12 +00:00
Uwe Stöhr
235e9f5ef7 tex2lyx/text.cpp: support for all quotation marks (bug2703).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22033 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 13:41:58 +00:00
Jürgen Spitzmüller
c04601e471 * src/frontends/qt4/ui/PrintUi.ui:
- fix bug 4345.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22007 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 10:24:21 +00:00
Jürgen Spitzmüller
3a946e8521 * src/client/lyxclient.man:
- fix character (patch by Sven Hoexter)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22001 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 11:53:23 +00:00
Uwe Stöhr
aa7b57c5d1 tex2lyx: support for font settings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21995 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 22:15:19 +00:00
Bo Peng
a9a5382ac5 Avoid loading local layout file multiple times
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21981 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:25:29 +00:00
Pavel Sanda
f248b6faff Source highlighting of comments (by Bernhard Reiter)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21973 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 20:59:11 +00:00
Pavel Sanda
39b522e7f8 Distinguish occurence of 'Note' string between layouts and inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21969 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 18:46:21 +00:00
Uwe Stöhr
0c43e79aff preamble.cpp: update the list of supported languages to the one of LyX 1.4.5.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21958 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 21:34:49 +00:00
Uwe Stöhr
143d1ca9d8 preamble.cpp: small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21952 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 20:51:33 +00:00
Uwe Stöhr
8b30acfcbe preamble.cpp, text.cpp:
- fix bug 27
 - support for multi-language files
 - code cleanups

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21951 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 20:48:23 +00:00
Jürgen Spitzmüller
64b7a7ef77 * src/support/docstring.h: fix encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21944 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 06:29:32 +00:00
Uwe Stöhr
2d215f88cb preamble.cpp: update fileformat
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21940 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 22:16:43 +00:00
Jürgen Spitzmüller
6bc65898bf * src/BufferParams.cpp (readToken):
- initialize pair<bool, lyx::textclass_type> pp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21938 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 16:41:53 +00:00
Jürgen Spitzmüller
2aee7c7b38 * src/support/docstring.h: include <cstring>
* src/frontends/qt4/TocModel.cpp: include <climits>
	- both needed on Mac OS 10.5.1/Xtools 3.0 (reported by Roger McMurtrie)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21936 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 07:08:58 +00:00
Pavel Sanda
d8d717fc36 Fix handling of Insert Plain Text dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21932 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 22:33:55 +00:00
Uwe Stöhr
411d45b165 tex2lyx/text.cpp: support for framed and shaded notes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21929 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 18:39:27 +00:00
Jürgen Spitzmüller
aedf0bbf1d * src/BufferParams.cpp (readToken):
- fix assertion introduced with rev. 21799 (bug 4395).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21924 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 17:57:49 +00:00
Uwe Stöhr
439dc6247e tex2lyx/text.cpp: support for \newline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21922 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 17:38:38 +00:00
Jürgen Spitzmüller
1ac6b38ea5 * src/insets/InsetTabular.cpp:
- sanitize cursor after insertion via LFUN_CLIPBOARD_PASTE 
	   or LFUN_FILE_INSERT_PLAINTEXT (bug 4368).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21921 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 15:21:52 +00:00
Jürgen Spitzmüller
6cf125e841 * src/frontends/qt4/GuiApplication.cpp:
- backport rev. 20419 and rev. 20531 from trunk (part of bug 4385):
	   http://www.lyx.org/trac/changeset/20419:
		GuiApplication::notify(): don't crash with abort() but exit gracefully 
		when an exception is caught. try to catch LyX specific exceptions.
	   http://www.lyx.org/trac/changeset/20531:
		Gives the user some information about the crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21914 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 11:28:29 +00:00
Bo Peng
5efe7027dc If there exists a local layout file, use the local copy instead of the system one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21799 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 15:37:41 +00:00
Jürgen Spitzmüller
6be395541c * src/output_latex.cpp:
- prevent wrong whitespace by trailing '%' on line endings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21743 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 15:00:47 +00:00
Jürgen Spitzmüller
85e5d42e5f * src/insets/InsetTabular.cpp (doDispatch):
- add missing recordUndo to LFUN_CLIPBOARD_PASTE /
	  LFUN_PRIMARY_SELECTION_PASTE (bug 4371)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21716 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 09:10:40 +00:00
Jürgen Spitzmüller
6453bd97d8 * src/ParagraphMetrics::computeRowSignature():
- Fix crc computing (wrt multibyte chars)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21679 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 15:07:00 +00:00
Jean-Marc Lasgouttes
1ae45c1a8c make sure that moc files are removed on "make clean"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21675 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-19 11:14:30 +00:00
Jürgen Spitzmüller
689e0ba8e1 * LaTeXFeatures.cpp (useLanguage):
- require the CJK package for CJK languages.
* BufferParams.cpp (writeEncodingPreamble):
	- load CJK package if required.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21651 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-17 12:35:50 +00:00
Jean-Marc Lasgouttes
3370670758 remove properly [[context]] strings from translated messages
src/Messages.cpp: general cleanup.
	(cleanTranslation): remove [[context]] strings from a docstring. Use
	plain string manupulation instead of regular expressions.
	(get): use cleanTranslation also on strings that got translated.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21642 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 14:37:22 +00:00
Jean-Marc Lasgouttes
d398204ac9 * src/Text2.cpp (deleteEmptyParagraphMechanism): do not reset the
appendix marker if the deleted paragraph was the last one (bug 4352)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21640 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 13:41:08 +00:00
Jürgen Spitzmüller
8f400f80b4 * src/insets/InsetOptArg.{cpp,h}:
- implement getStatus and disallow paragraph breaks (bug 4359).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21634 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 21:16:23 +00:00
Enrico Forestieri
282eb6e257 Fix bug that files with nonascii filenames are always reported
as externally modified.

	* src/Buffer.{cpp,h} (saveCheckSum): switch to FileName class.
	(Buffer::readFile): filenames are always stored as UTF-8 in the
	FileName class.

	* src/callback.cpp (writeAs): use FileName when calling saveCheckSum.

	* src/support/FileName.h: correct comment.


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