Commit Graph

365 Commits

Author SHA1 Message Date
Bo Peng
b38d22d2e7 SCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also fix a CXX_GLOBAL_CSTD bug (not quite sure)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19693 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-21 16:46: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
Richard Heck
cd772c60a5 Biblio.{h,cpp} --> BiblioInfo.{h,cpp}
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19660 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 17:04:36 +00:00
Richard Heck
b3bff4232a Improvements to the citation dialog UI. It is now possible to search particular fields (author, title, etc) and to filter keys by entry types (article, book, etc).
The changes are essentially of three types. 

First, the std::maps previously used here for storing BibTeX data have become full-fledged classes and so what were previously just a bunch of functions have now become methods of these new  classes. This leads to a lot of minor changes in other files, to adapt to the  new signature. The changes in insets/ are mostly of this kind.

Second, there are some slightly more substantial changes in src/insets/InsetBibtex.cpp. We now store lists of the field names and entry types that have been used.

Finally, there are the changes to the citation UI. These are mostly straightforward, though adding the new functionality exposed some inadequacies in the previous code that also had to be fixed.

One other change: BibTeX keys are now docstring. This solves some Unicode issues.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19657 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-20 16:30:02 +00:00
Bo Peng
84ce8a0882 Scons: distribute missing layout file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19615 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-17 04:17:01 +00:00
Richard Heck
5bb22d9498 Re-write of the BibTeX representation. The main change is that we now have
a structure representing field->value instead of just a single string with
all the data. The data structures are defined in src/Biblio_typedefs.h, and
the main changes are to the parser code in src/insets/InsetBibtex.cpp.

-src/Biblio_typedefs.h
 Contains typedefs for new representation. Separating them out limits how much 
 gets #include'd by other files, and also resolves a circularity problem with
 Buffer.h.

-src/Biblio.{h,cpp}
 Signature changes and massive simplifications to routines that report
 BibTeX data, since we now have an articulate representation.

-src/insets/InsetBibtex.{h,cpp}
 Re-write the parser code so we store a key->value map of the BibTeX data
 rather than just one long string. This is the main work.

-src/frontends/controllers/ControlCitation.{h,cpp}
-src/insets/InsetBibitem.{h,cpp}
-src/insets/InsetCitation.cpp
 Adaptations and simplifications.

-src/insets/Inset.h
-src/Buffer.{h,cpp}
-src/insets/InsetInclude.{h,cpp}
 Signature changes.

-src/Makefile.am
-development/scons/scons_manifest.py
 Add src/Biblio_typedefs.h


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19598 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-16 01:59:20 +00:00
Richard Heck
8a221dc70c Move the lyx::biblio namespace into src/. Also make changes to how the BibTeX
information is acquired. This involves (i) moving the bulk of fillWithBibKeys() 
into Biblio.cpp, (ii) introducing a virtual method Inset::fillWithBibKeys() that,
by default, does nothing, and (iii) over-riding this method in the insets that do
need to do something.

This is all preparatory for a more substantial re-working of the BibTex code,
which should follow shortly.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19565 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-14 16:50:51 +00:00
Bo Peng
9f77f2a39a fix scons, telling scons how to moc files is still needed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19541 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-14 05:02:50 +00:00
Bo Peng
60d63985b7 fix scons for Andre's LYX_DATE changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19508 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 15:46:33 +00:00
André Pönitz
77cfe019f2 remove special handling of version.cpp[.in]
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19497 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 12:04:57 +00:00
André Pönitz
ccf0557869 std::count is now assumed to exist, remove the check for it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19496 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 07:25:40 +00:00
Bo Peng
cd4ef66755 fix scons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19491 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 03:19:57 +00:00
Uwe Stöhr
278838409b lib/doc/clipart: Add two new images for the Userguide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19490 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-13 01:35:48 +00:00
Jean-Marc Lasgouttes
2a3cfcec5e the file has been removed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19436 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 20:58:38 +00:00
André Pönitz
d9af2acb53 make scons cope with renamed ui_*.h
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19426 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 11:24:17 +00:00
Uwe Stöhr
5564407c2c UserGuide.lyx updates: - Finish the descriptions of the bibliography and the document settings dialog
- add a BibTeX bibliography

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19415 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-11 01:20:33 +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
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
Uwe Stöhr
a1687b08aa UserGuide.lyx: complete revision to bring it up to date:
- correct menu names
- add descriptions about index generation, font and graphic formats - to tell only examples

The document is ready except of the outliner and note descriptions.

The description of LyX's menus (Appendix A), and the preferences dialog (Appendix B) will be completed step by step, hopefully with some help.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19389 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-10 01:32:55 +00:00
Bo Peng
f3c3b9bf02 fix scons for gettext upgrade
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19362 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-08 02:14:57 +00:00
Bo Peng
491a2dbfc4 Remind scons users to check config.log when configure fails
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19340 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-06 16:03:17 +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
Jürgen Spitzmüller
2a875336c0 * lib/Makefile.am:
* development/scons/scons_manifest.py:
	- add apa template.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19247 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-31 04:46:09 +00:00
Bo Peng
b05462ce3b SCons: allow linking SConstruct to lyx top source directory because I am tired of typing development/scons/SConstrct again and again
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19243 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-30 15:46:19 +00:00
Jürgen Spitzmüller
c3d9485c5a * configure.ac:
* development/cmake/config.h.cmake:
* development/scons/SConstruct:
	- fix casing of __FreeBSD__ macro, also check for __FreeBSD_kernel__
	  (fixes bug 3537)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19066 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-13 14:21:50 +00:00
Jean-Marc Lasgouttes
0ffdae7651 Rename development/cmake/README.cmake to INSTALL.cmake
Actually distribute the cmake files with LyX.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19034 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-11 07:27:56 +00:00
Bo Peng
08f31f3e64 Scons: check for windows.h under msvc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18981 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-04 05:06:44 +00:00
Bo Peng
2f415fd505 scons: fix last commit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18978 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-03 20:20:20 +00:00
Bo Peng
6df40c7ebe scons: embed lyx.exe.manifest to lyx.exe, no longer use qt manifest.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18977 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-03 20:16:11 +00:00
Uwe Stöhr
208a64d292 installer: support for the Chinese menu language translations
scons/scons_manifest.py: add the new Chinese .po files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18938 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-29 00:14:50 +00:00
José Matox
2e5099b230 Update scons to the latest FreeBSD patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18914 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-27 18:17:29 +00:00
Bo Peng
6c5ff3bf46 scons part of bug 3527
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18895 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-26 16:28:27 +00:00
Uwe Stöhr
dc56f010db New German EmbeddedObjects manual
Part 2: the documents

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18877 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-25 00:57:19 +00:00
Uwe Stöhr
5f614b008a New German EmbeddedObjects manual
Part 1: the images

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18872 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-23 12:30:03 +00:00
Jürgen Spitzmüller
91c6d03678 Fix bug 2520: Make InsetExternal translateable
* po/lyx_pot.py:
	- new function external_l10n: parse external_templates and extract the relevant parts for translation.
* development/scons/SConstruct:
* po/Makefile.in.in:
	- use external_l10n

* src/insets/InsetExternal.cpp:
* src/frontends/qt4/QExternal.cpp: 
	- make eveything translatable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18866 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-23 07:50:13 +00:00
Uwe Stöhr
58c9d5fd70 Add keymap file for Farsi, provided by Mostafa
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18861 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-22 22:41:45 +00:00
Bo Peng
44f31e00f2 add closetab.xpm to scons_manifest.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18843 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-21 14:58:31 +00:00
Bo Peng
9907aaf295 fix installer manifest
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18832 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-19 19:26:53 +00:00
Bo Peng
cdc5ab6a83 add installer files to scons_manifest so that installers can depends on installer files
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18831 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-19 18:44:42 +00:00
Richard Heck
954be90e11 Make HTML export work.
The key is the new copier script lib/scripts/ext_copy.py. Usage:
 ext_copy.py [-e ext1,ext2,...] <from file> <to file>
Given a <from file> and <to file>, it will copy all files in the directory 
in which from_file is found that have the extensions given in the -e option, 
or all files in that directory if no such argument is given. So, for example, 
we can do:
  python ext_copy.py -e png,html,css /path/from/file.html /path/to/file.html
and all html, png, and css files in /path/from/ will be copied to the 
(possibly new) directory /path/to/file.html.LyXconv/. The -t option determines 
the extension added to the output filename passed to the script ($$o, in the
copier definition), the default being "LyXconv". If just . is given, then no 
extension is added.

Other changes:
* configure.py: added appropriate copier definitions for html and wordhtml
formats, as well as for the Program pseudo-format.
* lib/Makefile.am and development/scons/scons_manifest.py: add ext_copy.py.
* lib/doc/Customization.lyx: update documentation.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18791 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-15 17:02:35 +00:00
Uwe Stöhr
fddca82d95 add layout and template for iopart
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18745 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-12 01:09:49 +00:00
Edwin Leuven
7aa51095d2 update functions.xpm and add to scons_manifest.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18719 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-08 14:48:44 +00:00
Edwin Leuven
9831f407f1 add varrho, patch from hzluo <memcache@gmail.com>
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18697 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 12:45:11 +00:00
Uwe Stöhr
bd380926a0 - add Farsi splash.lyx
- reordering SCons entries

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18685 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-05 21:31:39 +00:00
Uwe Stöhr
d9c6ede4cc declarate zh.po to SCons
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18673 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-04 21:18:21 +00:00
Jean-Marc Lasgouttes
43547cd11d Add Korean l10n from cghan
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18596 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-31 14:35:38 +00:00
Bo Peng
3dc11ec08e Scons: check HAVE_DECL_MKSTEMP to fix a configuration error with gcc4 on Linux
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18587 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-31 01:34:33 +00:00
Uwe Stöhr
64e0eee0dd fix SCons (I forgot to add the new folder two days ago)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18551 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-28 23:24:18 +00:00
Uwe Stöhr
9dc3309c90 UserGuide: - German translation updates by Hartmut
- new Image for the German Userguide

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18534 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-27 14:19:36 +00:00
Uwe Stöhr
72586d2c03 update build system after changeset 18478
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18481 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-23 23:55:52 +00:00