Commit Graph

1213 Commits

Author SHA1 Message Date
Abdelrazak Younes
58303ecfa9 Bug fix: FileName doesn't like double slash. I am going to fix this properly after this commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25826 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 07:17:54 +00:00
Abdelrazak Younes
8195925175 Replace home made temp file creation with safer (and cleaner) Qt' solution. Should fix http://bugzilla.lyx.org/show_bug.cgi?id=4693
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25822 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 05:17:31 +00:00
Uwe Stöhr
2f2886b094 Package.cpp: fix comment position and a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25818 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 23:54:37 +00:00
Uwe Stöhr
7305378c07 Package.cpp: use 16x environment variable (This should be done automatically for new major releases.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25810 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 20:37:12 +00:00
Abdelrazak Younes
734e22c4d3 tentatively fix http://bugzilla.lyx.org/show_bug.cgi?id=4693
The problem stems I guess from the use of from_local8bit().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25809 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 17:45:40 +00:00
Enrico Forestieri
89e68f49f6 The QFileInfo::refresh() bug affects all *nix targets since the minimum
version of Qt (4.2) that we support.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25808 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-22 17:35:13 +00:00
Richard Heck
e4c7a9a677 Fix bug 5075, I hope.
If Trolltech ever fixes this, then we can put an upper bound onto the #if.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25773 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-21 16:39:46 +00:00
Pavel Sanda
19b6a34be3 This comment is wrong and causes bug in revision control.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25739 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-20 21:27:20 +00:00
Richard Heck
6e688952c0 Revert unintentional commits.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25717 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 17:29:30 +00:00
Richard Heck
83f0903b4a Optimize GuiCitation a bit by not checking the cache so often.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25716 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 17:23:13 +00:00
Abdelrazak Younes
87ee3d8c43 Potentially fix http://bugzilla.lyx.org/show_bug.cgi?id=5057
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25713 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 15:57:07 +00:00
Abdelrazak Younes
b17489d91e Add some output for bug 4693
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25710 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-19 11:47:20 +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
Richard Heck
ab6ecc9fea Clarify comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:49:36 +00:00
Pavel Sanda
9c87bee68d Introduce Debug::SELECTION mainly for copy/paste primary-selection debugging.
Up to now it was hell to debug it, since the selection messages was under different
debug classes and the messages also get completely lost from mouse action events.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25624 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 23:47:54 +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
Jürgen Spitzmüller
612e52b093 Back to CJK sanity I: Fix bug 4698 and 4696.
* lib/encodings:
* src/support/docstream.h:
	- JIS is not a valid iconv name. Rename to ISO-2022-JP

* src/output_latex.cpp:
	- fix wrong encoding switch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25510 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 07:21:02 +00:00
Enrico Forestieri
cfe615d063 Ensure no trailing '/'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25453 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-05 09:09:50 +00:00
Abdelrazak Younes
788893bdea please JMarc
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 13:14:20 +00:00
Abdelrazak Younes
81f63f6670 Remove double slash in system temporary path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25442 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 12:28:55 +00:00
André Pönitz
0a24167e51 more robust. I get spurious crashes in this area... maybe c_str()
instead of data() would be in order, too


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25402 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-28 18:34:19 +00:00
Abdelrazak Younes
1d109d8c6f microptimisation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25389 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 16:18:27 +00:00
Abdelrazak Younes
1c83bf9420 GUI language via RC: some bug corrections.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25386 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 11:10:10 +00:00
Abdelrazak Younes
39393bf788 Introduce Debug::LOCALE for locale debugging.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25385 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-25 10:53:34 +00:00
Abdelrazak Younes
ceb43a2d1f revert 25377. That was not doing anything useful!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25381 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 13:29:15 +00:00
Abdelrazak Younes
928c1daa55 Messages::get(): Add two error messages just in case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25378 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 12:45:57 +00:00
Abdelrazak Younes
bcfedd4112 get_locale_dir(): add a fallback to po/ driectory in source tree in case LyX xas launched with '-sysdir' on a source tree lib/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25377 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 12:43:30 +00:00
André Pönitz
5dd5d98473 make _GLIBCXX_DEBUG_PEDASSERT happy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25295 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-17 16:33:19 +00:00
André Pönitz
6a56be232d save a few allocations in from_ascii.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25281 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-16 18:27:11 +00:00
Abdelrazak Younes
7f4247e718 createLyXTmpDir(): Don't hardcode /tmp, use package().system_temp_dir() insetad.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25212 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 14:33:31 +00:00
Abdelrazak Younes
430296f4af Hopefully fix http://bugzilla.lyx.org/show_bug.cgi?id=4918
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25207 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 13:05:24 +00:00
Abdelrazak Younes
af7b5b5e26 More sensible error messages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25202 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 09:57:10 +00:00
Abdelrazak Younes
9d00e2ec0a Move loadableImageFormats() to the frontend.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25163 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:29:58 +00:00
Abdelrazak Younes
20b45450f6 move GuiImage::loadableFormats() to support/imagetools.{h,cpp} and simplify this whole stuff. What a mess!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 11:34:49 +00:00
Richard Heck
96fbd90e92 Typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25132 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:39:19 +00:00
André Pönitz
2e968d0661 next try
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25000 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 17:57:57 +00:00
Abdelrazak Younes
8a7c802ab0 Introduce docstring_list
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24924 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-24 10:15:52 +00:00
Pavel Sanda
ab47d8188e make check in src/support: only absolute path can be reasonably tested now.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24803 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-16 14:54:35 +00:00
José Matox
1797f5218b endl is defined in ostream, iomanip is not enough (it matters for gcc 4.3)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24640 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 14:29:06 +00:00
Abdelrazak Younes
b90ec7288d remove unneeded includes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24629 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 06:53:44 +00:00
Pavel Sanda
f39515acac * Comment ( http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg139671.html ).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24616 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-05 15:22: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
Stefan Schimanski
48999ee671 * Some more clever elide mode for the LyX buffer tabs. In trunk
currently the whole path is (possibly with some unmotivated ... in
  the middle) used which is usually far too long.

  The algorithm implemented here will start with absolute paths. From
  left to right path segments are added to the display string if they
  help to make the display strings more unique. Otherwise nothing is
  added, or if some middle path segments are omitted otherwise, three
  dots ... are used.

  The result is that we get just the base filename without extension if
  they are unique in the tabbar.

  The patch is open for discussion. If there is demand we can create
  yet another preference option to get back the old behaviour.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24555 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 15:44:07 +00:00
Stefan Schimanski
2090c47bfa * in the very uncommon case the header is inserted into plain C code... The cleaner solution maybe would be to rename assert to lassert.h to avoid the clash with the system assert.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24554 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-29 14:56:27 +00:00
Richard Heck
38b462fd75 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24546 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-28 22:30:59 +00:00
Abdelrazak Younes
ec148ab77f Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4791
error out if the sysdir argument is erroneous.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24499 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-25 08:34:09 +00:00
Bo Peng
a095d0d785 Remove remaining embedding bits and minizip
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24487 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-24 14:33:16 +00:00
Peter Kümmel
9f9d9500c0 on include is enought
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-22 13:59:59 +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
Uwe Stöhr
fd56ba9b44 fix the makefile after r24396
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24402 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-20 22:53:43 +00:00