Commit Graph

98 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
1a5e8321f1 revert r13837
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13839 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-12 14:54:05 +00:00
Jürgen Spitzmüller
85d1dca82f document fix for bug 2380.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13837 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-12 13:58:40 +00:00
Jean-Marc Lasgouttes
e959fdfae4 * src/lyx_main.C (init): call queryUserLyXDir just after reading
lyxrc.dist, but before reading lyxrc.defaults; add extra_prefix to
	the PATH before reconfiguring.
	(needsUpdate): new helper function; returns true if file does not
	exist or is older than configure.py.
	(queryUserLyXDir): check textclass.lst and packages.lst in
	addition to lyxrc.defaults.
	(reconfigureUserLyXDir): use SystemCall, since system() does not
	wait on windows.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13815 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-09 15:41:08 +00:00
José Matox
e76a0f1f6c Add status.14x entry related to template and examples file format update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13800 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-05 11:06:41 +00:00
Jean-Marc Lasgouttes
b3b0afb77e * src/lyx_main.C (readRcFile): do not report an error if file is not
found. 
	(init): read lyxrc.dist before lyxrc.defaults; remove code to read
	lyxrc (LyX 1.1.5 compatibility code).

	* src/encoding.C (read): 
	* src/language.C (read): set debug to the INFO channel.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13790 a592a061-630c-0410-9148-cb99ea01b6c8
2006-05-02 13:44:19 +00:00
Jürgen Spitzmüller
6573ea27bc Much better performance when using natbib (bug 2460):
* src/BufferView_pimpl.C
	(bool BufferView::Pimpl::dispatch): update bibfiles cache after adding or
	deleting a bib database
* src/buffer.C
	(bool Buffer::readDocument): update bibfiles cache after the document 
	was read
* src/buffer.[Ch]
	(void Buffer::updateBibfilesCache): new method to build or update a cached
	vector with all used bibtex databases. 
	(void Buffer::getBibfilesCache): new method that returns the actual cache.
	(Buffer * Buffer::getMasterBuffer): new (non-const) method to get the buffer 
	of the master document

* src/insets/insetbibtex.C
	(void InsetBibtex::doDispatch): update the bibfiles cache after the inset has
	been modified.
* src/insets/insetinclude.C.
	(void Insetinclude::doDispatch): update the bibfiles cache after the inset 
	has Been modified.
* src/insets/insetinclude.[Ch]:
	(void Insetinclude::updateBibfilesCache): new method to build or update 
	a cached vector with all used bibtex databases. 
	(void Insetinclude::getBibfilesCache): new method that returns the actual 
	cache.
* src/insets/insetcite.C
	(string const getNatbibLabel): store a map of timestamps for all used bibtex 
	files (buffer's bibfiles cache) and rebuild the list of keys only if the timestamps
	or the list of files have changed. This is the actual performance boost. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13782 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 17:50:49 +00:00
Jean-Marc Lasgouttes
03b848f567 Remove USE_COMPRESSION and force the use of zlib, by Bo Peng (ben.bob@gmail.com)
* src/lyxlex_pimpl.[hC], src/buffer.C, src/tex2lyx/Makefile.am: remove USE_COMPRESSION
	* configure.ac: check for zlib.h and libz.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13780 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 16:35:50 +00:00
Jean-Marc Lasgouttes
25f1d0553f Add document->compressed menu item, by Bo Peng (ben.bob@gmail.com)
* src/LyXAction.C, src/lfuns.h: add LFUN_TOGGLE_COMPRESSION
	* src/BufferView_pimpl.C: react to menu item
	* lib/ui/stdmenus.ui: add buffer_toggle_compression



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13779 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-28 16:29:45 +00:00
Jean-Marc Lasgouttes
9d509572db * src/support/package.C.in (get_build_dirs): Look at Makefile
instead of lyxrc.defaults. Simplify the check for
          chkconfig.ltx.

	* configure.ac: do not run lib/configure.py

	* lib/doc/Makefile.am: LaTeXConfig.lyx is not generated anymore.

	* lib/configure.py (removeExtraFiles): remove.

	* lib/Makefile.am: no files are generated in there.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13764 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 16:47:07 +00:00
Jean-Marc Lasgouttes
83e0fdf99b update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13762 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 13:07:23 +00:00
Georg Baum
a3123b4c4a * lib/layouts/IEEEtran.layout: Add biographynophoto style
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13756 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 07:35:50 +00:00
Georg Baum
a3b23f1f94 Fix bug 2546:
* src/tex2lyx/text.C
	(parse_arguments): Eat space in front of required arguments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13754 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-27 06:59:06 +00:00
Jean-Marc Lasgouttes
2a156525f9 * text.C (numberOfHfills): do not forget to count the last hfill
(bug 2509).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13749 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 13:42:19 +00:00
Georg Baum
7e9bd4bd81 Fix bug 2107:
* src/LaTeXFeatures.[Ch]: replace nice_ by runparams_

        * src/insets/insetexternal.C
        (InsetExternal::validate): Use the correct template for the desired
        output format

        * src/insets/insetgraphics.C
        (InsetGraphics::prepareFile): Record the needed files for "latex"
        or "pdflatex" format, dependant on the desired output format

        * src/insets/insetinclude.C
        (InsetInclude::latex): ditto

        * src/BufferView_pimpl.C
        (BufferView::Pimpl::getStatus): adapt to LaTeXFeatures changes

        * src/paragraph_pimpl.C
        (Paragraph::Pimpl::simpleTeXSpecialC): ditto

        * src/buffer.C
        (Buffer::makeLaTeXFile): ditto
        (Buffer::makeLinuxDocFile): ditto
        (Buffer::makeDocBookFile): ditto

        * src/paragraph.C
        (Paragraph::simpleTeXOnePar): ditto

        * src/exporter.C
        (Backends): Add "pdflatex" backend format
        (Exporter::Export): set runparams.flavor correctly for "pdflatex" format

        * lib/external_templates
        (RasterImage): Use "pdflatex" format in PDFLaTeX template
        (XFig): ditto
        (ChessDiagram): Add PDFLaTeX template
        (Date): ditto

        * lib/configure.py: Add "pdflatex" format


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13745 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 11:44:26 +00:00
Georg Baum
47d49731a4 From Angus:
Enable lib/configure.py to find tex2lyx if the path to it contains spaces.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13742 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-26 07:34:21 +00:00
Georg Baum
74efa7cd1a Use lib/configure.py and ditch the m4 version
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13740 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-25 14:57:08 +00:00
Georg Baum
735707cc5e * src/LaTeX.C
(LaTeX::scanLogFile): remove \0 characters inserted by MikTeX before
	further processing
	(LaTeX::deplog): likewise


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13738 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-25 10:12:08 +00:00
Jean-Marc Lasgouttes
46173d31e5 add support for naustrian; fix locale for austrian
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13725 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 12:21:05 +00:00
Jürgen Spitzmüller
9e40cf69f7 Don't jump back to cursor on inset clicking (bug 2426):
* src/insets/insetcollapsable.C
	(void InsetCollapsable::doDispatch): undispatch cursor after lmb button click.
* src/insets/insettabular.C
	(void InsetTabular::doDispatch):  undispatch cursor after rmb click.
* src/insets/insetref.C
	(void InsetRef::doDispatch):  undispatch cursor after rmb click.
* src/text3.C
	(void LyXText::dispatch): set cursor also after rmb click.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13724 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 10:43:49 +00:00
Georg Baum
5a755b4e1e Fix bug 2285 (tex2lyx is not found by lib/configure when compiling with
--with-version-suffix):

        * src/lyx_cb.C
        (reconfigure): get the configure command from package()

        * src/lyx_main.C
        (showFileError): ditto

        * src/support/package.[Ch]
        (configure_command): new, return the configure command

        * src/support/package.C.in
        (with_version_suffix): new, return the version suffix argument
        of the configure command

        * src/support/Makefile.am
        (package.C.in): substitute %PROGRAM_SUFFIX% in package.C.in

        * config/lyxinclude.m4: substitute program_suffix


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13723 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 10:28:27 +00:00
Jean-Marc Lasgouttes
dc67ce04e3 German documentation update (again)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13722 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 09:49:47 +00:00
Jean-Marc Lasgouttes
621394e5aa Hungarian documentation and localization update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13717 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-24 09:26:10 +00:00
Georg Baum
1fe1dae34d Fix bug 2476:
* src/CutAndPaste.C
        (resetOwnerAndChanges): rename to resetParagraph and reset the
        language of ERT paragraphs, too
        (copySelectionHelper): adapt to changes above
        (cutSelection): ditto
        (copySelection): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13703 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-20 16:34:50 +00:00
Martin Vermeer
493b4ee28a Add two fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13701 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-20 13:45:06 +00:00
Jürgen Spitzmüller
a89da87da8 * src/LaTeXFeatures.C
(char const * simplefeatures[]): add tipa

        * src/mathed/math_fontinset.C
        (void MathFontInset::validate): textipa requires tipa


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13678 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-14 14:40:16 +00:00
Jean-Marc Lasgouttes
db644a7fb2 update german userguide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13669 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 17:52:46 +00:00
Jürgen Spitzmüller
c0aadd8443 * src/paragraph.h (public): new enum ChangeTracking,
indicating if ct is used in the current buffer.
	(cleanChanges): pass enum ChangeTracking.

        * src/paragraph_pimpl.C (cleanChanges): delete ct marks from
	paste content if ct is of in the buffer. Set content INSERTED
	if ct is on (bug 2207).

        * src/CutAndPaste.C (pasteSelectionHelper): pass information 
	about the current change tracking state to cleanChanges.

        * src/paragraph_pimpl.h (cleanChanges): pass enum ChangeTracking.

        * src/paragraph.C (cleanChanges): pass enum ChangeTracking.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13667 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 16:49:24 +00:00
Jürgen Spitzmüller
86b7e5701b * src/insets/insettabular (doDispatch): use insertAsciiString in
LFUN_PASTESELECTION. Simplifies the code a lot and fixes 
	wrong language settings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13664 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 13:29:16 +00:00
Jean-Marc Lasgouttes
2fb3b40d87 * math_xarrowinset.C (validate):
* math_splitinset.C (validate): new methods; require amsmath (bug
	2149).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13661 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 10:30:28 +00:00
Georg Baum
7d91f9f96e * lib/scripts/layout2layout.py
(convert): Change "LabelType Static" to "LabelType Itemize" for
	itemize environments
	(convert): Change "LabelType Counter_EnumI" to "LabelType Enumerate"
	for enumerate environments


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13660 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-13 09:10:40 +00:00
Jean-Marc Lasgouttes
add226478a add header <sys/time.h> for DragonFly BSD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13654 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-12 09:37:33 +00:00
Georg Baum
0efa19f72a fix bug 2036:
* src/mathed/math_amsarrayinset.C
	(metrics): use ArrayChanger to change the style
	(draw): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13653 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-12 07:42:50 +00:00
Jean-Marc Lasgouttes
cf3bcb2d9c fix compilation for win98
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13650 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 15:21:21 +00:00
Jean-Marc Lasgouttes
a577fcdbaf begin work on 1.4.2svn
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13649 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 14:58:27 +00:00
Jean-Marc Lasgouttes
fa3308aaaf ready for 1.4.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13638 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 08:56:24 +00:00
Jean-Marc Lasgouttes
4da500315e update Spanish localization
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13631 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 07:12:05 +00:00
Jean-Marc Lasgouttes
88aee1018c reorganize a bit
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13630 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-11 06:50:30 +00:00
Martin Vermeer
90eee39411 Updated status.14x
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13629 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-10 19:51:17 +00:00
Jean-Marc Lasgouttes
2927cd088b update Basque and Hungarian l10n
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13623 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-10 15:27:47 +00:00
José Matox
c06454317b Update status.14x to refer bug 2501 (old lyx-docbook document with SGML paragraphs).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13621 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-10 11:15:50 +00:00
Georg Baum
e0657f7f6e * src/insets/insetgraphics.C (prepareFile): output correct file name
of compressed files (bug 2231)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13597 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-08 10:35:01 +00:00
Jean-Marc Lasgouttes
2c87b34b34 import 1.3.7 translations, which were better
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13585 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-07 13:11:34 +00:00
Jean-Marc Lasgouttes
8ea0187fe5 update German Tutorial, Intro and splash
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13583 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-07 12:19:58 +00:00
Jean-Marc Lasgouttes
e7e314d40f document fancybox package
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13576 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-07 08:45:42 +00:00
Jean-Marc Lasgouttes
9c74d33b82 Fix mess up of internal/external paths (from Enrico Forestieri)
* src/frontends/qt2/QPrefs.C:
	(internal_path_list, external_path_list): Handle the PATH prefix
	style according to the user-prefs style.
	(QPrefs::apply, QPrefs::update_contents): fix inverted logic of
	rc.cygwin_path_fix

	* src/support/os.h: New declarations to deal with PATH lists.
	* src/support/os_cygwin.C: Major rewrite to account for path style
	problems.
	* src/support/os_unix.C:
	* src/support/os_win32.C: Stub functions for PATH lists.
	* src/support/environment.C: fix bug 2344: Wrong path_prefix handling
	in cygwin
	* src/support/filetools.C (ChangeExtension): fix for the path
	style to be written in .tex files (cygwin related).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13570 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 14:44:52 +00:00
Jean-Marc Lasgouttes
5adf6d5d58 Fix bug 2195: Slowness in rendering inside insets, especially
on the Mac

	Changes to the within-inset row rendering caching code.

	* insets/insetenv.h: 
	* insets/insetcollapsable.h: remove method
	* insets/insettabular.h:
	* insets/insetbase.h: rename, add methods
	* insets/insettext.[Ch]: rename method; add Tall()
	* paragraph_pimpl.C
	(Paragraph::Pimpl::simpleTeXSpecialC): rename call
	* mathed/math_hullinset.h: rename method
	* rowpainter.C
	(RowPainter::paintInset):
	(paintPar): remove isTrueTextInset, move to insets 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13568 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 12:06:37 +00:00
Jean-Marc Lasgouttes
b5d8f230a1 forgot that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13567 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-06 10:47:16 +00:00
Georg Baum
ebc0e7ef71 forgot the status update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13551 a592a061-630c-0410-9148-cb99ea01b6c8
2006-04-05 09:22:50 +00:00
Georg Baum
a3c2ea155d * lib/scripts/layout2layout.py
(concatenate_label): new, concatenate two labels in an intelligent way
	(convert): add the TocLevel for sectioning styles
	(convert): convert LabelString and StringAppendix for sectioning
	styles (append counter)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13538 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-31 14:15:43 +00:00
Jean-Marc Lasgouttes
7fac128691 * src/LaTeX.C
(handleFoundFile): do not add directories to dep table (crashes cygwin)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@13528 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-29 14:45:04 +00:00