Commit Graph

62 Commits

Author SHA1 Message Date
Richard Heck
1b1f8dd235 Audit all the LASSERT calls, and try to do something sensible at
each failure.

There are several places I was not sure what to do. These are marked
by comments beginning "LASSERT:" so they can be found easily. At the
moment, they are at:

Author.cpp:105: // LASSERT: What should we do here?
Author.cpp:121: // LASSERT: What should we do here?
Buffer.cpp:4525:        // LASSERT: Is it safe to continue here, or should we just return?
Cursor.cpp:345:         // LASSERT: Is it safe to continue here, or should we return?
Cursor.cpp:403:         // LASSERT: Is it safe to continue here, or should we return?
Cursor.cpp:1143:                // LASSERT: There have been several bugs around this code, that seem
CursorSlice.cpp:83:     // LASSERT: This should only ever be called from an InsetMath.
CursorSlice.cpp:92:     // LASSERT: This should only ever be called from an InsetMath.
LayoutFile.cpp:303:                     // LASSERT: Why would this fail?
Text.cpp:995:           // LASSERT: Is it safe to continue here?
2013-04-25 17:27:10 -04:00
Georg Baum
f4eae12d60 Improve LaTeX format detection
libmime is a bit lacking here.
2013-04-12 22:31:48 +02:00
Georg Baum
6c54a081fa Make ASCII test more explicit.
I will need isASCII() in tex2lyx as well.
2012-12-30 20:52:49 +01:00
Juergen Spitzmueller
182d13ee6a Do not separate the shortcut from the label string 2012-11-23 18:26:02 +01:00
Pavel Sanda
2257040be4 More headers from lstrings. 2012-11-12 03:02:28 +01:00
Pavel Sanda
7cda6b9d57 Header no more needed. 2012-11-12 02:45:29 +01:00
Jean-Marc Lasgouttes
16fd47ad8f Fix bug #7741: incorrect locale when starting R from LyX?
The goal here is to get rid of the old code that modified variables
LANGUAGE and LC_ALL, therefore creating the problems mentionned
in the ticket.

In the new system, there is no explicit "GUI" message handler, that
needs to be reset at each language change. Instead, getGuiMessages
calls getMessages with the correct parameter. This allows to simplify
greatly the code and to remove a lot of old cruft.
2012-07-15 22:22:10 +02:00
Juergen Spitzmueller
0062538a54 Add some more characters that need to be escaped in labels etc. 2012-06-30 01:24:40 +02:00
Jürgen Spitzmüller
44ed83dd86 Work around qt bug that prevents the glyph LATIN CAPITAL LETTER SHARP S from being pasted (bug #8057).
Candidate for branch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40829 a592a061-630c-0410-9148-cb99ea01b6c8
2012-03-02 09:06:09 +00:00
Peter Kümmel
8e91dbd4f0 remove debug code, we know the translation failed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38323 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-09 22:13:58 +00:00
Peter Kümmel
c3352f6a6b temporary code to find bug #7371
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38320 a592a061-630c-0410-9148-cb99ea01b6c8
2011-04-09 09:42:52 +00:00
Richard Heck
4aead1ffde Improve the wrapParas routine. Previously, we had "..." as the last
line, if we were too big. Now, we put "..." at the end of the last line.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36988 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-22 01:28:32 +00:00
Enrico Forestieri
4457cd44e8 Compile fix for those platforms using the locale facets implemented
in docstring.cpp (this was an oversight in r36748).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36767 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 22:53:07 +00:00
Pavel Sanda
c420c81ec2 Replay r36748
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 00:13:19 +00:00
Pavel Sanda
c68d754a74 Revert commits from 36745
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36749 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-07 00:05:40 +00:00
Stephan Witt
430d03811e #7026 substitute isDigit() by isDigitASCII() and ditch isDigit(); introduce isNumber() and use it in spell checker; change isdigit() to isDigitASCII() otherwise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36748 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-06 22:35:15 +00:00
Georg Baum
53a72a4526 fix bug #6584
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36687 a592a061-630c-0410-9148-cb99ea01b6c8
2010-12-03 17:48:06 +00:00
Georg Baum
dea050cb93 fix bug 3008: Add subscript/superscript inset for text
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36424 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-21 17:00:12 +00:00
Richard Heck
0940cd77d4 Better way of doing these checks, suggested by Enrico.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36356 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:17:53 +00:00
Richard Heck
67a4b590aa We don't generally use "static" this way in the LyX code any more. (Just
a bit of cleanup while studying other things....)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36354 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 22:00:42 +00:00
Richard Heck
e54afe6367 Remove redundant code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36353 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-17 21:41:23 +00:00
Pavel Sanda
0978e91ecf This stuff is general enough for lstrings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35646 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 11:01:15 +00:00
Pavel Sanda
e45427de38 Fix bug #6649 - fix texrow structure generated by InsetIndex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34181 a592a061-630c-0410-9148-cb99ea01b6c8
2010-04-16 23:47:39 +00:00
Abdelrazak Younes
4c2a354ebd hasDigit(): Avoid a string copy as this is in a critical path for inline spellchecking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33403 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-10 06:51:49 +00:00
Jürgen Spitzmüller
5f4c5c5da9 * support/lstring.{cpp,h}:
- new function hasDigit
* src/Paragraph.cpp (spellcheck):
	- ignore words with digits, as in 1.6 (bug 6493).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33395 a592a061-630c-0410-9148-cb99ea01b6c8
2010-02-09 17:35:35 +00:00
Jean-Marc Lasgouttes
d81c4751df add a new bformat version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32282 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-02 09:38:14 +00:00
Jean-Marc Lasgouttes
5ac479af5e constify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31968 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-13 13:47:25 +00:00
Abdelrazak Younes
da47dc051e Fix gcc4.4 warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31485 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-30 13:50:07 +00:00
Enrico Forestieri
3f5c1bb73a Correctly reinitialize ind when successive lines are to be indented.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31421 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-20 22:58:55 +00:00
Enrico Forestieri
a55a0b8f2d Fix bug #6215 (spotted by Vincent).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31408 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-19 16:15:09 +00:00
Vincent van Ravesteijn
504bc83a64 Fix bug #4473: Incorrect LaTeX output for inter-word spaces.
This is a hack necessary because \\textcolor is a bit buggy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30773 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-25 10:44:36 +00:00
Abdelrazak Younes
fae3c1669f gcc warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29624 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 07:52:39 +00:00
Richard Heck
47595faf93 Forgot these bits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29565 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 20:44:07 +00:00
Richard Heck
675925f659 This patch introduces wrapped tooltips for some more insets.
New method wrapParas() in support, deployed in various
insets.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 18:04:05 +00:00
Richard Heck
fedf5aebe3 Thinko.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29562 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 13:56:21 +00:00
Richard Heck
cc23968475 Minor fixups.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29561 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 13:53:28 +00:00
Richard Heck
cca51a04c2 Move the word-wrapping code to support, so that it can be re-used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29559 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 12:23:12 +00:00
Richard Heck
9d48ad4f74 Improvements to the parser that extracts the "family name". We now get
the last name, with the "von" part, even when commas are not used in the
BibTeX file.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27989 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-04 23:35:08 +00:00
Pavel Sanda
96578ef324 Support gcc 4.4. Patch from Martin Michlmayr.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg146271.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27609 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-17 12:49:47 +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
Jean-Marc Lasgouttes
15b49036ed X dependency cleanup (2/3)
(inernal|external)LineEnding are only used by the clipboard code. Therefore
move them to the Qt helpers, where the current environment is known.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26824 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-09 07:21:48 +00:00
Richard Heck
741bd1221a Fix for bug 5053. There are still some serious problems here, though, as (a) "unknown" cannot be translated and (b) the way the code was re-written, it will fail if unknown and translated layout names are used. This is because it completely subverts the use of a multicolumn model. I'll try to fix that, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25670 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 15:29:00 +00:00
Jürgen Spitzmüller
1d0bac1144 Fix bug 5040:
* src/support/lstrings.{cpp,h}:
	- new optional param "bool keepemtpy" in getVectorFromString. 
	  By default, empty content between two delimiters was/is not added to the vector.
	  This can be changed with this bool.

* src/insets/InsetIndex.cpp:
	- care for the case when plaintext returns nothing (e.g when ERT is used)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 16:09:59 +00:00
Jean-Marc Lasgouttes
9b4a26a252 rename assert.h to lassert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 08:26:40 +00:00
Peter Kümmel
84d52469ec * lstring.cpp: parts already implemented in qstring_helpers.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-22 13:59:26 +00:00
André Pönitz
1e4f4fcd91 move the string conversion functions out-of-line to minimize #includes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24396 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 20:32:00 +00:00
Richard Heck
5cadecf3f6 Remove embedding stuff from InsetBibtex.
There might be some header cleanup that can be done here, or some uses of forward declarations and such. This was pretty quick and dirty, just to get it done.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24357 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-19 15:52:35 +00:00
André Pönitz
7f461f4392 infrastructure for 'graceful asserts'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24216 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-10 21:49:34 +00:00
Jean-Marc Lasgouttes
3f1285aa68 abdel likes short code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 17:04:59 +00:00
Jean-Marc Lasgouttes
9a7999746d Remove unused macros USE_INCLUDED_STRING and STD_STRING_IS_GOOD
Remove a few unused headers


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22735 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 15:36:53 +00:00