Commit Graph

216 Commits

Author SHA1 Message Date
Georg Baum
94d391b183 Fix a crash when lyx2lyx failed to convert LyX file.
* src/buffer.C
	(Buffer::readFile): Only call updateDocLang if reading the file
	succeeded


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15093 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-21 07:57:45 +00:00
Jean-Marc Lasgouttes
a84c402884 * insettabular.C (cutSelection): reset cursor when it is invalid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15087 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-20 12:13:38 +00:00
Jean-Marc Lasgouttes
1bc5b6a567 forgotten entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15067 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-19 12:38:48 +00:00
Jean-Marc Lasgouttes
abb6dab873 more tweaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15066 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-19 10:37:41 +00:00
Jürgen Spitzmüller
18dc22d2dc Fix bug 2382:
* src/CutAndPaste.C (pasteSelectionHelper): pass Cursor 
	as argument, remove cursor-dependent arguments, 	
	implement method to reset layout in insets which
	forceParagraphsToDefault.

	* CutAndPaste.C (pasteParagraphList): adapt call of 
	pasteSelectionHelper.

	* insetert.C (doDispatch):
	* insetcharstyle.C (doDispatch): remove ad-hoc-Code to 
	reset paragraph layout. 
	This is now done generally in CutAndPaste.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15061 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-19 09:34:42 +00:00
Jean-Marc Lasgouttes
10a49d10d8 new Hungarian translation of the Tuturial
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15039 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-18 12:10:29 +00:00
Jean-Marc Lasgouttes
e2f1ea229d l10n updates before release
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15037 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-18 10:33:03 +00:00
Michael Schmitt
8089eb77a2 add menu entries for phonetic symbols and accepting/rejecting
a single change in CT mode


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15015 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-16 13:09:46 +00:00
Georg Baum
73da83f89e Add phantom icons from Uwe and me (last part of bug 1473)
* src/frontends/controllers/ControlMath.C
	(latex_misc): Add phnatom, vphantom and hphantom

	* lib/images/math/hphantom.xpm: new
	* lib/images/math/phantom.xpm: new
	* lib/images/math/vphantom.xpm: new

	* lib/Makefile.am: add new files
	* development/scons/scons_manifest.py: ditto


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15008 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 10:53:42 +00:00
Jean-Marc Lasgouttes
29396209ad * text.C (setCursorFromCoordinates):
* text2.C (setCursorIntern): add an assertion.

	* BufferView_pimpl.C (scrollDocView): reset cursor before setting
	it from coordinates (bug 2830).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15005 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 09:53:33 +00:00
Jean-Marc Lasgouttes
c50a5e9897 * paragraph_funcs.C (breakParagraph): make sure to respect nesting
when depth > 0 (bug 2445)/



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15001 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 09:37:33 +00:00
Jean-Marc Lasgouttes
6aa2f26bdb update french l10n
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14999 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-15 07:59:25 +00:00
Jürgen Spitzmüller
e6bb6625ea * src/text3.C (doInsertInset): reset first paragraph to default after selected content has been pasted (bug 2802)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14994 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-14 13:50:37 +00:00
Jean-Marc Lasgouttes
309e1990fd Update Nynorsk; remerge
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14984 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-13 13:21:51 +00:00
Jean-Marc Lasgouttes
e983b7c499 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14972 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-11 09:54:44 +00:00
Georg Baum
cac74dce2f forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14938 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 12:35:11 +00:00
Jean-Marc Lasgouttes
817d7c5fb3 * BufferView_pimpl.C (getCurrentChange): do not assume that
LyXText at cursor position is the same as LyXText at
	cursor.selBegin() position. Fixes a crash (bug 2600).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14935 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 12:16:35 +00:00
Bo Peng
9c4a1c3756 Scons: produce cygwin-compatible binary package
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14933 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-08 01:51:57 +00:00
Georg Baum
361902d2f1 Fix bug 2660
* lib/doc/de_UserGuide.lyx: fix image paths


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14929 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 12:46:02 +00:00
Georg Baum
ca0a6d9f4a Fix bug 2698 (new images from Uwe Stöhr)
* src/frontends/controllers/ControlMath.C
	(latex_misc): Add intop and ointop

	* lib/images/math/intop.xpm: New
	* lib/images/math/ointop.xpm: Ditto

	* lib/images/math/int.xpm: Add box to make the difference to intop clear
	* lib/images/math/oint.xpm: ditto

	* lib/Makefile.am: add new files


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14923 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-07 09:46:11 +00:00
Georg Baum
a64ef97c46 Fix bug 2637
* src/graphics/GraphicsCacheItem.C
        (CacheItem::Impl::convertToDisplayFormat): Don't derive the temp
        file name from the original file name. This ensures that it is
        composed of valid characters only.

        * src/graphics/GraphicsConverter.C: remove example script, since it
        will get out of date.
        (Converter::Impl::Impl): Don't call the default converter directly,
        but create a temporary script with build_script() as for the
        configured converters. This makes sure that the file name does not
        need to be passed on the command line anymore.
        (build_script): Copy the original file to a temp file before the
        conversion chain starts. This avoids problems with converters that
        can't handle ' in filenames.
        (build_script): This cannot fail anymore, so change the return type
        to void
        (build_script): Use build_conversion_command also for the default
        converter. This has the advantage that the special code for moving
        ${outfile}.0, ${outfile}.1 is actually used for ImageMagick's convert.
        (build_conversion_command): factored out from build_script


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14891 a592a061-630c-0410-9148-cb99ea01b6c8
2006-09-04 14:59:46 +00:00
Georg Baum
aeb9a00172 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14842 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 19:30:00 +00:00
Jean-Marc Lasgouttes
7380301361 more grammatically-correct version from Angus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14840 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 16:47:54 +00:00
Georg Baum
c30511f6a0 Fix bug 2677
* boost/boost/bind.hpp:
	* boost/boost/ref.hpp:
	* boost/boost/mem_fn.hpp:
	* boost/boost/bind/mem_fn_template.hpp:
	* boost/boost/bind/storage.hpp:
	* boost/boost/bind/placeholders.hpp:
	* boost/boost/bind/bind_template.hpp: Update to boost 1.34cvs


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14839 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-25 14:59:20 +00:00
Georg Baum
841e126803 Fix bug 2786: import of spaces
* src/tex2lyx/text.C
	(known_spaces): new, LaTeX names of known spaces
	(known_coded_spaces): new, LyX names of known spaces
	(parse_text): Recognize all known spaces


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14834 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-24 17:01:03 +00:00
Jean-Marc Lasgouttes
f27ae48030 * math_nestinset.C (lfunMousePress): on button 2 press, paste
inner LyX selection if it exists (bug 2779).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14813 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-22 14:26:29 +00:00
Jean-Marc Lasgouttes
4d35334d5a * src/frontends/qt2/QContentPane.C (focusInEvent, focusOutEvent):
new methods; invoke signal WorkArea::focusChange (bug 2423).

	* src/frontends/WorkArea.h: add signal focusChange.

	* src/BufferView_pimpl.C (focusChange): new method; updates the
	toolbars (bug 2423)
	(Pimpl): connect the WorkArea::focusChange signal.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14808 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-19 16:27:00 +00:00
Jürgen Spitzmüller
d9e68dc1b2 * insetcite.C (getNatbibLabel): prevent filesystem exception
if the bib file is in a non-readable directory (bug 2782).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14806 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-19 10:37:57 +00:00
Jürgen Spitzmüller
f7557a9294 * insetcite.C (getNatbibLabel): prevent filesystem exception
if the bib file does not exist.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14804 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-18 13:11:28 +00:00
Jean-Marc Lasgouttes
8e0a72ebd3 Handle properly script insets which nucleus has more than one
element (like {a'}^{2}).

	* src/mathed/math_nestinset.C (script): when creating a script
	inset, handle specially previous atom if it is a MathBraceInset
	(this is used in interactive input).

	* src/mathed/math_parser.C (parse1): when creating a script inset,
	handle specially previous atom if it is a MathBraceInset (this is
	used in parsing phase).

	* src/mathed/math_scriptinset.C (write): put nucleus into braces
	if it contains more than one element or is itself a script inset.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14802 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-18 08:55:55 +00:00
Jean-Marc Lasgouttes
b9ef040be2 forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14797 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 21:33:02 +00:00
Jean-Marc Lasgouttes
31f3506938 Fix bug 2727.
* math_scriptinset.C (notifyCursorLeaves): call recordUndoInset
	before deleting a cell; if the nucleus does not have scripts
	anymore, delete it and replace it by its contents at enclosing
	level.
	(write): output scripts even when they are empty.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14794 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 21:13:15 +00:00
Jean-Marc Lasgouttes
01010f76e8 * undo.C (recordUndoInset): remember the cursor position inside
the inset.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14790 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 20:12:13 +00:00
Jean-Marc Lasgouttes
226f97d044 update german documentation
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14778 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-17 10:13:10 +00:00
Jean-Marc Lasgouttes
14bb3e541a * src/lyxfind.C (find): comment out debug message.
* src/frontends/controllers/ControlSpellchecker.C 
	(nextWord): take a LCursor as parameter; set the selection over
	the word that has been found.
	(check): adapt to changes above (the length of the word is not
	necessarily the length of the selection -- fixes bug 2068).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14710 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:44:37 +00:00
Bo Peng
548886a6e0 msvc support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14707 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 21:10:55 +00:00
Jean-Marc Lasgouttes
74ebb861b3 * src/BufferView_pimpl.C (getStatus, dispatch): do not handle
LFUN_GOTOERROR.

	* src/bufferview_funcs.C (findInset): exit early when at end of
	document (and avoid a crash).




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14705 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 20:28:03 +00:00
Jean-Marc Lasgouttes
ef4570e804 Fix bug 2774 (crash with Theorem environment)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14701 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 13:52:22 +00:00
Jean-Marc Lasgouttes
2da50c5f07 * text2.C (init): do not reset curent font (bug 2664)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14699 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-16 10:09:51 +00:00
Bo Peng
4d7fc5b6a9 Fix bug 2768 (inset comment eats space after it)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14693 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-15 15:22:30 +00:00
Jean-Marc Lasgouttes
e554bf9a8d * text2.C (changeDepthAllowed): exit early when selection spans
several cells (bug 2630)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14677 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-14 19:02:04 +00:00
Georg Baum
eee8e74783 Fix bug 2723
* src/lyx_sty.C
	(lyxgreyedout_def): Use \textcolor instead of \color

	* status.14x: Not forgotten this time!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14656 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 18:48:49 +00:00
Jean-Marc Lasgouttes
9f12b59a91 Fix bug 2179
* controllers/ControlErrorList.h (unreadlist_): new member, tells whether the
  errorlist has been read by the dialog.

  * controllers/ControlErrorList.C (errorList, initialiseParams): update
  unreadlist_ as needed.

  * qt2/QErrorList.C (update_contents): do nothing if error list has not
  been updated (bug 2179).

  * xforms/FormErrorList.C (update): do not call updateContents if the
  error list has not been updated (bug 2179).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14655 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 17:39:36 +00:00
Bo Peng
2949a35176 Add scons build system.
* INSTALL.scons: instruction
	* development/scons/*: scons build system, qt frontend only
	* development/ChangeLog, status.14x, ChangeLog: bookkeeping


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14650 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 16:07:17 +00:00
Jean-Marc Lasgouttes
dcbfef703a * dociterator.C (forwardPosNoDescend): when at the end of the
inset, leave it, like forwardPos does (bug 2510).



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14648 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 15:45:06 +00:00
Georg Baum
2e9002304a forgot this
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14641 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 13:29:00 +00:00
Michael Schmitt
77a28709ce * status.14x: status update
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14640 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-13 13:24:34 +00:00
Jean-Marc Lasgouttes
bdb2556d5b * src/buffer.C (updateDocLang): update labels when changing language.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14628 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 20:12:52 +00:00
Georg Baum
2a64df96f9 Fix bug 2404
* src/lyx_cb.C
	(newFile): Only set the new buffer if it is valid

	* src/BufferView_pimpl.C
	(BufferView::Pimpl::loadLyXFile): Test whether newFile succeeded

	* src/lyxfunc.C
	(LyXFunc::menuNew): Only set the new buffer if it is valid
	(LyXFunc::open): ditto

	* src/importer.C
	(Importer::Import): ditto

	* src/lyx_main.C
	(LyX::exec2): Only use the new buffer if newFile succeeded

	* src/buffer_funcs.C
	(newFile): discard the buffer and return 0 if the template is invalid

	* src/BufferView_pimpl.[Ch]
	(BufferView::Pimpl::newFile): remove, not used anymore

	* src/BufferView.C
	(BufferView::newFile): remove, not used anymore


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14623 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 12:31:19 +00:00
Jean-Marc Lasgouttes
98151fde55 * Customization.lyx:
* fr_Customization.lyx:
	* de_Customization.lyx: remove reference to reLyX.

	* Tutorial.lyx: rename sec:relyx label to sec:tex2lyx.
	* fr_Tutorial.lyx: ditto, and change references to reLyX




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@14621 a592a061-630c-0410-9148-cb99ea01b6c8
2006-08-12 11:25:41 +00:00