Commit Graph

1432 Commits

Author SHA1 Message Date
Peter Kümmel
4d5c24e80d Ticket 6266 Quoting Problem with QProcess: don't think we need any quotes (at least on Linux)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32579 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-18 12:20:22 +00:00
Peter Kümmel
62adbdd307 typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32502 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:32:38 +00:00
Peter Kümmel
68957712dd cleanup error messages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32501 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-13 09:30:28 +00:00
Vincent van Ravesteijn
472b09d735 Fix compilation without QProcess.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32491 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-12 14:04:21 +00:00
Uwe Stöhr
83b1c48846 replace links to bugzilla with links to trac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32469 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-11 00:59:10 +00:00
Peter Kümmel
6fa6bcf1a9 just discovered qtcreators feature 'replace tabs on save' ;)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32377 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:43:38 +00:00
Peter Kümmel
f69ec61315 no timeout when starting up a process, cleanup error message when error code in not 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32376 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-06 22:40:16 +00:00
Vincent van Ravesteijn
0acff0aa75 Add a FileName::refresh function and replace one call to lastModified which was just meant to refresh the file info.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32354 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-05 02:50:34 +00:00
Pavel Sanda
7814b9c857 Comment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32336 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 13:40:40 +00:00
Peter Kümmel
11020c50f1 add argument to suppress event processing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32334 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 13:28:30 +00:00
Peter Kümmel
eac9f84482 fix unused var warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32331 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:51:39 +00:00
Peter Kümmel
5dabc94547 fix init order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32330 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:48:38 +00:00
Peter Kümmel
0af92c85e9 Enable user input processing when an external process is busy.
If it breaks it anything just flip the bool to disable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32329 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:20:00 +00:00
Peter Kümmel
74e77476b5 also process user input, trigger more processEvents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32328 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:08:24 +00:00
Pavel Sanda
6598b9e2a4 gcc complains because of inicialization order
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32327 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 11:06:29 +00:00
Peter Kümmel
248712bc64 coding style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32326 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:39:48 +00:00
Peter Kümmel
1eb72710eb also delete process on errors, use RAII therefore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32325 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:35:32 +00:00
Peter Kümmel
314b79576e more cleanup without behavior changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32324 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 10:11:06 +00:00
Peter Kümmel
a0bdf5e666 Move some code from the process branch into trunk.
Don't incorporated any progess stuff.
Behavior when starting a process is UNTOUCHED, but could simply changed by setting progessEvents to true.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32323 a592a061-630c-0410-9148-cb99ea01b6c8
2009-12-04 09:51:13 +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
3f22ae8f1d revert previous fix for Snow Leopard crashes and apply new one
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32067 a592a061-630c-0410-9148-cb99ea01b6c8
2009-11-17 17:04:47 +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
Jean-Marc Lasgouttes
42546d3f2c Disable forking on Mac OS X. This should fix crashes on Snow Leopard.
It would be better to
* detect OS X version at run time (how??)
or
* use proper threads for autosave


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31696 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-23 16:50:40 +00:00
Jean-Marc Lasgouttes
d23a75a3dc Remove dead includes in FileName, since we do not use mkstemp anymore
Do not check for headers strings.h, io.h, process.h

Do not check for functions mkstemp, mktemp

Do not check for declarations of istreambug_iterator, iterator, mktemp

NOTE to cmake/scons maintainers: you should also get rid of the handling of those symbols.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-16 09:32:50 +00:00
Jean-Marc Lasgouttes
06a229faf8 remove traces of libtool and of obsolete autoconf macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31544 a592a061-630c-0410-9148-cb99ea01b6c8
2009-10-06 15:13:20 +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
Richard Heck
fca8ba713f Fix doxy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31462 a592a061-630c-0410-9148-cb99ea01b6c8
2009-09-24 11:58:09 +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
Pavel Sanda
4304901faf Add find debug level. Patch from Tommaso.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31092 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-17 14:39:00 +00:00
Enrico Forestieri
0695afbc55 Don't rely on the signal delivered by raise(), as this may cause a bogus
assertion when Qt is compiled in debug mode, and simply directly perform
an emergency cleanup when a shutdown event occurs on Windows.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31029 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 13:19:02 +00:00
Enrico Forestieri
50fa5f24d3 Move OS specific code to proper place. Also make sure that no other
handler functions are called after processing shutdown events.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31027 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-14 00:42:45 +00:00
Pavel Sanda
856e95cf44 Hopefully this works on other archs too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30960 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 20:09:08 +00:00
Abdelrazak Younes
0821902b99 gcc compilation fix and introduce new splice method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30959 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 20:06:54 +00:00
Abdelrazak Younes
1a27aaca77 RandomAccessList: new swap() method for swapping two elements without any copy.
LFUN_PARAGRAPH_MOVE_UP and LFUN_PARAGRAPH_MOVE_DOWN: use that.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30958 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-09 19:51:12 +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
Jean-Marc Lasgouttes
4dde959e6c fix tests
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30556 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-14 10:37:17 +00:00
Jean-Marc Lasgouttes
fa1ee437e5 * gettext.cpp (translateIfPossible): @Use the same tests as i
Paragraph::translateIfPossible


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30506 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-12 14:50:51 +00:00
Richard Heck
969a919a0d More comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30415 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-08 19:55:03 +00:00
Richard Heck
3a41879cb4 Add and update some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30405 a592a061-630c-0410-9148-cb99ea01b6c8
2009-07-07 15:29:33 +00:00
Pavel Sanda
0bde349a04 Capitalize
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30293 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 22:02:47 +00:00
Pavel Sanda
336164a9ce typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-28 21:53:31 +00:00
Enrico Forestieri
170d7a2ab1 The QFileInfo::refresh() bug is fixed in Qt 4.5.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30036 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-09 20:39:41 +00:00
Georg Baum
e0acb978ff fix bug 5798: Translate float names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30035 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-09 18:16:43 +00:00
Enrico Forestieri
5fb0ed491c Account for the weird case where p2 is longer than p1, such as p1 == "path"
and p2 == "Path/". This would be really weird, but one never knows...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29855 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-26 18:27:29 +00:00
Enrico Forestieri
70351330a0 Another tweak to account for when both paths end with '/'.
The problem here is making sure that path_prefix_is() behaves exactly
as would a case insensitive prefixIs(). Anyway, this is still better
than trying to fix the semantics of common_path().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29846 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 18:37:03 +00:00
Enrico Forestieri
2fb21c28b5 Simpler things are almost always better.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29843 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 17:30:02 +00:00
Enrico Forestieri
eb9151060d Account for the corner case p2.length() == 1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29838 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-25 00:23:44 +00:00
Enrico Forestieri
e2c763d9f6 Avoid a string copy and a small tweak.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29837 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-24 21:09:41 +00:00
Enrico Forestieri
7ae4f6ac6f Avoid calling prefixIs() if not needed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29824 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-23 13:16:13 +00:00
Enrico Forestieri
6d1d27eb90 Take into account file system case sensitivity when checking whether
a path starts with a given prefix.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29793 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-22 22:34:43 +00:00
Uwe Stöhr
8f3acbb484 remove unused includes of convert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29772 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-21 21:02:14 +00:00
Enrico Forestieri
9b9a3cf0c0 Another compile fix for msvc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29741 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 20:28:50 +00:00
Jürgen Spitzmüller
233ff911de * potential compile fix for msvc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29739 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 19:59:48 +00:00
Jürgen Spitzmüller
d5a41946a6 * calculate the size of the iconv output buffer (bug 5951).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29735 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-19 15:27:54 +00:00
Enrico Forestieri
ae3f95b8f0 Fix scons and revert the now not needed r29669.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29692 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-16 15:55:08 +00:00
Enrico Forestieri
a5a05e7dfc Really flush output buffers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29675 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-15 09:20:59 +00:00
Enrico Forestieri
8fe984090f Allow immediate output of spawned processes for all platforms.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29668 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 15:13:58 +00:00
Enrico Forestieri
2301c5af8f Fix problem with the nul device on Windows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29663 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-14 00:12:07 +00:00
Enrico Forestieri
70696182dd Take into account output redirection when spawning a program.
Now things should behave as before the QProcess era (I hope).
The parser only accounts for output redirection, no fancy
things such as piping are possible, yet.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29656 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 18:29:58 +00:00
Enrico Forestieri
0ed38ed1f4 Allow to separately redirect stdout and stderr.
Now "lyx > stdout.log" should produce the same output as before
the switch to QProcess.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29655 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 12:55:01 +00:00
Enrico Forestieri
3cdf2acb95 Clarify comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29654 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 09:56:47 +00:00
Enrico Forestieri
97303baac2 Avoid #ifdef's and use OS specific code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29652 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-13 09:48:11 +00:00
Enrico Forestieri
50ddeeb77e MSVC does not define WIN32 but _WIN32.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29650 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 22:04:26 +00:00
Vincent van Ravesteijn
501349b4ae Compile fix for r29647.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29648 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 20:16:43 +00:00
Vincent van Ravesteijn
44afac0e4a Do the same as r29646, now for FileName::set.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29647 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 20:15:20 +00:00
Vincent van Ravesteijn
2f8a71056b Fix the assert on Windows when starting LyX by double-clicking on a file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29646 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 20:12:04 +00:00
Enrico Forestieri
cd9b169d76 Restore line buffered output at least on posix systems. I failed to do
that on Windows, as using CONOUT$ in place of /dev/stdout didn't work.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29642 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-12 18:21:27 +00:00
Enrico Forestieri
c73eb3497a Fix QProcess code on posix systems and reenable it by default, in order
to catch early possible problems.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29634 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 22:03:52 +00:00
Abdelrazak Younes
58cac2e4db Allow more time for latex... process launching can be slow on Windows...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29630 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 11:58:28 +00:00
Abdelrazak Younes
bff46f987c revert unwanted change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29629 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 11:55:31 +00:00
Abdelrazak Younes
54aefd360c Read standard output and error upon completion. And properly close the channels before killing the process.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29628 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 11:51:52 +00:00
Abdelrazak Younes
416a6cd1c0 Reorganize the code a bit and Disable QProcess evaluation for now as nothing works...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29626 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 09:01:44 +00:00
Abdelrazak Younes
dc267d6dd9 Add some debugging code to QProcess. Reconfigure (python) starts and finishes here (ubuntu9.04) but doesn't proceed and returns this:
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(66): Qprocess python -tt '/home/younes/devel/lyx/trunk/lib/configure.py' --with-version-suffix=2.0 finished!
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(67): exitCode 2
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(68): error 5
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(69): state 0
/home/younes/devel/lyx/trunk/src/support/Systemcall.cpp(70): status 0




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29625 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-11 08:34:08 +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
Vincent van Ravesteijn
2b2e0e8a12 Patch from Peter.
Commit the patch posted at beginning of this thread and see how big the problems are, especially Pavel's svn code.

After solving the problems, I planned to integrate my previous GUI patches.

see:
http://marc.info/?l=lyx-devel&m=124136994215110&w=2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29614 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 19:39:56 +00:00
Enrico Forestieri
aa1a673077 Find thesauri files even if \thesaurusdir_path is specified without
a trailing slash.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29603 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-10 02:25:25 +00:00
Vincent van Ravesteijn
b5fc687888 Fix bug #4177: Lyx fails to open files with a $ character in their name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29587 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-09 17:06:54 +00:00
Abdelrazak Younes
e9be0fae66 Integrate mythes-1.1 into our source and remove support for aiksaurus. I have tested only the Cmake build system. Please test autotools and scons.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29577 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-08 21:38:50 +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
Enrico Forestieri
6e7031dc5a File names must be compared taking into account filesystem case sensitivity,
otherwise the same file could be opened in different buffers by simply
changing the case of a character in the name.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29538 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-04 22:16:37 +00:00
Vincent van Ravesteijn
3045d9b4ff Fix the construction of a filepath after r29498. The '/' between the path and suffix was omitted when the path is a directory.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29503 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 21:29:54 +00:00
Enrico Forestieri
ccc77c73da Speed up FileName operator== (Georg's solution).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29498 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 17:12:31 +00:00
Enrico Forestieri
e0941bdb4b Revert r29444 (to be soon replaced by Georg's solution).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29497 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-02 16:39:14 +00:00
Uwe Stöhr
88015a178a os_win32.cpp: compile fix for r29476
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29485 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 19:08:14 +00:00
Enrico Forestieri
b0936fac4c When performing a reverse DVI search and the tmpdir is a symlink, the
DVI viewer passes back the resolved path, such that the search fails,
as internally LyX uses the unresolved path.
This patch fixes this bug by using the new method FileName::realPath
which resolves a path by getting rid of any '.', '..', or symlink
path components.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29476 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-01 15:18:11 +00:00
Enrico Forestieri
4053db1858 Speed up FileName operator==, such that working with child documents on
Windows and Solaris is again possible.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29444 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-29 22:42:26 +00:00
Jean-Marc Lasgouttes
fcc4a0f794 Sometimes, iconv on windows returns -1, but sets errno to 0. I do not
know what this means, but tex2lyx did not like it at all.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29392 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-24 12:28:00 +00:00
Jean-Marc Lasgouttes
f3038bed06 Remove bogus ifdocstream constructor argument, which _may_ be the cause of
tex2lyx woes under windows. It may also help chktex under windows
(does it works currently?)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29361 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-20 15:40:01 +00:00
Richard Heck
876dc0d54e Fix up a few little things after r29065. If we're calculating the autosave
filename in a different way, we need to make sure we always do it the same
way. Makes more sense to do this in Buffer anyway.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29073 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 03:13:46 +00:00
Jürgen Spitzmüller
5be56b517a Fix bug 5827 (validate date-insert argument):
* src/support/os*.{cpp,h}:
	- new function is_valid_strftime that validates strftime arguments, 
	  OS dependant (win32 differs here)

* src/Text3.cpp:
	- use is_valid_strftime in LFUN_DATE_INSERT status check.

* src/frontends/qt4/GuiPrefs.{cpp, h}:
	- new GUI validator for strftime.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28932 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-27 11:22:54 +00:00
Vincent van Ravesteijn
1a94a63db8 Adjust the comment about QFileInfo::operator==().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28859 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-18 22:49:11 +00:00
Enrico Forestieri
12d1cb2076 Fixes for gcc4 on cygwin.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28842 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-17 22:35:55 +00:00
Vincent van Ravesteijn
83dc36d66c Fix an infinite loop with Qt4.5 when creating two unnamed files.
In Qt4.5, QFileInfo::operator==() compares the file locations instead of the files themselves. Therefore, an extra check is needed.

see Qt4.5 documentation:
http://doc.trolltech.com/4.5/qfileinfo.html

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28748 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 23:30:08 +00:00
Jean-Marc Lasgouttes
9c0b6cf700 really reset the LANGUAGE variable to its old value, instead of some other guessed value
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28737 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 13:49:53 +00:00
Enrico Forestieri
bd8788f377 Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
Japanese char between math insets becomes wrong in TeX output


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28732 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-09 06:47:26 +00:00