Commit Graph

9778 Commits

Author SHA1 Message Date
Enrico Forestieri
c1d417fa65 Fix crash with PageDown/Up when the next/previous paragraph is an inset taller
than the workarea.

	* src/text3.C
	(cursorPrevious): use cur.dispatch(FuncRequest(LFUN_UP)) instead of
	cursorUp(cur).
	(cursorNext): ditto for cur.dispatch(FuncRequest(LFUN_DOWN)) vs
	cursorDown(cur).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16225 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 02:43:28 +00:00
Enrico Forestieri
2800f35900 Cache width, ascent, and descent font metrics as their calculation may be
really expensive on some platforms.

	* src/frontends/qt2/qfont_loader.[Ch]
	(QLFontInfo::width): rename WidthCache as MetricsCache.
	(QLFontInfo::ascent,QLFontInfo::descent): new, return (possibly cached)
	ascent/descent values.

	* src/frontends/qt2/qfont_loader.h:
	implement cache for ascent/descent values in the QLFontInfo class.

	* src/frontends/qt2/qfont_metrics.C
	(ascent, descent): use the corresponding methods in QLFontInfo class.
	Remove support for obsolete Qt/Win 3.2.1nc.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16224 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 02:25:05 +00:00
Jürgen Spitzmüller
2a436e855d * paragraph.C (startTeXParams, endTeXParams):
reset column count after linebreak.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16208 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-08 17:56:47 +00:00
Georg Baum
2c746320d2 * src/tex2lyx/text.C
(known_quotes): Fix typo (found by Charles de Miramon)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16204 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-07 17:12:11 +00:00
Jürgen Spitzmüller
9b6a039a6b * src/paragraph.C (corrected_env, endTeXParams):
- writeout \begin and \end alignment tags on their own lines (bug 3010).
(patch from Gregor Gorjanc and me).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16163 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-04 07:24:58 +00:00
Jürgen Spitzmüller
54950e4322 * lib/layouts/amsart.layout:
- reenable Address paragraph style to fix bug 2890
	  (as discussed on bugzilla)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16161 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-03 15:41:32 +00:00
Joost Verburg
859e121079 support for direct debug output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16084 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 22:56:56 +00:00
Georg Baum
ee631de7c6 ifpdf update and small grammar and spelling fixes by John C. McCabe-Dansted
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16082 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 18:29:15 +00:00
Joost Verburg
4dbd8bcdd2 GPL Ghostscript
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16078 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 16:25:12 +00:00
Jürgen Spitzmüller
369103a08b * status.14x: fix typo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16074 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 14:42:27 +00:00
Jürgen Spitzmüller
03b1717723 * src/insets/insettabular.C (doDispatch): do not reset cursor/selection
if we have selected some cells (bug 2715).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16073 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-27 14:37:58 +00:00
Jean-Marc Lasgouttes
038e11dbc3 * languages: use nb_NO instead of no_NO for norwegian (bug 2850).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16025 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-24 10:56:54 +00:00
Jean-Marc Lasgouttes
0ca363faee this got forgotten somehow
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16024 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-24 10:53:29 +00:00
Enrico Forestieri
0a904d7ea1 Was forgetting this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16023 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-24 06:11:11 +00:00
Enrico Forestieri
693d3167f4 Fix compatibility to autoconf 2.60
* configure.ac:
	Fix up expansion of ${prefix} in ${pkgdatadir}.

	* autogen.sh:
	Allow using autoconf 2.60 and 2.60a.

	* intl/Makefile.in:
	* po/Makefile.in.in:
	Add datarootdir definition.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16022 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-24 01:18:11 +00:00
Jean-Marc Lasgouttes
43cb1d2357 * text.C (Delete): when deleting a text inset in change-tracking
mode, make the cursor jump over it; avoid crash in setCursorIntern
	by using the right LyXText.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16002 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-20 18:48:08 +00:00
Enrico Forestieri
2666ba7c20 Small tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15986 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-19 15:22:38 +00:00
Georg Baum
3be8ab0929 Fix bug 2982 (two undo steps are needed to undo inset-dissolve)
* src/CutAndPaste.C
	(pasteParagraphList): Don't record undo info here...
	(pasteSelection): ... but here ...

	* src/BufferView_pimpl.C
	(BufferView::Pimpl::menuInsertLyXFile): ... and here instead


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15962 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 20:45:35 +00:00
Georg Baum
c4b59fab79 Add button for default layout to the 'extra' toolbar
* src/text3.C
	(LyXText::dispatch): An empty argument of LFUN_LAYOUT is now allowd
	and means the default layout of the text class

	* lib/images/layout.xpm: New image for default layout

	* lib/Makefile.am: Add new file
	* development/scons/scons_manifest.py: ditto

	* lib/ui/stdtoolbars.ui: Add "Deafult" layout button to the extra toolbar


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15953 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 09:56:34 +00:00
Georg Baum
c904b9aa0c Fix bug 2393 (from Dov Feldstern)
* src/lyxtext.h
	* src/text.C
	(LyXText::charsTranspose): New method for transposing characters

	* src/text.C
	(LyXText::dispatch): Call charsTranspose for LFUN_CHARS_TRANSPOSE


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15952 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-17 09:34:31 +00:00
Enrico Forestieri
0698a90dd4 Fix compatibility with python 2.2.x
* lib/configure.py:
	Add compatibility code for booleans and use True and False
	instead of 'true' and 'false'

	* lib/scripts/lyxpreview_tools.py:
	* lib/scripts/fig_copy.py:
	* lib/scripts/TeXFiles.py:
	Fix typo and make code compatible also with python versions
	greater than 2.2.0


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15947 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-16 10:23:34 +00:00
Enrico Forestieri
0f641c9a84 Fix dtl tools detection. A non-empty variable is always true in python,
even if its value is false...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15911 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 19:29:17 +00:00
Georg Baum
0914aa347e Fix bug 2789 (as discussed)
* src/mathed/math_hullinset.C
	(MathHullInset::doDispatch): move code for ref insert to MathNestInset 
	(MathHullInset::getStatus): move code for ref insert to MathNestInset

	* src/mathed/math_nestinset.C
	(MathNestInset::doDispatch): move code from MathHullInset here
	(MathNestInset::getStatus): move code from MathHullInset here


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15901 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 14:25:55 +00:00
Jean-Marc Lasgouttes
c9b04ce446 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15900 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 14:24:00 +00:00
Jean-Marc Lasgouttes
89c07cb10b update FSF address
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15898 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 14:19:08 +00:00
Jean-Marc Lasgouttes
1f2e71d57d update Italian UserGuide
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15895 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 10:03:34 +00:00
Jean-Marc Lasgouttes
b742206cee forgot that
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15894 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-13 10:03:01 +00:00
Enrico Forestieri
9d46ada90a Check only once for dtl tools in configure.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15892 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-12 21:59:19 +00:00
Georg Baum
5b8d08adef Revert revision 14802.
* src/mathed/math_scriptinset.C
	(MathScriptInset::write): Do not add braces to the nucleus

	* src/mathed/math_parser.C
	(Parser::parse1): Do not remove brace insets from the nucleus of
	script insets

	* src/mathed/math_nestinset.C
	(MathNestInset::script): ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15861 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-11 15:50:31 +00:00
Jean-Marc Lasgouttes
f0575463d0 * dociterator.C (forwardPar): remove debug code.
(forwardInset): speed up (like forwardPar).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15847 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-10 23:31:02 +00:00
Martin Vermeer
05b14cc357 * src/toc.C
(outline): Fix undo bug in TOC navigation



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15836 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-10 11:37:41 +00:00
Jean-Marc Lasgouttes
efdad3111b * bind/menus.bind: digits may need the shift modifier (on french
kbd for example).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15829 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 15:44:17 +00:00
Jean-Marc Lasgouttes
da4fe3c7b2 update from Ran Rutenberg
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15827 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 15:17:35 +00:00
Jean-Marc Lasgouttes
ba70b87ed6 * src/insets/insetbox.C (InsetBox::doDispatch): remove annoying debug message
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15823 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-09 14:46:20 +00:00
Joost Verburg
52f7be199d move compressor setting to lyx.nsi because it should not apply to scripts that include the settings file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15775 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 22:14:38 +00:00
Joost Verburg
cae9a14cce * Custom NSIS plug-ins will be included in the dependency packages
* New Console plug-in with support for restricted users
* Warning message if no PDF viewer is installed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15772 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 21:48:00 +00:00
Jean-Marc Lasgouttes
77bfc3a011 * MenuBackend.C (expandToc2, expandToc): add a view argument in
order to disable correctly the entries when needed.

	* lyxfunc.C (dispatch): update menus and toolbars here
	(getStatus): only honor LyXView::hasFocus when command originates
	from a menu (bug 2877)

	* funcrequest.h: split the UI enum value into TOOLBAR and MENU.

	* lyxfunc.C (sendDispatchMessage): 
	* MenuBackend.C (MenuItem): 
	* ToolbarBackend.C (add): 
	* frontends/qt2/Toolbars.C (layoutSelected): adapt to the change above.

	* frontends/qt2/QtView.C (hasFocus): return a correct value now (and fix bug 1720).

-This line, and those below, will be ignored--

M    src/ChangeLog
M    src/lyxfunc.C
M    src/frontends/Toolbars.C
M    src/frontends/qt2/ChangeLog
M    src/frontends/qt2/QtView.C
M    src/frontends/ChangeLog
M    src/funcrequest.h
M    src/MenuBackend.C
M    src/ToolbarBackend.C
M    status.14x


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15768 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 15:34:58 +00:00
Joost Verburg
89cd37d5e5 fix for installation by restricted users
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15761 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-05 22:37:27 +00:00
Joost Verburg
289b4415bf i18n improvements:
* More space on installer dialogs
* Shortened a few texts
* Set default LyX language to English if the OS language is not supported
* Corrected text on viewer download dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15759 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-05 20:48:51 +00:00
Joost Verburg
0845eb281c store temporary PDF files outside the LyX tmpbuf to prevent file locking problems when LyX is closed while Adobe Reader is still open
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15741 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-04 23:05:32 +00:00
Joost Verburg
18ab6a8983 corrected Aiksaurus data directory
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15733 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-04 14:17:37 +00:00
Joost Verburg
757e85340c language names
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15694 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-02 22:25:39 +00:00
Joost Verburg
f45340ef24 plug-in for HTTP/FTP downloads
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15686 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 23:05:24 +00:00
Joost Verburg
89f92ec00b Improved spell checking on Windows:
* New dictionary installers on ftp.lyx.org. Arabic is now also supported.
* Added support for FTP downloads to the installer.
* Independent registry settings for all Aspell directories.
* Better backwards compatibility with older Aspell installations.
* Improved multi-user installation of Aspell on Windows 2000/XP.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15683 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 22:56:08 +00:00
Georg Baum
1e54cf76a4 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15669 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:12:11 +00:00
Georg Baum
438b6cbf18 Fix invalid help documents: s/\\color default/\\color inherit/
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15667 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 15:01:07 +00:00
Georg Baum
b415929e67 Add beamer.layout and example document
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15659 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 11:53:57 +00:00
Michael Schmitt
442b9c271e * status.14x:
* po/ChangeLog:
        * po/de.po: update German localization


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15658 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 10:53:13 +00:00
Georg Baum
93d5d41c24 Fix generation of invalid LyX files
* src/lyxfont.C
	(LyXFont::lyxWriteChanges): Don't change color "inherit" to
	"default", since that cannot be read in.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15655 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-01 09:46:14 +00:00
Martin Vermeer
163bfbfcf8 Added note to status.14x on tabs removal from layout2layout.py
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15631 a592a061-630c-0410-9148-cb99ea01b6c8
2006-10-31 07:32:58 +00:00