Commit Graph

7722 Commits

Author SHA1 Message Date
Jean-Marc Lasgouttes
c992173f4c * math_hullinset.C (MathHullInset): do not lose the preview when
copying formulas (bug 1486) [patch from Bo peng]



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@19011 a592a061-630c-0410-9148-cb99ea01b6c8
2007-07-09 10:33:27 +00:00
Jürgen Spitzmüller
e0e66da204 * src/Thesaurus.C:
- check for aiksaurus errors (fix bug 2691)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18700 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-07 17:31:08 +00:00
Jean-Marc Lasgouttes
8140cf0e4f set boundary when setting cursor with mouse (bug 3310)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18556 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-29 09:09:02 +00:00
Jürgen Spitzmüller
cbe15114c1 * src/text3.C: (specialChar): add missing recordUndo.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18398 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-18 06:06:13 +00:00
Jürgen Spitzmüller
1cbb6defc3 * src/mathed/mathnestinset.C: disallow insertion of specialchars (bug 3590).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18397 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-18 06:02:01 +00:00
Jürgen Spitzmüller
cd4de3a641 * src/lyxfunc.C (dispatch): assure math and tabular insets
are really not toggled	via ALL_INSETS_TOGGLE (fixes bug 3358).

status14x entry already exists.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18302 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-14 08:48:51 +00:00
Jürgen Spitzmüller
84e052f6f2 * src/lyxfunc.C (dispatch): do not attempt to toggle math insets
via ALL_INSETS_TOGGLE(partially fixes bug 3358).

Actually, I'm not sure what to write in status14, since lyx still asserts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@18278 a592a061-630c-0410-9148-cb99ea01b6c8
2007-05-12 11:53:26 +00:00
Uwe Stöhr
ad3c3b8b96 fix bug 3458 for LyX 1.4.5:
http://bugzilla.lyx.org/show_bug.cgi?id=3458

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17924 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-23 18:41:14 +00:00
Enrico Forestieri
7c47698c36 Fix gui for big delimiters
* src/mathed/math_biginset.C
	(MathBigInset::draw): don't remove backslash delimiter.
	(MathBigInset::isBigInsetDelim): add "\\" and "\slash" to
	the delimiters table.

	* src/mathed/math_support.C:
	add "\" and "slash" to the decoration table.

	* src/frontends/qt2/QDelimiterDialog.C
	(fix_name): fix handling of names.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17769 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 21:23:30 +00:00
Jürgen Spitzmüller
d9b649ea91 * src/text3.C (doDispatch):
- add missing undo call to LFUN_QUOTE
	  (fixes bug 3439).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17765 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-10 11:37:32 +00:00
Jean-Marc Lasgouttes
1f7dd754fd 2007-04-05 Richard Heck <rgheck@brown.edu>
* bufferparams.C (writeLaTeX): output lengths as LaTeX strings
	(useful for foo%) (bug 3416)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17737 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 21:18:35 +00:00
Jean-Marc Lasgouttes
b7b610c2cf * lyxlayout.C (Read): set labelstringappendix_ every time
labelstring is set (instead of using this value only as a
	fallback) (bug 3351)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17730 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-05 10:59:27 +00:00
Jean-Marc Lasgouttes
e5f880d050 2007-04-03 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* ExternalSupport.C (doSubstitution): redo the substitution with
	use_latex_path == false for the filename argument of $$Contents,
	since the original substitution might have been done with
	use_latex_path == true, and that can lead to escaped filenames
	that are only valid for TeX. (bug 3241)




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17705 a592a061-630c-0410-9148-cb99ea01b6c8
2007-04-03 08:46:30 +00:00
Jürgen Spitzmüller
3382c7d8bc * src/insets/insetcite: small correction to Martin's natbib fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17563 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-26 07:06:11 +00:00
Martin Vermeer
24a047a7e3 Missing changelogs from natbib/egs patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17492 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-20 19:29:46 +00:00
Martin Vermeer
5f0a608379 Get ProvidesNatbib working correctly, esp. for egs.layout.
* insetcite: call getEngine()
* bufferparams: move getEngine() here, and let it sense the provides(natbib) 
flag
* ControlBibtex, ControlCitation: correct getEngine() call
* biblio: remove old getEngine()



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17489 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-20 15:21:45 +00:00
Georg Baum
f138685953 Fix bug 3052
* src/tex2lyx/text.C
	(parse_noweb): Always start a new paragraph after a noweb code chunk


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17486 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-19 20:13:33 +00:00
Jean-Marc Lasgouttes
bdcffc0539 2007-03-19 Bernhard Roider <bernhard.roider@sonnenkinder.org>
* toc.C (outline): fix bug where moving the last section up in the
	toc dialog eats the new last paragraph. (bug 3303)




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17480 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-19 10:30:11 +00:00
Uwe Stöhr
7e3bfc6156 Fix bug 2458 also in 1.4.x.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17439 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-13 22:57:31 +00:00
Jean-Marc Lasgouttes
e7577ab67f * math_rootinset.C (metrics): fix computation of descent (bug 3295).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17434 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-13 10:45:54 +00:00
Jean-Marc Lasgouttes
2aa90ddc2b (From spitz@lyx.org)
* src/buffer.C (readHeader): reset custom bullets initially. Fixes 
	bug 3312.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17432 a592a061-630c-0410-9148-cb99ea01b6c8
2007-03-13 10:40:21 +00:00
Jean-Marc Lasgouttes
fba95df450 fix bug 3204
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17347 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-25 21:07:10 +00:00
Enrico Forestieri
96a6e50ceb Fix bug 3220
* src/insets/ExternalSupport.C
	(updateExternal): Avoid computing crc of a directory as this leads
	to a crash on Cygwin.

	* lib/configure.py:
	Use a python script to get the current date in order to avoid
	a stalling condition with the date command on Win32.

	* lib/scripts/date.py:
	New python script.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17177 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-13 23:20:29 +00:00
Georg Baum
8114643845 * src/insets/insetgraphics.C
(InsetGraphics::prepareFile): Use correct extension if it cannot be
	stripped. I overlooked this when I did the
	stripExtension -> stripExtensionIfPossible change in revision 10093.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@17121 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-09 08:42:26 +00:00
Uwe Stöhr
28c5bb870f fix bug 895
http://bugzilla.lyx.org/show_bug.cgi?id=895

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16993 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 20:52:24 +00:00
Jean-Marc Lasgouttes
5d11f7bea2 * buffer.C (readFile): reword error message when lyx2lyx fails.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16973 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 15:26:39 +00:00
Jean-Marc Lasgouttes
48d4b9f85b Fix bug 2186 (from G. Baum)
* insetbibtex.C (latex): copy the .bst files to the temp
	dir before running LaTeX, as is done for .bib files, graphics etc.
	(bug 2186)

	* insetgraphics.C (RemoveExtension): remove. The inset will use
	the version from filetools instead.

	* filetools.C (RemoveExtension): new function.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16972 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-31 15:01:03 +00:00
José Matox
559278fc0b Fix bug 2841
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16934 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 19:27:00 +00:00
Jean-Marc Lasgouttes
6e4f3afcac * text3.C (cursorPrevious, cursorNext): take the selection()
status of the cursor in account.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16928 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-29 14:49:26 +00:00
Georg Baum
0e56b37311 Merge rev 16079:
Fix crash in brutefind2() when the inset was not in the coordcache.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16831 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-24 10:37:29 +00:00
Georg Baum
52baa724b5 From Bernhard Roider:
* src/insets/insetexternal.C
	(InsetExternalParams::read): Read filenames with spaces correctly


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16806 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-22 10:38:37 +00:00
Jürgen Spitzmüller
4832786600 * QRef.C (updateRefs): remove recursive call to gotoRef()
(fixes bug 3063); backport from revision 16754.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16805 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-22 10:25:09 +00:00
Jean-Marc Lasgouttes
23c6d0089f * insetbranch.C (textString): implement, so that branches appear
in the ToC.

	* output_plaintext.C (asciiParagraph): output things in the right
	order when there is an inset and runparams.linelen == 0.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16764 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-19 16:16:28 +00:00
Jean-Marc Lasgouttes
6672307cdc * lyx_main.C (readUIFile): when reading an include file which name
ends in .ui, try the .inc version too (support for user ui files)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16763 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-19 14:35:32 +00:00
Jean-Marc Lasgouttes
196bd6a4b0 * math_hullinset.C (numbered): clear the label when unnumbering
(workaround for bug 2556).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16733 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 16:17:10 +00:00
Jean-Marc Lasgouttes
b902aaa8ba * text.C (breakParagraph): when tracking changes, do not remove
NewLine insets when change tracking is on (bug 2865).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16732 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 16:01:49 +00:00
Jürgen Spitzmüller
f18c730b36 * src/text3.C (doDispatch):
- record undo on LFUN_BREAKLINE (bug 3111).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16731 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 15:47:27 +00:00
Jean-Marc Lasgouttes
db71db23ce * BufferView.C (mouseSetCursor): if the cursor was in an empty
script inset and the new position is in the nucleus of the inset,
	notifyCursorLeaves will kill the script inset itself. So we check
	all the elements of the cursor to make sure that they are correct
	(bug 2933).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16728 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-17 15:24:01 +00:00
Enrico Forestieri
465e157b60 Pass input data to a CAS program through a file instead of piping it to stdin
* src/mathed/math_extern.C:
	(captureOutput): redirect stdin from a file.
	(pipeThroughMaxima, pipeThroughOctave, pipeThroughMathematica): use
	"output:" instead of "out:" in the informational messages in order to
	better match the "input:" message from captureOutput.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16710 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-16 18:11:43 +00:00
Jürgen Spitzmüller
b90cacb659 * src/frontends/qt2/QGraphicsDialog.C:
- allow double values in the bounding box widgets (bug 3055, 3056).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16663 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-13 10:32:25 +00:00
Jürgen Spitzmüller
63183ee9da * src/insets/insetcite.C (getNatbibLabel): correct check for citation key cache.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16625 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-09 08:26:11 +00:00
Enrico Forestieri
7de882829b Fix conversion of n-th roots to mathematica and octave syntax.
* src/mathed/math_extern.C
	(pipeThroughOctave): take into account that the output from octave
	may contain ansi control sequences.

	* src/mathed/math_rootinset.[Ch]
	(MathRootInset::mathematica): new virtual method to output n-th
	roots in mathematica syntax.

	* src/mathed/math_rootinset.C
	(MathRootInset::octave): octave has not a root command.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16612 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 19:00:24 +00:00
Jean-Marc Lasgouttes
d2b8a31616 * os_unix.C (canAutoOpenFile, autoOpenFile): on Mac OS X, use
the role kLSRolesAll for both editor and viewer, since it is what 
	the finder does.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16605 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 13:32:20 +00:00
Jürgen Spitzmüller
8c143c72d6 * src/frontends/qt2/QGraphicsDialog.C:
- do not focus filename widget for already existing insets (bug 1663).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16603 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 13:21:36 +00:00
Jürgen Spitzmüller
b474cb3353 * src/frontends/qt4/QBibtexDialog.C: sanitize button behaviour (bug 2895)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16596 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-08 09:20:18 +00:00
Jürgen Spitzmüller
0b9dad040c Fix bug 3057.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16532 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-05 14:36:50 +00:00
Jean-Marc Lasgouttes
61da85eb4b * bufferparams.C (writeLaTeX):
* lyx_sty.C: use \setlength{\foo}{bar}, not \setlength\foo{bar}
	(bug 2843)



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16477 a592a061-630c-0410-9148-cb99ea01b6c8
2007-01-03 10:39:35 +00:00
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
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