Commit Graph

9855 Commits

Author SHA1 Message Date
Georg Baum
125e638bdb Fix bug 2868
* src/insets/insetgraphics.C
	(findTargetFormat): return pdf for vector graphics

	* src/format.h
	(Flags): new enum describing format flags
	(flags_): new member variable for format flags
	(vectorFormat): new, tell whether a format can contain vector graphics

	* src/format.C: adjust to flags changes

	* src/frontends/qt2QPrefsDialog.C
	(QPrefsDialog::QPrefsDialog): handle new vector flag
	(QPrefsDialog::switch_format): ditto
	(QPrefsDialog::updateFormatsButtons): ditto
	(QPrefsDialog::new_format): ditto
	(QPrefsDialog::modify_format): ditto

	* src/frontends/qt2/ui/QPrefFileformatsModule.ui
	(vectorCB): new checkbox for vector flag

	* src/lyxrc.C
	(LyXRC::read): read vector flag
	(LyXRC::write): write vector flag

	* lib/doc/Customization.lyx: document format flags

	* lib/configure.py
	(checkFormatEntries): Add vector flag to some formats


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16432 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 21:11:42 +00:00
Jean-Marc Lasgouttes
382e7201b0 * cursor.C (popRight): place cursor at the right spot:
notifyCursorLeaves may have killed the inset and put its contents
	at lower level (bug 2908)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16431 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 14:18:15 +00:00
Jean-Marc Lasgouttes
b37ba814ca new textclass (bug 2929)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16429 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 13:42:19 +00:00
Jean-Marc Lasgouttes
ce848ae52b * insetcollapsable.C (hasFixedWidth): new virtual method, returns
false by default.
	(metrics): do not set to openinlined if
	hasFixedWidth is true.

	* insetbox.C (hasFixedWidth): returns true if the box has a fixed
	width. 
	(metrics): use hasFixedWidth.
	



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16425 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 11:49:20 +00:00
Jean-Marc Lasgouttes
e4f1405c4e * math_nestinset.C (handleFont): avoid crash on undo when
suppressing a font inset (bug 3019).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16423 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-29 11:06:15 +00:00
Georg Baum
fb979f06cf Fix bug 2978 (inset-dissolve does not reset latex language)
* src/text.C
	(LyXText::dissolveInset): Reset language to buffer language if the
	dissolved inset is an ERT inset.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16412 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 10:45:33 +00:00
Georg Baum
654d891fce add new galician file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16410 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 09:07:23 +00:00
Georg Baum
280557cbd0 Fix the remaining bits of bug 2476
* src/paragraph.C
	(Paragraph::changeLanguage): Don't forget the dummy font change at
	the end of the paragraph when changing the language. This does not
	affect the other place where this code is used:
	Buffer::changeLanguage.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16409 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-28 08:09:28 +00:00
Jürgen Spitzmüller
fdb9f4d62f * src/mathed/math_nestinset.C (do_dispatch):
- catch LFUN_QUOTE and output plain quote (bug 3044).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16404 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 15:05:32 +00:00
Jean-Marc Lasgouttes
3bb0f423e3 understand Sweave special macros
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16402 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 12:08:26 +00:00
Jean-Marc Lasgouttes
9cd79c39c7 update German documentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16400 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 11:18:51 +00:00
Jean-Marc Lasgouttes
3172c91da4 new Galician tutorial; updated Intro
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16398 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 10:41:19 +00:00
Jean-Marc Lasgouttes
9a816ee379 Galician update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16396 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-27 10:25:52 +00:00
Bo Peng
e5fa228715 Scons: add qt translation flag
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16350 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 15:26:34 +00:00
Jean-Marc Lasgouttes
83ee897908 Add layout AltAffiliation ; add optional argument support for Author Email and
Author URL


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16346 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-20 14:08:36 +00:00
Jean-Marc Lasgouttes
d2061138de * insetcollapsable.C (doDispatch): do nothing on mouse release if
there is a selection.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16336 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 15:39:26 +00:00
Jean-Marc Lasgouttes
5053826965 boost works perfectly with gcc 4.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16329 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-19 06:33:29 +00:00
Jean-Marc Lasgouttes
273d4dd3c4 From Martin Vermeer:
* rowpainter.C (paintPar): do not use wide insets when the
	paragraph is centered or right-justified.

	* paragraph.C (getAlign): take in account LYX_ALIGN_LAYOUT if
	needed. 



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16321 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 15:17:49 +00:00
Jean-Marc Lasgouttes
5593aa5dd4 remove change tracking on file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16320 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-18 09:24:00 +00:00
Jean-Marc Lasgouttes
f90079cd11 update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16290 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 17:16:26 +00:00
Jean-Marc Lasgouttes
31540ed80f update from Claudio Coco
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16289 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 17:15:16 +00:00
Jean-Marc Lasgouttes
f800b0f284 update from alex
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16287 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-15 17:09:02 +00:00
Georg Baum
4e7e77962a * src/tex2lyx/text.C
(parse_text): Don't output a newline in front of an InsetLatexAccent
	(because InsetLatexAccent::write does does it neither)
	(parse_text): Don't create invalid code for \i{} and \j{}
	(parse_text): Handle \l{} and \L{}


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16255 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-12 19:03:44 +00:00
Jürgen Spitzmüller
1bf75e8fbe Oops, wrong version ...
* insettabular.C (doDispatch): call mouseSetCursor on mouse 
	click to ensure dEPM is triggered.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16244 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 16:47:48 +00:00
Jürgen Spitzmüller
4e51633adf * insettabular.C (doDispatch): call mouseSetCursor on mouse
click to ensure dEPM is triggered.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16243 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 16:46:19 +00:00
Jean-Marc Lasgouttes
3622f57986 update Hungarian l10n
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16242 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-11 14:46:02 +00:00
Enrico Forestieri
c39da92066 Autoconf 2.61 has been released, and it works with LyX
http://www.mail-archive.com/autotools-announce@gnu.org/msg00023.html

	* autogen.sh: allow for autoconf 2.61


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16238 a592a061-630c-0410-9148-cb99ea01b6c8
2006-12-10 23:08:24 +00:00
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