Commit Graph

200 Commits

Author SHA1 Message Date
Georg Baum
951e4e0a78 French translation of beamer template and minor corrections by
Jean-Pierre Chretien


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16946 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-30 11:03:58 +00:00
Georg Baum
f1dedb3351 Rename files to conform to LyX conventions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16935 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 19:59:48 +00:00
Georg Baum
feb7895965 Add machinery to output arbitrary unicode characters with LaTeX commands
read from a text file.

	* src/encoding.[Ch]

	(Encoding::latexChar): New, output a character to LaTeX
	(Encoding::validate): New, add needed preamble stuff for a character
	(Encodings::read): Read new unicodesymbols file
	(Encodings::isCombiningChar): New, is a character a combining char?

	* src/paragraph_pimpl.C
	(isEncoding): Delete, no longer needed
	(getEncoding): New, get the real encoding of a font
	(Paragraph::Pimpl::latexSurrogatePair): New, output a surrogate pair
	to LaTeX
	(Paragraph::Pimpl::simpleTeXBlanks): Use latexSurrogatePair if needed
	(Paragraph::Pimpl::simpleTeXSpecialChars): Ditto, and replace several
	hardcoded characters with a call of encoding.latexChar()
	(Paragraph::Pimpl::validate): replace several hardcoded characters
	with a call of encoding.validate()

	* src/support/debugstream.h
	(basic_debugstream::disable): New, disable the stream completely
	(basic_debugstream::enable): New, reenable the stream

	* src/lyx_main.[Ch]: Adjust to changes above

	* src/paragraph.C: Ditto

	* lib/unicodesymbols: New file with UCS4 -> LaTeX command mapping.
	It is far from complete yet, but contains most accents on latin
	characters.

	* lib/Makefile.am: add lib/unicodesymbols

	* development/scons/scons_manifest.py: ditto

	* development/tools/unicodesymbols.py: Helper script to update
	lib/unicodesymbols with new symbols


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16920 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 21:27:45 +00:00
Uwe Stöhr
60a0914d88 update image change for SCons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16916 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 20:42:39 +00:00
Georg Baum
87bb14103d Add two templates from the beamer package that I forgot when I put the
beamer stuff in LyX.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16908 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 18:39:36 +00:00
Georg Baum
ba7c5463cb Remove delete files from lib/Makefile.am.
Add the xpm version of the deleted lib/clipart/buffer-export_pdf2.png as
lib/images/buffer-export_pdf2.xpm since I discovered that we did not yet
have this icon.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16902 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 09:23:38 +00:00
Bo Peng
16d5b72ea1 Scons: also consider prefix option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16901 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 07:07:57 +00:00
Bo Peng
168d3ef631 Scons: continue refining scons installer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16900 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 06:58:03 +00:00
Bo Peng
bae86e4098 Scons: refine scons installer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16899 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 06:47:11 +00:00
Bo Peng
4be2a69492 remove removed files from scons_manifest.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16898 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-28 06:26:09 +00:00
Uwe Stöhr
3b322a7ce5 fix bug 3154
http://bugzilla.lyx.org/show_bug.cgi?id=3154

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16889 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-27 17:45:57 +00:00
Bo Peng
c9fb2a107e Scons: NSIS support (installer target)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16854 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-25 19:13:22 +00:00
Bo Peng
db4499f4b1 Scons: initial windows nsis installer support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16846 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-25 06:19:49 +00:00
Abdelrazak Younes
801f807063 Display error/warning dialogs if possible.
* ExceptionMessage: new exception based message for errors and warnings.

* package.C.in:
  - replace lyxerr based errors and warning with ExceptionMessage throwing.
  - bail_out(): erased!

* os_win32.C:
  - replace lyxerr based errors and warning with ExceptionMessage throwing.
  - bail_out(): erased!

* tex2lyx.C: catch any exception from Package class.

* lyx_main.C:  catch any exception from Package class and act accordingly.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16834 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-24 15:49:20 +00:00
Jürgen Spitzmüller
891a046862 * lib/images/buffer-update_pdf2.xpm:
* lib/Makefile.am:
* development/scons/scons_manifest.py:
	- add missing "update pdf" icon. Not beautiful, but matches 
	   the other view/update icons.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16722 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 08:18:20 +00:00
Uwe Stöhr
68e4965abb updated icons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16718 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 01:05:22 +00:00
Michael Schmitt
bdadc8d496 * development/scons/scons_manifest.py:
* src/frontends/qt4/Makefile.dialogs:
* src/frontends/qt4/QPrefsDialog.C:
* src/frontends/qt4/QPrefsDialog.h:
* src/frontends/qt4/ui/compile_uic.sh:
* src/frontends/qt4/ui/QPrefAsciiUi.ui:
* src/frontends/qt4/ui/QPrefPlaintextUi.ui: rename QPrefAsciiUi.ui to QPrefPlaintextUi.ui; 
rename PrefAscii to PrefPlaintext

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16714 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-16 22:29:33 +00:00
Uwe Stöhr
3177b8e16f - remove duplicate PDFs
- correct entries in makefile.am

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16699 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-15 23:22:06 +00:00
Uwe Stöhr
0bfff71348 forgot this in r16687
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16689 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-14 21:05:26 +00:00
Michael Schmitt
9c09f34da0 * lib/*: rename Extended-Insets to ExtendedInset
* development/scons/scons_manifest.py: add es_ExtendedInset


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16683 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-14 18:17:56 +00:00
Uwe Stöhr
f41eedd7ee - new documentation
- images used in the new documentation

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16676 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-14 16:41:42 +00:00
Georg Baum
c61296caa3 Add two files that are included by the beamer example file and that I forgot.
Found out by Jean-Pierre Chretien.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16671 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-13 21:08:13 +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
Michael Schmitt
8c85719080 * lib/ui/stdmenus.inc:
* lib/ui/stdmenus.ui: rename file in order not to confuse users
* lib/ui/stdtoolbars.inc:
* lib/ui/stdtoolbars.ui: rename file in order not to confuse users

* development/scons/scons_manifest.py: 
* lib/doc/de_Customization.lyx:
* lib/Makefile.am:
* lib/ui/classic.ui:
* lib/ui/default.ui: adjust
 


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16549 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-06 13:42:15 +00:00
Bo Peng
3b8d367e6e Scons: fix a mingw/scons bug (it is a scons bug)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16539 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-05 18:30:46 +00:00
Bo Peng
b1c7fc3e4f Scons: fix two mingw bugs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16522 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-05 06:29:18 +00:00
Bo Peng
17a36a12f9 Scons: create libs directory for res file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16472 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 04:57:55 +00:00
Bo Peng
71794188c7 Scons: allow use of different icons for lyx and tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16464 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-02 06:13:53 +00:00
Bo Peng
5059ac7648 Scons: fix a typo
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16463 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-02 05:22:20 +00:00
Bo Peng
c35c782b30 Scons: create an .rc file and link lyx.exe etc with .res to set icon
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16462 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-02 05:21:08 +00:00
Abdelrazak Younes
b2126408cf This commit do the Model/View separation of the LyXText and Paragraph classes. The separation is mostly complete for the Paragraph class but some more transfer should occur for the LyXText class.
* ParagraphMetrics.[Ch]: new files

* TextMetrics.[Ch]: new files.

* lyxtext.h/text2.C/text3.C: some code transferred to the TextMetrics class.

* paragraph.[Ch]: all screen oriented code transfered to ParagraphMetrics class.

* BufferView:
 - text_metrics_: new TextMetrics cache private member.
 - textMetrics(): new access method.
 - parMetrics(): ditto.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16433 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 23:54:48 +00:00
Jean-Marc Lasgouttes
ec4ff5e1a8 New textclass
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16428 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 13:40:50 +00:00
Michael Schmitt
515616a914 * scons/SConstruct: fix manifest on Windows
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16382 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-23 09:09:10 +00:00
Bo Peng
0dadb5c0ff Scons: do not subst %var%, as I am told that they are changed to @var@
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16367 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-21 15:21:30 +00:00
Bo Peng
d99334d73b Scons: fix a newly introduced qt4 CCFLAGS bug
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16343 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 01:32:43 +00:00
Bo Peng
356fb608ed Scons: allow shared boost libraries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16342 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 20:39:00 +00:00
Bo Peng
e75d65a829 Scons: clear separation of env and frontend_env (a major reshuffling)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16341 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 18:32:55 +00:00
Bo Peng
71ed7ab328 Scons: do not print warnings when checking boost libraries
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16339 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 15:48:40 +00:00
Bo Peng
d78a76a6ee Scons: handle the case when qt4 is in system directories
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16338 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 15:44:39 +00:00
Bo Peng
c1a5770979 Scons: remove boost 1.33.1 support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16328 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 23:27:33 +00:00
Bo Peng
cd43719f96 Scons: load qt4 module with debug=False when the debug library is not available; modify boost/check warning message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16323 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 15:30:50 +00:00
Edwin Leuven
e3241cca0a * add Rrightarrow.xpm to scons & automake
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16317 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-17 17:46:47 +00:00
Bo Peng
39186319da Scons: support boost 1.34
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16305 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 23:31:15 +00:00
Bo Peng
016d529945 Scons: test for the availability of debug version of qt libraries before linking to them
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16304 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 20:16:34 +00:00
Bo Peng
3023f93593 Scons: can now be executed from any directory
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16303 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-16 16:31:28 +00:00
Bo Peng
f5599ea253 Scons: print error message when scons is not called from top source directory or development/scons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16292 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 21:38:55 +00:00
Bo Peng
48a83e978d Scons: use /path/to/qt/QtCore explicitly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16267 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 16:28:40 +00:00
Bo Peng
d213175b85 Scons: add support for QtCore in support (and tex2lyx and client)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16261 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-13 04:55:41 +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
Georg Baum
2b6f6ed84f Add UpdateFlags.h to the build systems.
Add licence info to UpdateFlags.h.
Note to the author of UpdateFlags.h: Please fix the author information,
I don't know who wrote this file because not everybody used his own account.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16012 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-22 20:13:02 +00:00