Commit Graph

1245 Commits

Author SHA1 Message Date
Abdelrazak Younes
b07d4d3e60 * FileName::onlyFileName(): use QFileInfo method.
* FileName::onlyPath(): use QFileInfo method.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22192 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 17:09:30 +00:00
Abdelrazak Younes
18389fb6ee * FileName::changePermission(): upon Enrico's advice, don't check file writability, relies on ::chmod() returned error.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22190 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:52:24 +00:00
Abdelrazak Younes
9439b6e6e0 * get rid of support::absolutePath()
* remove FileName.h inclusion from filetools.h


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22188 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:04:46 +00:00
Abdelrazak Younes
96ee270933 transfer os::is_absolute_path() to FileName::isAbsolute().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22187 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 15:15:37 +00:00
Jürgen Spitzmüller
e0b5511d74 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22183 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 10:51:39 +00:00
Abdelrazak Younes
2f49534d3d Fix network drive access.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22179 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 07:50:35 +00:00
Abdelrazak Younes
e7bb71ff4e header cleanup.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22178 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 22:09:28 +00:00
Abdelrazak Younes
17b57a48a4 FileName::checksum(): Don't warn if file exists as this happens for all graphics at first document compilation.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22168 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:53:52 +00:00
Abdelrazak Younes
efbd1d30cb Sanitize the way we use abort() and exit(). With this commit, we should never crash in release mode, even when assertions are enabled. In debug mode, we crash with abort in order to get a useful backtrace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22165 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 11:34:29 +00:00
Abdelrazak Younes
c66e214724 Transfer getcwd() implementation to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22164 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 10:18:00 +00:00
Abdelrazak Younes
86506a80eb Simplify FileName::tempName().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22163 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 09:52:36 +00:00
Abdelrazak Younes
4020357dd2 Transfer tempName() implementation to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22161 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-16 07:52:38 +00:00
Abdelrazak Younes
1948c5812c Change semantics of FileName::copyTo(): we now overwrite the target file unconditionally.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22159 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-15 08:25:53 +00:00
Enrico Forestieri
01a0aabb81 Try to remove the destination without first checking for its existence
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22157 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 23:47:59 +00:00
Abdelrazak Younes
48d0007f71 Remove unused code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22156 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:47:39 +00:00
Abdelrazak Younes
0caa103581 * get rid of lyxlib.h:mkdir() and makedir()
* Introduce FileName::createPath()
* Fix file copying in EmbeddedFile.cpp.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22155 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:43:39 +00:00
Abdelrazak Younes
2ce8ad5e05 Inverse logic wrongly set in rev 22151.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22153 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 22:33:15 +00:00
Abdelrazak Younes
d81b5c2994 Use FileName::createDirectory() instead of support::mkdir().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22151 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 21:13:38 +00:00
Abdelrazak Younes
d1574fec83 The rename() function removed in rev had in fact move() functionality. So we replace all uses of renameTo() with the new FileName::moveTo() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22149 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-14 18:16:25 +00:00
Abdelrazak Younes
6d20abb1b1 get rid of lyxlib.h:copy() and rename().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22129 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 12:03:55 +00:00
Abdelrazak Younes
ec49fff94d Fix comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 11:40:41 +00:00
Abdelrazak Younes
4164f547b2 Compil fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22127 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 11:25:45 +00:00
Abdelrazak Younes
2e34b2876a get rid of lyxlib.h:chmod.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22126 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 11:24:10 +00:00
Abdelrazak Younes
9302bd119f compile fix following undo/redo mixup. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22124 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 10:43:29 +00:00
Abdelrazak Younes
4e364577e3 Introduce FileName::changePermission() and fix ConverterCache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22123 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 10:38:31 +00:00
Abdelrazak Younes
663b5f4417 Fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22118 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 08:02:46 +00:00
Abdelrazak Younes
15fe6b3c53 add FileName::renameTo() method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22117 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 07:36:47 +00:00
André Pönitz
f407442b39 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22114 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 22:43:37 +00:00
André Pönitz
c6f8a4ade9 LYX_CXX_GLOBAL_CSTD is not really useful anymore
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22113 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 21:49:13 +00:00
Enrico Forestieri
c5ee5edd41 Another compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22111 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 21:09:51 +00:00
Abdelrazak Younes
7c392af6ea getting rid of superfluous lyx::support:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22106 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:57:42 +00:00
Enrico Forestieri
430a2c1adb Restore scons and autotools support for moc files in src/support
taken out in r22101.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22105 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:37:40 +00:00
Abdelrazak Younes
9abb7db468 getting rid of superfluous std:: statements.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22104 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 19:28:07 +00:00
Abdelrazak Younes
b89cc942eb 'using namespace lyx::support' instead of 'using support::xxx'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22103 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:57:56 +00:00
Enrico Forestieri
d73f28eec1 Revert qprocess code. Revisions reverted: 22026, 22030, 22044, 22048,
22077, 22078, 22079, 22080, 22081.

Sorry Peter, but this was breaking too many things, see discussions
on lyx-devel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22101 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 18:25:53 +00:00
Abdelrazak Younes
9383f4c3c6 'using namespace std' instead of 'using std::xxx'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22097 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 10:16:00 +00:00
André Pönitz
d3c551915f fix LYXERR0 implementation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22088 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 20:28:00 +00:00
Jürgen Spitzmüller
02ee7dfb74 * src/support/SystemcallPrivate.cpp:
- QProcess::start and ProgressInterface::appendMessage take a Qstring as an argument.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22081 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 10:48:48 +00:00
Jürgen Spitzmüller
0c8e63f887 * src/support/SystemcallPrivate{cpp,h}:
- provide some more information about the processes result.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22080 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 10:34:53 +00:00
Peter Kümmel
c8c44cc3a1 also check for moc files in src/support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22044 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 17:31:25 +00:00
Jürgen Spitzmüller
35e4198e47 fix typos.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22030 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 11:40:59 +00:00
Peter Kümmel
3af56311a7 add progress view of system calls
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22026 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 20:46:03 +00:00
Abdelrazak Younes
cfc37ecf8e * fix enabling/disabling of LyXErr.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22017 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 15:02:34 +00:00
Stefan Schimanski
51264f1372 * putenv wants a non-const char *
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22006 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 00:17:36 +00:00
Enrico Forestieri
5ae6e67a8b Let's actually warn when a directory could not be removed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21991 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 16:54:02 +00:00
Abdelrazak Younes
974f44ea79 * docstream: factorize out some code and introduce odocfstream::reset()
* Buffer::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/trunk@21967 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 13:56:53 +00:00
Abdelrazak Younes
e017570aa8 Introducing FileNameList, cleanup some headers and put back dirList() into FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21965 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 10:32:49 +00:00
Bo Peng
aaa239be61 include intl/libintl.h that is relative to $TOP_SRCDIR/src
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21943 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 03:55:02 +00:00
Peter Kümmel
dbda8edf6d simplify C-sytle code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21935 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 06:40:51 +00:00
Abdelrazak Younes
b1db731a98 * FileName::fileContents(): new argument to define the file encoding.
* BufferView:
- insertPlaintextString(): now accept a FileName.
- contentsOfPlaintextFile(): ditto and use FileName::fileContents().
 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21915 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 11:55:25 +00:00
Peter Kümmel
2507fd4345 reduce <vector> include from 73 to 3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21909 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 10:43:11 +00:00
Peter Kümmel
aa8b513c39 compile also without pch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21907 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 09:59:26 +00:00
Peter Kümmel
4662dd8be3 pch fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21906 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 09:58:23 +00:00
Peter Kümmel
cea3e4736f fix merge build
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21904 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 09:24:26 +00:00
Peter Kümmel
aef7e129e7 move funtion with std::vector to filetools
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21903 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 09:19:43 +00:00
Abdelrazak Younes
6d24433cc5 cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21902 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 08:09:16 +00:00
Abdelrazak Younes
24061d79bc compil Fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21901 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 07:52:28 +00:00
Peter Kümmel
1afafb9d5b fix memory leak
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21898 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 10:52:52 +00:00
Peter Kümmel
b5158fbe51 cmake merge: declare before instantiate
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21897 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 10:24:48 +00:00
Peter Kümmel
4ff95a154d fix memory leak, cleanup FileName interface
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21896 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 10:23:16 +00:00
Abdelrazak Younes
93fb9ee6af Comment out unneeded debug output and add some in checksum().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21894 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 08:48:17 +00:00
Enrico Forestieri
022313a644 Don't warn when the file being deleted does not really exist.
This happens when opening the External Material dialog, where
a temporary filename is generated but the corresponding file
is not yet created.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21893 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 00:30:12 +00:00
André Pönitz
49d3f19860 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21892 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 00:12:03 +00:00
Enrico Forestieri
2216443596 compile fix for mingw
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21891 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 00:10:04 +00:00
André Pönitz
63d19999eb move chdir to FileName
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21890 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-01 00:06:50 +00:00
André Pönitz
23a672cf26 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21885 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 22:02:33 +00:00
André Pönitz
5c4a20fe04 I'll find a solution for the 'dirList problem', Abdel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21884 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 20:57:53 +00:00
André Pönitz
5cae280282 allow boost/current_function to be used again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21882 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 18:48:35 +00:00
Abdelrazak Younes
f1f7718282 Add FIXMEs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21876 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 09:49:35 +00:00
Abdelrazak Younes
377ae30bd8 lyxlib.h:sum -> FileName::checksum()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21874 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-30 09:23:44 +00:00
André Pönitz
2506e0d643 assimilate BOOST_CURRENT_FUNCTION
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21867 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 21:10:35 +00:00
André Pönitz
b949317f64 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21865 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 20:02:50 +00:00
André Pönitz
0ef0cbbf1a cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21864 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 19:56:25 +00:00
André Pönitz
1aafa6ff77 merge the Forked* machinery into a single pair of files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21863 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 19:19:39 +00:00
Abdelrazak Younes
06d65218c0 - Get rid of unneeded time_type typedef.
- MSVC compile fix.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21857 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 08:55:43 +00:00
André Pönitz
9bb1652ae4 re-enable "safety hack"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21854 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:32:39 +00:00
André Pönitz
9160d824d8 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21853 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:24:55 +00:00
André Pönitz
efbf9fec5e some de-boostification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21852 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:11:08 +00:00
André Pönitz
9d0ea8aeff Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
Now support/* should have no dependencies on src/* anymore.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21851 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-29 07:04:28 +00:00
Enrico Forestieri
acc3bb88b8 needless declaration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21850 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 23:55:55 +00:00
André Pönitz
150cf11651 hand-crafted LyXErr
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21849 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 22:12:03 +00:00
Abdelrazak Younes
89435b2857 * makeLatexName(): port to FileName.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21848 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 18:07:09 +00:00
Abdelrazak Younes
c886bc68c2 * FileName:
- introduce changeExtension(): the goal is to replace progressively the one in filetools.cpp
- get rid of internal_path() checking for Win32 as the path is always normalized with slashes with QFileInfo.

* BufferParams: get rid of filepath member. This was used only once and was fixing a path in BufferParam was wrong anyway.

* Buffer::filePath(): always regenerate instead of caching it in BufferParams.

 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21847 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 15:25:07 +00:00
Abdelrazak Younes
25a4523860 Remove the full assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21846 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 12:28:33 +00:00
Abdelrazak Younes
d2b0c5e87d FileName(): Remove isAbsolute() assertion. This is not needed because FileName now caches a QFileInfo instead if the passed path.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21845 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 12:24:10 +00:00
Abdelrazak Younes
f07105d0e5 * FileName:
- removeFile(): replace unlink
- copyTo(): add 'overwrite' parameter.

* getcwd.cpp: simplify.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21843 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-28 09:01:49 +00:00
André Pönitz
0e40512c86 use LYXERR macro to avoid unneeded argument evaluations...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21835 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 21:43:46 +00:00
André Pönitz
0c9dedfe01 use macro instead of unconditional evaluation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21834 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 21:09:14 +00:00
Peter Kümmel
8fc0bf6030 use the same mechanism to trigger moc as in frontends/qt4
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21826 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 20:01:23 +00:00
Peter Kümmel
ee8483fdca fix line endings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21823 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 19:54:01 +00:00
Abdelrazak Younes
c23db901ec Getting rid of normalizePath() which is unneeded for FileName purpose (the path is always normalized internally). This commit frees up src/ from boost::filesystem. Some remaining references stays in src/client and src/tex2lyx.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21817 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 10:01:34 +00:00
Abdelrazak Younes
3df451b6d0 Introducing FileName::dirList() to replace the one in filetools.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21816 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-27 09:43:30 +00:00
Bernhard Roider
c875c119b4 PCH compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21802 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 19:56:25 +00:00
Abdelrazak Younes
d918eac0d1 FileName::destroyDirectory(): Continue deleting even if if a delete operation failed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21795 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 10:58:00 +00:00
Abdelrazak Younes
d3f0a07af7 remove debug code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21794 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 10:32:00 +00:00
Abdelrazak Younes
c42ec8cf50 * support/FileName:
- simplify copyTo(), the second argument was never used.
- move string manipulations to FileName::Private
- replace platform specific code with Qt equivalent.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21793 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 10:29:04 +00:00
Abdelrazak Younes
09ff5016cd Inline qstring_helpers methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21792 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 10:26:03 +00:00
Abdelrazak Younes
504fe5343b Fix initialisation bug introduced in r21788.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21791 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 10:22:28 +00:00
André Pönitz
134a72d555 use plain C++ instead of boost
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21788 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 23:25:00 +00:00
Abdelrazak Younes
23c291bb6c Free support/FileName.cpp from boost::filesystem. Please use '-dbg files' in order to verify that everything works correctly.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21787 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 23:21:39 +00:00
Abdelrazak Younes
b897636173 Free src/ from boost::filesystem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21784 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 21:21:03 +00:00
André Pönitz
65f9f3c22b add signal/slot implementation 'framework'
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21781 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 19:46:22 +00:00
André Pönitz
d95451ae5c s/isFileReadable/isReadableFile;
introduce isReadableDirectory
replace isReadable by either isReadableFile or isReadableDirectory
remove isReadable


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21769 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-25 11:18:16 +00:00
Enrico Forestieri
6820b61afa Fix some other thinkos in r21048
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21757 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-24 01:34:46 +00:00
Abdelrazak Younes
ded737b109 WIN32 compile fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21637 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-16 11:26:05 +00:00
André Pönitz
e1ce2f92db reduce line noise
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21631 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 20:04:51 +00:00
Abdelrazak Younes
55217e352c Remove support for Qt < 4.2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21624 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-15 12:51:03 +00:00
Enrico Forestieri
067e21046f Fix bug that files with nonascii filenames are always reported
as externally modified.

	* src/Buffer.cpp (Buffer::readFile): filenames are always stored
	as UTF-8 in the FileName class.

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


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21620 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 23:30:13 +00:00
André Pönitz
a3393e63b8 unneeded stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21619 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-14 22:29:20 +00:00
André Pönitz
adaad6e2e5 simplify class structure
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21554 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-12 20:18:19 +00:00
Uwe Stöhr
565e446e26 FileName.cpp: MSVC compile fix for r21492
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21545 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 20:36:22 +00:00
André Pönitz
8d06b3049b cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21544 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-10 13:44:50 +00:00
Enrico Forestieri
2a03009a75 Much ado about nothing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21530 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-09 10:54:45 +00:00
Abdelrazak Younes
5d906055af revert 21523.
Sorry Uwe but if this does not compile it is a problem on your system.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21529 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-09 10:36:56 +00:00
Uwe Stöhr
803a4be927 FileName.cpp: compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21523 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 22:48:23 +00:00
André Pönitz
fdd5134a24 #undef I_AM_NOT_AFRAID_OF_HEADER_LIBRARIES
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21519 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 21:38:10 +00:00
Enrico Forestieri
edb6c9ede4 Always forward declare string as it is not guaranteed that the
iosfwd header already does it.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21518 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 13:32:56 +00:00
Abdelrazak Younes
3a1290815e Fix compilation for MSVC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21514 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 07:47:31 +00:00
Enrico Forestieri
4a35906da7 Fix problems with odocstream on "exotic" systems caused by the strfwd gimmick.
* src/support/docstream.{cpp,h}:
	Move insertion operator for char types from docstream.h to
	docstream.cpp and compile it only when USE_WCHAR_T is not defined.

	* src/support/strfwd.h:
	Implement forward declarations in standard C++ way.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21513 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 06:05:19 +00:00
André Pönitz
14f7e7fffe shuffle stuff around
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21511 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-08 00:09:58 +00:00
Abdelrazak Younes
cdf1378200 Introducing TextClassPtr.h to minimize header dependencies.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21506 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 23:25:08 +00:00
Abdelrazak Younes
dec166d5e3 compil fix. No guaranty that it works but at least it compiles with MSVC
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21501 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 22:20:13 +00:00
André Pönitz
a15472ecfe compile fix?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21494 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 20:22:46 +00:00
André Pönitz
cf7b238479 more use of support::FileName.
Would be nice if people tested read/write, and Bo perhaps the 'embedded'
feature?



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21492 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-07 19:52:11 +00:00
André Pönitz
a88884aaa2 simplification
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21483 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 22:20:05 +00:00
André Pönitz
688c186614 we assume (more or less) conforming compilers nowadays.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21482 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:45:24 +00:00
André Pönitz
a8ea5cc493 rmove unused file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21481 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-06 21:18:39 +00:00
André Pönitz
7c41973d51 cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21411 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 20:52:09 +00:00
André Pönitz
35ee849f2a ugly and not strictly needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21410 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 20:45:14 +00:00
André Pönitz
09b7e6e60a some std::string -> filename changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21404 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-03 17:37:37 +00:00
André Pönitz
47cd08999c cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21390 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-02 21:04:52 +00:00
André Pönitz
a8cd9a4b8f cosmetics. mainly replace #include "dostring.h" by #include "strfwd.h"
in header files when possible. Adjust .cpp files.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21358 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-01 22:17:22 +00:00
Stefan Schimanski
ffa57bea4d * gcc does not like missing characters in keywords
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21313 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 23:41:22 +00:00
André Pönitz
a5263e0f92 introduce a header to forward declare std::string.
hope there are only conforming implementaions out there ;-}


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21312 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 22:40:34 +00:00
Abdelrazak Younes
036a507c6d Move to_local8bit_failure class to docstring.cpp and restore std::bad_cast inheritance.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21307 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-31 08:05:37 +00:00
André Pönitz
6616c59385 make unused exception less expensive
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21276 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-29 22:58:08 +00:00
Bernhard Roider
0886d316d4 complete fix of bug 3172: add binary mode open to the part where istreambuf_iterator is used.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21222 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-26 21:47:44 +00:00
Bernhard Roider
74d22c2ce4 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/trunk@21211 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 22:36:59 +00:00
André Pönitz
ee120bd808 172725 lines down
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-25 19:41:06 +00:00
Bo Peng
6e35955ea3 make trunk compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21086 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 19:48:53 +00:00
André Pönitz
fbb3abfeac cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21085 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 17:35:27 +00:00
André Pönitz
f762cbf3c6 mainly cosmetics
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21079 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-20 10:03:45 +00:00
Abdelrazak Younes
050b0f152f Fix copy&paste bug.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21051 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-19 07:45:46 +00:00
André Pönitz
a02653e4dd isome more FileName shuffling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21048 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 23:03:51 +00:00
André Pönitz
988f372843 use FileName::isDirectory()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21047 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 21:10:35 +00:00
André Pönitz
055c95ca51 create FileName::isDir function
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21046 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 19:38:24 +00:00
André Pönitz
0e08bc5e16 start using FileName::exists()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21044 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 19:29:32 +00:00
Abdelrazak Younes
55beda376a Refactor Undo/Redo framework into an Undo class owned by a Buffer. This reduces header dependencies from Undo.h which was including lots of stuff previously. This also solves the bug where undo/redo were reset upon buffer switching. Now, each buffer has a truly independant undo/redo architecture.
In the future, when Cursor has been fixed to work correctly with multiple views of the same Buffer, we could transfer the Undo owner from Buffer to Cursor.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21031 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-18 11:51:17 +00:00
André Pönitz
3b3ac62e58 create some helper functions in FileName
cosmetics;


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21022 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 22:21:50 +00:00
André Pönitz
e8fb3824c5 do not pack parts of the working copy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21020 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-17 20:22:11 +00:00
André Pönitz
b55f17ecb5 shut up
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20892 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-11 06:17:52 +00:00
André Pönitz
a4afd7b7e9 thinko
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20891 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-10 22:03:22 +00:00
André Pönitz
19ab5ceef9 s/pkglib_/noinst_/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20669 a592a061-630c-0410-9148-cb99ea01b6c8
2007-10-02 20:34:55 +00:00
André Pönitz
fad47c0fe0 boost/utility -> boost/noncopyable
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20608 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-30 15:47:00 +00:00
André Pönitz
581b67b26e move ChangeLogs to the attic
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20587 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-29 14:12:55 +00:00
Lars Gullik Bjønnes
45c0f1bbd8 Ambigous else
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20308 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 10:40:29 +00:00
Lars Gullik Bjønnes
26f336769a Remove warnings reported with gcc 4.3:
- Modifier on return type ignored
	- Ambigous else
	- Ambigous logical operators
	- Semi-colon instead of empty block
	- Missing header files
	- Missing using std::XX
	- Initialization out of order


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20304 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-16 10:36:57 +00:00
Richard Heck
779220a03b Correct comment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20141 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-08 15:15:31 +00:00
Enrico Forestieri
92065820e5 Register math fonts with Qt 4.2 or higher. Using Qt 4.1, the old
xft-fonts package is still required. However, on *nix there seem
to be no way to tell fontconfig to prefer our fonts instead of
others matching the requirements, so, in case of conflict, the
fontconfig files should be manually adjusted, or some existing
font package used (note that the quality of the bakoma fonts is
better than that of the xft ones). There is no such problem on
Windows where our private fonts are always preferred over the
installed ones (and I hope the same holds true for Mac).

	* src/LyX.cpp
	(LyX::exec): don't call addFontResources() and restoreFontResources()
	anymore, as the frontend code will do the job.

	* src/frontends/qt4/GuiFontLoader.{cpp,h}
	(GuiFontLoader::GuiFontLoader): register math fonts with Qt.
	(GuiFontLoader::~GuiFontLoader): unregister math fonts.

	* src/support/os.h
	* src/support/os_unix.cpp
	* src/support/os_win32.cpp
	* src/support/os_cygwin.cpp:
	remove code dealing with fonts.

	* configure.ac: don't check for fontconfig headers anymore.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20128 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-07 16:22:05 +00:00
Bo Peng
18ed8a89f1 support/minizip/iowin32.h|c: also test for _WIN32 because WIN32 is not defined for all windows compilers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20090 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-06 02:48:18 +00:00
Peter Kümmel
480981fdcd declare specialisations, needed by the merge build. add cpp minizip file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20045 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-04 18:39:13 +00:00
Enrico Forestieri
960af8f370 Register math fonts with fontconfig
* src/support/os_unix.cpp
	  (addFontResources): add the system fonts dir to the paths
	  scanned by fontconfig.
	  (restoreFontResources): remove the system fonts dir from the
	  fontconfig configuration.

	* configure.ac:
	  add check for the fontconfig devel headers.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20034 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-04 13:33:21 +00:00
Bo Peng
22ce34e5d5 Move two minizip functions from filetools.cpp to its own file minizip/zipunzip.cpp, covered by minizip's original license
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20025 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-03 21:09:11 +00:00
André Pönitz
f82c3e8e65 xpm -> png
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19922 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-30 20:09:12 +00:00
André Pönitz
d65a564adf remove special handling of Package.cpp[.in]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19840 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-27 21:29:56 +00:00
Enrico Forestieri
9e8f0b9d91 Compile all minizip sources also on *nix platforms, as platform
specific code is #ifdef'd out.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19782 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-24 18:02:14 +00:00
André Pönitz
50d78265aa do not compiler iowin32.* on Non-Windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19757 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-23 19:01:46 +00:00
Enrico Forestieri
468d29423e Compile fix for mingw
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19713 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-22 04:52:40 +00:00
André Pönitz
212f6d10df "proper" fix for utime use in filetools.cpp
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19711 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 23:16:49 +00:00
André Pönitz
61e6445f2e compile fix for ubuntu, probably not generic enough
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19710 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 23:05:48 +00:00
Bo Peng
bb045a4fba Fix file inclusion in src/support/filetools.cpp under mac
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19707 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 22:10:58 +00:00
Peter Kümmel
281f44e295 minizip fixes for msvc and cmake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19700 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 21:09:45 +00:00
Bo Peng
25b22bc54d Add autotools support for src/support/minizip stuff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19699 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 20:40:02 +00:00
Bo Peng
0f7d814280 Change src/support/minizip/* from K&R to ANSI style so that a C++ compiler can compile them
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19698 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 20:02:05 +00:00
Bo Peng
52fa9e584e Embedding feature patch 1: add zipFiles and unzipToDir to support
* src/support/lyxlib.h: add makedir(), used by unzipToDir
	* src/support/filetools.[h|cpp]: add zipFiles() and unzipToDir()
	* src/support/mkdir.cpp: add makedir() and mymkdir(char*).
	* src/support/minizip: add zlib-1.2.3/contrib/minizip files to lyx svn
	* src/support/minizip/iowin32.h
	* src/support/minizip/ioapi.c
	* src/support/minizip/zip.c
	* src/support/minizip/unzip.c
	* src/support/minizip/crypt.h
	* src/support/minizip/ioapi.h
	* src/support/minizip/zip.h
	* src/support/minizip/unzip.h
	* src/support/minizip/iowin32.c
	* development/scons/scons_manifest.py: adjust scons
	* development/scons/SConstruct


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19692 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 14:48:47 +00:00
André Pönitz
6d5a52b8e3 implement --enable-monolithic-{client,frontend-qt4,controllers}. Careful with frontend-qt4, it takes ~490 MB to build (but 3 instead of 8 minutes...)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19641 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-19 09:44:34 +00:00
Enrico Forestieri
d74be992b3 Fix dist target
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19536 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-14 01:30:33 +00:00
André Pönitz
2515a3bded remove reference to LaTeXStream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19459 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-12 14:22:31 +00:00
André Pönitz
1a0f0fa186 some renamimg
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19458 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-12 14:03:48 +00:00
André Pönitz
333103801b add missing header
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19447 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-12 10:50:49 +00:00
André Pönitz
2caa98bee0 disable some tests for standard C++ features; add a line counting stream for lates output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19446 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-12 08:57:17 +00:00
André Pönitz
848c89564f remove lyxrc dependence from support/*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19441 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 22:37:09 +00:00
Jean-Marc Lasgouttes
55d7d1cfeb rename the generated package.C to Package.cpp, as it should. You may have to rebuild all, at least in support (but you are used to it, now....)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19431 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 18:35:13 +00:00
Jean-Marc Lasgouttes
fe8c51c822 fix running lyx with libtools and shared libraries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19428 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 18:15:33 +00:00
André Pönitz
15b104953a merge support/Makefile.am and support/tests/Makefile.am
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19422 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 09:15:35 +00:00
André Pönitz
67e61a3956 enable building of shared libraries. reduces final linktime. also combine boost stuff into a single library
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19410 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-10 22:33:54 +00:00
Lars Gullik Bjønnes
5ae54ddafb Get rid of a few warnings.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19409 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-10 20:14:54 +00:00
Christian Ridderström
1050cc4471 Converted '#warning ...' into FIXME-comments
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19397 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-10 11:47:12 +00:00
Jean-Marc Lasgouttes
691a1be431 Remove cruft from config.h
* src/support/tempname.cpp: move code about HAVE_MKSTEMP here (only user)

	* src/pch.h:
	* src/Buffer.cpp:
	* configure.ac: remove all traces of utime.h and HAVE_UTIME

	* config/lyxinclude.m4: remove WITH_WARNING define (which be rendered useless in 
	a future commit from christian)

	* development/scons/SConstruct: try to update.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19395 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-10 09:04:41 +00:00
Jean-Marc Lasgouttes
9b3aa538fc [the "translation" patch series] Part 3: improving the loading of localized files
* src/support/filetools.cpp (i18nLibFileSearch): use a trick to find
	out the name of the current translation. 

	* po/*.po: add the entry necessary for the above trick.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19350 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-07 20:39:55 +00:00
Enrico Forestieri
f6504c4fff No need to check whether the TEMP var is already set, it suffices
using false as the third parameter to setenv for not having it
replaced when already set.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19335 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-06 14:17:43 +00:00
Enrico Forestieri
19b5ae4830 Use the internal function of the cygwin dll for syncing the
Windows environment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-06 13:51:22 +00:00
Jean-Marc Lasgouttes
525cd4c51e * src/support/gzstream,cpp:
* src/support/gzstream.h: re-introduce the stream we were using in
	1.4.x. The boost iostream solution produces unreadable streams
	on windows and we do not know why currently.

	* src/support/Makefile.am:
	* src/Buffer.cpp:
	* src/Lexer.cpp:
	* development/scons/scons_manifest.py: adapt.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19271 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-01 15:16:44 +00:00
Enrico Forestieri
b81c90adee Use home made code for the bool facet.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19250 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-31 13:13:23 +00:00
Enrico Forestieri
128bb9ed49 Add missing facets for extraction from an idocstream on platforms
lacking support for wchar_t. This solves bug 4076.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19233 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-30 13:15:27 +00:00
Jürgen Spitzmüller
402a13ba60 * src/support/docstream.cpp (iconv_codecvt_facet::do_max_length()):
- consider that not only utf8, but also most cjk encodings, are multibyte encodings
	  (fixes bug 4012)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19076 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-14 13:00:24 +00:00
Enrico Forestieri
76799eb493 Fix bug 3962 (by me, Peter, and Joost)
* src/support/os_cygwin.cpp
	* src/support/os_win32.cpp
	(addFontResources): use AddFontResourceEx on Windows version
	supporting this API in order to mark our fonts as private.
	(restoreFontResources): ditto with RemoveFontResourceEx.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19038 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-11 11:57:58 +00:00
Michael Schmitt
7f74d469a4 * src/Author.h:
* src/Changes.cpp:
	* src/support/userinfo.cpp:
	* src/Paragraph.cpp:
	* src/Changes.h:
	* src/Buffer.cpp:
	* src/Paragraph.h:
	* src/BufferParams.cpp: do not save the name of authors
	in LyX documents, who have not made a single change in 
	change tracking mode


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19019 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-09 20:52:34 +00:00
Abdelrazak Younes
2caa734edf revert the obviously incorrect fix of rev. 19001.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19002 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-06 15:50:39 +00:00
Abdelrazak Younes
46214d708c * lstring.cpp:
- isAscii(): char is signed with MSVC so the comparison was not correct. Add a static_cast to "unsigned char" as per the other methods.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19001 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-06 14:43:18 +00:00