Commit Graph

10520 Commits

Author SHA1 Message Date
Uwe Stöhr
bf5e1e5eeb wrap floats: switch from floatflt to wrapfig
(the manuals have already been updated two days ago)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22895 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 12:52:43 +00:00
Jürgen Spitzmüller
e99adb41bc * src/Text3.cpp (doInsertInset):
- update metrics before pasting selected content
	  (fix bug 4502).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22892 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-09 10:47:23 +00:00
Jürgen Spitzmüller
f0f398239a Backport rev. 22864:
URL: http://www.lyx.org/trac/changeset/22864
Log:
* clear selection when mutating a math inset into an eqnarray. This fixes #4452.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22865 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 16:40:41 +00:00
José Matox
c5a0460f3c Fix compilation with gcc 4.3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22858 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-08 09:41:07 +00:00
Jürgen Spitzmüller
974c14c041 * src/LaTeXFeatures.cpp:
- add tipx to simplefeatures. Tipx is a subpackage of tipa.
* lib/unicodesymbols:
	- correct some glyphs, which are included in tipx, not tipa.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22772 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-03 17:33:05 +00:00
Bo Peng
c85c19cc41 Improve cursor movement around lines with ending line-breaks
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22737 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-01 16:57:34 +00:00
Jürgen Spitzmüller
b5fd550d07 whitespace only.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22725 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-31 12:24:06 +00:00
Jürgen Spitzmüller
e3d8e0c460 compile fix. Sorry.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22701 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 15:41:39 +00:00
Jean-Marc Lasgouttes
54b0ad5904 * src/Text.cpp (changeCase): do not set the selection if it was not
already set.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22700 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-28 13:20:44 +00:00
Richard Heck
84ebdcc766 It is the right fix. (Sorry!)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22684 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:13:39 +00:00
Richard Heck
2671470085 Revert last commit. I am not sure that is the right fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22683 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:06:31 +00:00
Richard Heck
27a843bf0f Fix bug 4517. (Jurgen, since this is SO trivial, I just did it.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22682 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-26 20:03:59 +00:00
Jürgen Spitzmüller
85a10af54e ** Fix language switch issue introduced by the CJK patch **
(no status.15x entry needed, bug was introduced in the 1.5.4 cycle)

* src/output_latex.{cpp,h}:
	- (latexParagraphs, TeXEnvironment, TeXOnePar, TeXDeeper): pass Text element 
	   instead of ParagraphList. This is necessary to detect whether we are in the main text.
	- check if we are in the main text for language switches, if needed.
* src/Buffer.cpp:
* src/insets/InsetEnvironment.cpp:
* src/insets/InsetText.cpp:
* src/mathed/InsetMathMBox.cpp:
	- adapt to new latexParagraphs definition.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22667 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 13:31:50 +00:00
Jürgen Spitzmüller
a4b56a4463 * src/BufferParams.{cpp,h}:
- (paperSizeName): add missing paper sizes. Add an argument to the function
	  that returns context-sensitive information (depending on the purpose)
	- (paperSizeName): Do not hardcode "letter" for default paper size (bug 2098).
	- (dvips_options): pass purpose DVIPS to paperSizeName
* src/Converter.cpp:
	- (dvipdfm_options): pass purpose DVIPDFM to paperSizeName.
* src/Format.cpp:
	- (view): pass purpose XDVI to paperSizeName (fix bug 4432).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22665 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-25 12:59:23 +00:00
Jean-Marc Lasgouttes
d9db666c89 fix wrong macro for line spacing with memoir
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22645 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-22 11:44:13 +00:00
Pavel Sanda
aa658b2c63 Get rid of ugly strings in .po file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22626 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-19 10:53:58 +00:00
Jürgen Spitzmüller
43ef820375 * src/LaTeX.cpp:
- do a second latex run before bibtex if package clefval requests it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22613 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-17 10:07:04 +00:00
Jürgen Spitzmüller
6be0995fd7 * src/frontends/QDocument.{cpp,h}:
- do not update dialog when clicking in the main window without buffer change
	  (bug 4302).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22584 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-15 10:44:55 +00:00
Jean-Marc Lasgouttes
bf26b7172d * src/Spacing.cpp (writeBeginEnv, writeEndEnv): add a bool parameter
directing to use memoir's capitalized latex macros.
	* src/LaTeXFeatures.cpp (getPackages): act on feature "SetSpace".
	* src/output_latex.cpp (TeXOnePar): ditto

	* lib/layouts/memoir.layout: provide feature SetSpace, indicating that
	memoir provides the setspace functionality, but with a different syntax.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22552 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 14:59:11 +00:00
Jürgen Spitzmüller
afa16a3754 * src/LaTeXFeatures.cpp:
- the package "pdfcolmk" must be loaded after [x]color.sty
	  (see package documentation).
	- load xcolor.sty the same way than color.sty, and only load one of them
	  (xcolor, if requested, else color).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22549 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 10:11:44 +00:00
Enrico Forestieri
ec38b1d886 Use the currentItemChanged() signal instead of itemSelectionChanged()
because in Qt 4.2 the current item has not been updated yet when
itemSelectionChanged() is emitted.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22547 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-14 09:34:56 +00:00
Uwe Stöhr
c4670157be InsetBox.cpp: fix the LaTeX-output, fixes bug 2492 http://bugzilla.lyx.org/show_bug.cgi?id=2492
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-13 14:44:28 +00:00
Jürgen Spitzmüller
9cde025da4 * QBibtex.cpp:
- some more tweaks.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22523 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 15:42:11 +00:00
Jürgen Spitzmüller
f6da658f94 * src/frontends/qt4/QBibtex.{cpp,h}:
* src/frontends/qt4/ui/BibtexUi.ui:
	- add buttons to move databases up and down.
	  Patch from Horst Schirmeier (permission: http://marc.info/?l=lyx-devel&m=120009631506298&w=2)

status.15x follows immediately ...

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22514 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-12 11:51:46 +00:00
Pavel Sanda
3857508ab6 Character count for branch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22490 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-11 10:03:38 +00:00
Jürgen Spitzmüller
bff34b81aa * src/insets/InsetCitation.{cpp,h}:
* src/insets/InsetRef.{cpp,h}:
* src/insets/InsetSpace.{cpp,h}:
* src/insets/InsetSpecialChar.{cpp,h}:
* src/insets/InsetUrl.{cpp,h}:
	- fix textString member (bug 4472).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22478 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-10 16:07:00 +00:00
Jean-Marc Lasgouttes
4634dd7957 * src/MenuBackend.cpp (expandFormats): do not add shortcut for
plaintext if it is not correct.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22416 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-07 17:19:22 +00:00
Jean-Marc Lasgouttes
1a4ab7576a remove extra menu expansion which causes multiple warnings about shortcuts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22368 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-04 17:04:07 +00:00
Jean-Marc Lasgouttes
cd18d0be3e * InsetMathHull.cpp (getStatus, doDispatch): handle properly the
status of LFUN_MATH_NUMBER and LFUN_MATH_NONUMBER

	* InsetMathNest.cpp (getStatus): no need to handle these lfuns here.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22355 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-04 15:18:52 +00:00
Jürgen Spitzmüller
714e9270a5 * src/frontends/controllers/ControlSendto.cpp:
- add missing pdflatex format.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22345 a592a061-630c-0410-9148-cb99ea01b6c8
2008-01-03 09:21:33 +00:00
Enrico Forestieri
00dfbc05a3 Use a less verbose form for warnings in the view source window
and correctly match strings in order to coalesce translations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22336 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-30 21:27:41 +00:00
Jürgen Spitzmüller
83c2108f79 Backport revision 22332:
URL: http://www.lyx.org/trac/changeset/22332
Log:
Following rev 21967: final touch to odocfstream:
- odocfstream: properly fix plaintext output by getting rid of ctor with std::string argument as this can be mixed up with std::ofstream(std::string) ctor where the argument is a file. UTF8 is now the default encoding.
- PreviewLoader::Impl::startLoading(): catch another potential iconv exception.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22335 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-30 10:14:29 +00:00
Jürgen Spitzmüller
5eea754d54 * src/output_plaintext.cpp:
- fix plaintext output. Abdel, you still should have a look at this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22331 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-29 10:22:42 +00:00
Jürgen Spitzmüller
762a38c282 Fix multiple cell pasting on Windows and Mac (bug 4436):
* src/frontends/Clipboard.h:
* src/frontends/GuiClipboard.{cpp,h}:
	- new member hasInternal() which indicates whether the OS knows
	  the concept of clipboard ownership.

* src/insets/InsetTabular.cpp (doDispatch):
	- consider hasInternal() while pasting.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22326 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-28 15:58:28 +00:00
Jürgen Spitzmüller
80410d0386 backport revision 20903:
URL: http://www.lyx.org/trac/changeset/20903
	Log:
	initial support for shift + right-mouse-click selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22323 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 10:50:01 +00:00
Jürgen Spitzmüller
2bfa4c6bd7 * src/support/unicode.cpp (convert):
- flush out data at the end of the conversion process (bug 4439).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22320 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-27 07:30:56 +00:00
Jürgen Spitzmüller
6799fbc1c6 * src/insets/InsetSpace.cpp:
- further improve appearance of protected space.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22306 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-26 10:27:32 +00:00
Jürgen Spitzmüller
3f3caf121a * src/Buffer.cpp:
- better translatable error message for uncodable chars, now also
	  displaying the code point value.
* src/Paragraph.cpp:
	- do not throw in View Source mode, but mark up uncodable chars (fix bug 4437).
* src/frontends/qt4/QViewSource.{cpp,h}:
	- highlight LyX warnings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22293 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 13:53:46 +00:00
Enrico Forestieri
644475c13b Try to improve maintainability by separately checking for the
gather environment.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22289 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-24 02:42:39 +00:00
Enrico Forestieri
fccbc1c6e0 Center rows in the gather environment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22279 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-23 02:10:14 +00:00
Jürgen Spitzmüller
8ece22c237 * src/insets/InsetCharStyle.cpp:
- fix update/metrics (patch by Abdel).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22261 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-22 15:55:55 +00:00
Richard Heck
8a46f91320 Improve space size.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22237 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 19:39:49 +00:00
Bo Peng
3181c5122f An dialog is displayed if some character can not be encoded properly. The offending character will be highlighted. (BUG3511)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22235 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 17:31:45 +00:00
Jürgen Spitzmüller
9975b55687 backport revision 21967, from Abdel:
* src/support/docstream.{cpp.h}: 
	- factorize out some code and introduce odocfstream::reset()
* src/output_plaintext.cpp:
	- pass encoding argument.
* src/Buffer.cpp (makeLaTeXFile()): 
	- try to catch one more iconv exception. Fix bug 4385 (http://bugzilla.lyx.org/show_bug.cgi?id=4385)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22234 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 17:18:36 +00:00
Jürgen Spitzmüller
677689945f Fix bug 2913: "mark-on" broken.
* src/Cursor.cpp (selHandle):
	- handle mark()
* src/Text.cpp (dissolveInset):
	- switch mark off before using selHandle, just in case.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22229 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-21 11:30:54 +00:00
Jürgen Spitzmüller
b903a4abd4 * fix bug 4055, overdue patch from Stefan Schimanski:
"The idea of the beforeDispX/Y_ variables in the Cursor is to hold the position
of the cursor on screen before the lyxfunc is dispatched. But to get this the
metrics must be valid. It's updated in Cursor::dispatch before the dispatch
loop.
After inserting/deleting stuff (like when deleting the selected text before
inserting the alpha) the metrics are invalid. But the handler for the alpha
calls Cursor::dispatch after the deletion and hence the crash with your second
patch.

Here is a patch fixing that:

The beforeDispatchXY variable do not belong into the Cursor::dispatch because
Cursor::dispatch is often called "manually" by many handlers to some followup
action. So this logic must go somewhere else where it is sure that is not
updated after the metrics got invalidated."

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22194 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 18:15:14 +00:00
Jürgen Spitzmüller
cf0411cffa * src/ASpell.cpp:
- implement lyxrc.isp_accept_compound (bug 4408).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22191 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 16:53:07 +00:00
Jürgen Spitzmüller
d8e0a2ba6b Sanitize CJK support (fix bug 3561, 4349 and 4337):
* src/output_latex.{cpp, h}:
	- Many changes in order to allow CJK in a mulitlingual context.
* src/Paragraph.cpp:
	- Fix file encoding switch and language nesting with CJK.
* src/Buffer.cpp:
	- Move the opening and closing CJK and lanaguage tags to ouput_latex.cpp.
* src/Font.cpp:
	- switchEncoding call now takes runparams as argument.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22181 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 10:01:57 +00:00
Jürgen Spitzmüller
9b2c0e8032 * src/support/os_win32.cpp:
- backport rev. 22179: Fix network drive access (on Windows).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22180 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-17 08:18:14 +00:00
Jürgen Spitzmüller
04f6c55ebd src/frontends/qt4/GuiSelection.cpp:
- use QClipboard::selectionChanged() signal instead of 
	  QClipboard::dataChanged() (bug 4147).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22122 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-13 09:03:18 +00:00