Commit Graph

1213 Commits

Author SHA1 Message Date
Richard Heck
1741c87a4e Fix bug 4463. The crash was due to a call to X from inside a child process.
The main change is to support/ForkedCalls.{h,cpp}. We introduce a static variable IAmAChild and a corresponding accessor. This is set to true in a new fork() method, in the branch taken by the child. (Note: fork() is safe cross-platform, as it just returns -1 if we don't have fork().) This ForkedProcess::iAmAChild() method is then used to protect GuiView::message().

As Abdel has pointed out, there may be other such calls to be protected, e.g., the emission of the Buffer::changed() signal. Those are not addressed here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22587 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 18:26:53 +00:00
Uwe Stöhr
ecde9d6a0f revert r22574 to be able to compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22578 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:45:04 +00:00
Abdelrazak Younes
11f36d2d72 header cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22574 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 23:19:55 +00:00
Bo Peng
b5153b3d26 Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22448 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 18:55:34 +00:00
Bo Peng
52cd35cd5f Embedding: add embedding support for InsetBibtex. (params["embed"] is added, use EmbeddedFileList instead of FileNameList for bibtex handling, use checkable items in GuiBibtex)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22443 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 17:02:09 +00:00
Bo Peng
c81fd7337d Embedding: add embedding support for InsetInclude. (params["embed"] is added)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22441 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-08 16:35:43 +00:00
Bo Peng
c9a7e8c416 Embedding: After another round of EmbeddedFiles changes, embedded figures should more or less work now.
* src/insets/InsetExternal.cpp: fix compiling. (Does not work yet)
	* src/insets/InsetGraphics.cpp: use latexFilename to produce output.
	* src/insets/InsetGraphicsParams.cpp: use availableFile to show preview.
	* src/EmbeddedFiles.h|cpp: More things are moved from EmbeddedFiles to EmbeddedFile
	* src/frontends/qt4/GuiGraphics.cpp: remove embeddable-related operations.
	* src/support/FileName.h: make isReadableFile virtual


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22410 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 03:34:21 +00:00
Bo Peng
56a1dfe65f Embedding: adjust how InsetGraphics interacts with EmbeddedFiles, the ?th overhaul of the EmbeddedFile class :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22377 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 05:28:39 +00:00
Bo Peng
1e6d09c7c8 zipunzip.cpp: Replace makedir etc with versions in support::FileName, fix a bug in extracting subdirectories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22373 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-05 04:39:01 +00:00
Richard Heck
d23ff5f777 More encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22334 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 21:18:50 +00:00
Richard Heck
e6cec292c5 Encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22333 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 21:15:20 +00:00
Abdelrazak Younes
58729e1117 Following rev 21967: final touch to odocfstream:
- odocfstream: properly fix plaintext output by getting rid of ctor with std::string argument as this can be mixed up with std::ofstream(std::string) ctor where the argument is a file. UTF8 is now the default encoding.
- PreviewLoader::Impl::startLoading(): catch another potential iconv exception.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22332 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 18:04:43 +00:00
Jürgen Spitzmüller
c26050ac83 * src/support/unicode.cpp (convert):
- flush out data at the end of the conversion process (bug 4439).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22319 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 07:30:06 +00:00
Stefan Schimanski
a5005c8c48 * added debugging flag "macros" for math macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22242 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 20:43:21 +00:00
Abdelrazak Younes
7998dfd948 Close to perfect scrolling. Some bugs fixing and behaviour tweaking remains but we are on a much saner ground.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22221 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 08:28:18 +00:00
Abdelrazak Younes
19787f2d79 * FileName::onlyPath(): use correct method. I need glasses!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22206 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 10:34:53 +00:00
Abdelrazak Younes
5df6a11820 Remove unneeded assertion.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22205 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-18 10:14:01 +00:00
Abdelrazak Younes
1447a7bf98 Now that exceptions are allowed, handle gracefully the case where a Buffer temp directory could not be created. As a bonus, the user will get an informative message.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22196 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 18:37:13 +00:00
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