Commit Graph

50 Commits

Author SHA1 Message Date
Abdelrazak Younes
85f66bcd90 Fix support lib dependency problem.
* docstring.C: Implement utf8ToUcs4() locally.

* all other files: remove utf8ToUcs4().


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17361 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-26 12:46:44 +00:00
Enrico Forestieri
fc3a2761de Log:
Move OS dependent code where it belongs.

	* src/lyx_cb.C:
	Remove unused include

	* src/support/os.h
	* src/support/os_unix.C
	* src/support/os_win32.C
	* src/support/os_cygwin.C:
	Move here the code from fontutils.[Ch]

	* src/support/os_cygwin.C
	(external_path, external_path_list): don't differentiate anymore
	on Qt/X11 or Qt/Win builds.

	* src/support/environment.C
	(setEnvPath): get rid of the #ifdef for cygwin.

	* src/lyx_main.C
	(LyX::exec): addFontResources and restoreFontResources are now
	in the os namespace.

	* src/support/Makefile.am
	* src/client/Makefile.am
	* src/tex2lyx/Makefile.am
	* development/scons/scons_manifest.py:
	Updated

	* src/support/fontutils.[Ch]:
	Removed



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16655 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-11 21:22:18 +00:00
Georg Baum
49b753f603 Fix another instance of filename encoding problems
* src/support/filetools.h
	(fileSearch): change return value type to vector<FileName>

	* src/support/filetools.C
	(dirList): Convert filenames from the file system encoding

	* src/converter.C
	(Converters::move): Adjust to dirList interface change

	* src/support/filename.[Ch]
	(FileName::fromFilesystemEncoding): New static method

	* src/client/client.C: Add comments about filename encoding


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16362 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 13:01:47 +00:00
Georg Baum
fe5c73915e Make libQtCore a support library like boost and implement encoding conversion
from/to the local 8bit encoding with it.
Only the autotools build system is updated, scons and cmake users need to
add qt4 cpp flags when compiling libsupport, and link libsupport against
libQtCore.

	* src/frontends/qt4/qt_helpers.[Ch]
	(toqstr, qchar_to_ucs4, ucs4_to_qchar, ucs4_to_qstring,
	 qstring_to_ucs4, fromqstr): Move these qstring conversion functions
	from here ...

	* src/support/qstring_helpers.[Ch] ... to these new files

	* src/support/docstring.[Ch]
	(from_local8bit): new conversion function from local 8bit encoding
	to ucs4
	(to_local8bit): new conversion function from ucs4 to local 8bit
	encoding to ucs4
	(to_local8bit_failure): exception that is thrown by to_local8bit if
	the argument cannot be converted to the local encoding

	* src/support/filename.C
	(FileName::toFilesystemEncoding): implement with the help of QFile

	* src/support/Makefile.am: Add new files, qt4 cpp flags and link
	against libQtCore

	* src/client/client.C: Convert commandline input from local encoding
	to ucs4. Convert stuff that is sent to to the server to utf8,
	because LyX interprets it as utf8 on the other end of the pipe.

	* src/lyx_main.C
	(LyX::exec): convert commandline input from local encoding to utf8
	(LyX::init): ditto
	(LyX::easyParse): ditto

	* development/scons/scons_manifest.py: Add new files

	* config/qt4.m4: Define new variables QT4_CORE_INCLUDES,
	QT4_CORE_LDFLAGS and QT4_CORE_LIB


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16257 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 20:19:46 +00:00
Abdelrazak Younes
0e579405ca hopefully fix client linking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15968 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-18 20:24:47 +00:00
Georg Baum
97f939a328 Another compile fix. I don't understand why it worked for me.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15767 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 15:31:27 +00:00
Georg Baum
48a718d558 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15766 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 13:27:05 +00:00
Jürgen Spitzmüller
c98a3faaff * src/client/messages.C: add missing #include <cerrno>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15748 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-05 12:26:31 +00:00
Michael Schmitt
2f8c76d691 * client/messages.C: add missing #include
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15745 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-05 11:47:14 +00:00
Georg Baum
8cc9180ba8 Resolve link problems of tex2lyx and client by removing the extra gettext.h
headers and converting the gettext stuff in tex2lyx and client to use
docstring.
The interface must be defined by src/gettext.h anyway, so better use that.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15740 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-04 18:12:57 +00:00
André Pönitz
5dc370ea73 tmeporary link fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15426 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 07:31:57 +00:00
André Pönitz
6c300f72a2 move everything into namespace lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15422 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-21 00:16:43 +00:00
Jean-Marc Lasgouttes
77fd733217 link lyxclient against iconv
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15003 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 09:39:10 +00:00
Jean-Marc Lasgouttes
3253193b63 * src/client/debug.C (showLevel):
* src/ispell.C (ISpell,check): compilation fix



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14974 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 10:27:48 +00:00
Abdelrazak Younes
a6444784dc A bunch of conversion to docstring.
- bformat(): contributed by Georg Beaum
- Alert::XXX
- error(): in SpellBase, ispell, psell, aspell, buffer, etc.
- message(), message signal
- displayMessage(), setMessage,
- ErrorItems
- prettyName()
- makeDisplayPath()

and maybe some more...


- etc... 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14970 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 08:54:10 +00:00
Lars Gullik Bjønnes
d64a07a784 Update in-tree boost to latest from boost 1.34 cvs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14895 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-05 07:18:36 +00:00
Jean-Marc Lasgouttes
2558af85af fix hyphens in man pages
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14351 a592a061-630c-0410-9148-cb99ea01b6c8
2006-07-06 14:27:46 +00:00
Lars Gullik Bjønnes
5e3b997b85 Remove the now superseeded SConscript files, and some small missing parts to SConstruct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13825 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-10 18:05:12 +00:00
Bo Peng
7168ce58b5 scons-based build system, by Bo Peng (ben.bob@gmail.com)
* SConstruct: main SConstruct file
	* scons_utils.py: utility functions
	* qt4.py: qt4 support is not yet official, and I have to patch this file
	* src/SConscript
	* src/insets/SConscript
	* src/graphics/SConscript
	* src/mathed/SConscript
	* src/frontends/qt3/SConscript
	* src/frontends/qt4/SConscript
	* src/frontends/SConscript
	* src/frontends/controllers/SConscript
	* src/support/SConscript
	* src/client/SConscript
	* src/tex2lyx/SConscript
	* boost/libs/SConscript
	* boost/libs/signals/src/SConscript
	* boost/libs/filesystem/src/SConscript
	* boost/libs/iostreams/src/SConscript
	* boost/libs/regex/src/SConscript


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13807 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-07 22:44:54 +00:00
Jean-Marc Lasgouttes
c981e04e67 add header <sys/time.h> for DragonFly BSD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13655 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-12 09:58:09 +00:00
Georg Baum
b3acb8ce8e revert part of Enrico's temp dir patch: The client does not use package()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13531 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 18:37:39 +00:00
Georg Baum
fae3013531 compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13441 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 17:11:08 +00:00
Abdelrazak Younes
ed952eb226 replace hard-coded "/tmp" with package().temp_dir()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13434 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 15:35:04 +00:00
Lars Gullik Bjønnes
4a7ab830bc Delete all .cvsignore files from trunk
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13208 a592a061-630c-0410-9148-cb99ea01b6c8
2006-02-10 22:09:45 +00:00
Jean-Marc Lasgouttes
7b890a1ecc fixing linking on solaris
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10650 a592a061-630c-0410-9148-cb99ea01b6c8
2005-12-09 13:42:23 +00:00
Angus Leeming
7704aa9055 Help Lars spell his name.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10311 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-18 08:04:50 +00:00
Michael Schmitt
f6b917140d Various text message changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10279 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-17 12:39:56 +00:00
Lars Gullik Bjønnes
a78c91bdbb make sure to dist pch.h and mark PCH_FILE as a built file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10173 a592a061-630c-0410-9148-cb99ea01b6c8
2005-07-12 23:42:23 +00:00
Lars Gullik Bjønnes
e5ae321dab the AM_* flags patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9963 a592a061-630c-0410-9148-cb99ea01b6c8
2005-05-20 16:56:28 +00:00
Angus Leeming
aabd481ab6 Consistent use of preprocessor guards;
include <config.h> in .C files, not .h ones;
licence blurb.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9876 a592a061-630c-0410-9148-cb99ea01b6c8
2005-04-26 10:30:24 +00:00
Lars Gullik Bjønnes
3c851f1f79 make "make distcheck" work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9681 a592a061-630c-0410-9148-cb99ea01b6c8
2005-02-25 09:01:06 +00:00
Lars Gullik Bjønnes
342cdf4322 the convert patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9538 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-27 21:05:44 +00:00
Angus Leeming
f3024416ad Guard HAVE_UNISTD_H.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9512 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-20 15:38:14 +00:00
Angus Leeming
bb350c0cba Use HAVE_UNISTD_H.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9503 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-19 15:26:41 +00:00
Angus Leeming
c9f9ba315c Asger's exchanging of the class and struct keywords.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9502 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-19 15:03:31 +00:00
Angus Leeming
b5589bf6cf The package reworking.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9463 a592a061-630c-0410-9148-cb99ea01b6c8
2005-01-10 19:17:43 +00:00
Angus Leeming
82dca177a3 Remove redundant "using lyx::support::GetEnvPath;"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9388 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-16 14:53:58 +00:00
Angus Leeming
ba837dca09 Remove trailing slash from -Ifoo/ in the AM_CPPFLAGS rules in the various
Makefile.ams to overcome bug in the MinGW port of g++ 3.4.2.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9364 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-14 10:41:09 +00:00
Lars Gullik Bjønnes
7ef4c4070c rename boost libs, add some boost variables for automake, and use them
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9343 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-05 17:10:58 +00:00
Lars Gullik Bjønnes
a4319c2b89 more PCH_FLAGS work
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9341 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-04 14:50:25 +00:00
Lars Gullik Bjønnes
c73eea9bda use AM_CPPFLAGS instead of INCLUDES since that is deprecated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9338 a592a061-630c-0410-9148-cb99ea01b6c8
2004-12-03 19:11:38 +00:00
Georg Baum
dacd4cea26 make gettting the file format from file contents work in the correct way ;-)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9218 a592a061-630c-0410-9148-cb99ea01b6c8
2004-11-09 19:08:34 +00:00
Georg Baum
6fe9e4e30d rename getExtFromContents() to getFormatFromContents()
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9141 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-29 15:47:55 +00:00
Angus Leeming
eb00187fea Whitespace, nothing but whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9131 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-26 21:16:44 +00:00
Angus Leeming
e978fa42e3 Whitespace, only whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9044 a592a061-630c-0410-9148-cb99ea01b6c8
2004-10-05 10:11:42 +00:00
Lars Gullik Bjønnes
3f589b3511 some fixes, SUN_PATH, pch, errno
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8987 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-17 08:26:41 +00:00
Jean-Marc Lasgouttes
28058889fa fix building client with included gettext
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8970 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-09 09:29:04 +00:00
Jean-Marc Lasgouttes
9e5d56f70f build fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8969 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-06 10:17:21 +00:00
Lars Gullik Bjønnes
e094d0df1f forgot this file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8968 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-04 12:14:11 +00:00
Lars Gullik Bjønnes
cf40817160 lyxclient moved from development and cleaned up a bit + some assorted fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8967 a592a061-630c-0410-9148-cb99ea01b6c8
2004-09-04 12:13:50 +00:00