Commit Graph

1020 Commits

Author SHA1 Message Date
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