Commit Graph

10588 Commits

Author SHA1 Message Date
Jürgen Spitzmüller
ba956235d1 * src/Text3.cpp (doInsertInset):
- Improve the behaviour when inserting a collapsable inset 
	  over a multi-paragraph selection.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23511 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-06 13:34:42 +00:00
Jürgen Spitzmüller
5a918564ae * src/insets/InsetMathBox.{cpp,h}:
- add validate method and validate \tag[*] (bug 4586)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23482 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-05 18:52:30 +00:00
Pavel Sanda
f1e1afa308 Andre' comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23464 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 21:49:30 +00:00
Pavel Sanda
6bfbb310d2 ToC tree redrawing after resets.
http://bugzilla.lyx.org/show_bug.cgi?id=3740


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 14:07:12 +00:00
Jean-Marc Lasgouttes
af3b63ac40 * src/CutAndPaste.cpp (eraseSelectionHelper): when the last paragraph that
is cut is completely erased, remove it regardless of its layout (fixes
	bug 3995).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23430 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-04 10:14:29 +00:00
Uwe Stöhr
c81532af72 fix http://bugzilla.lyx.org/show_bug.cgi?id=2461 also for branch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23367 a592a061-630c-0410-9148-cb99ea01b6c8
2008-03-01 14:18:57 +00:00
Uwe Stöhr
f7a0bff71f InsetMathNest.cpp: allow to enter starred commands (fixed bug 4585)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23297 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-27 23:33:03 +00:00
Bo Peng
94b2999e9e Load local textclass in addTextClass(), reload local layout correctly in LFUN_TEXTCLASS_APPLY and LFUN_TEXTCLASS_LOAD
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23199 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 21:25:11 +00:00
Uwe Stöhr
bfa4f6b0f4 insets/InsetTabular.cpp: fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4554
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23195 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-24 16:07:47 +00:00
Jürgen Spitzmüller
6c1b8c8422 forgot this in r23160.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23161 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 17:28:44 +00:00
Jürgen Spitzmüller
de263dca11 * src/Text3.cpp (cursorPrevious, cursorNext):
- Fix a crash when pressing "page up" while the cursor is in an empty
  	   paragraph (bug 4570); patch by Jean-Marc, slightly extended by advice of Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23160 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-23 17:21:33 +00:00
Jürgen Spitzmüller
2c45aab0ac * src/insets/InsetCharStyle.cpp (draw):
- the status bar message on mouse hovering triggered a crash
	  when a math inset was embedded in a char style inset (bug 4559)
	  Until a better solution is found, the message is disabled.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23055 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-18 11:12:01 +00:00
Jürgen Spitzmüller
6512b4a439 Fix a crash following the input of an invalid paragraph separation value in the document settings dialog (bug 4556), as discussed with Jean-Marc on bugzilla.
* src/frontends/qt4/QDocument.cpp:
	- disallow input of defskip length without actual length value.

* src/BufferParams.cpp (readToken):
	- there might be documents with the invalif "\defskip defskip" param. Reset this to "\defskip medskip".

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23023 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-15 14:16:52 +00:00
Jürgen Spitzmüller
ecec859094 backport of revision 22979 (fix bug 4547)
Author: younes
	Date: Wed Feb 13 15:16:51 2008
	New Revision: 22979

	URL: http://www.lyx.org/trac/changeset/22979
	Log:
	Fix crash when deleting outlined insets while the outline panel is open.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@23001 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-14 10:39:39 +00:00
Jürgen Spitzmüller
35a75c5119 * src/frontends/qt4/TocWidget.cpp (updateGui):
- set correct list (bug 4260).

Sorry to violate my own rule, but this bug is so annoying, and the fix is straightforward (and the freeze is still young ;-).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22962 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-12 13:57:38 +00:00
Jürgen Spitzmüller
81876c4aed Catch exceptions whenever filesystem::exists is called. Hopefully definitely fixes all those cases that have been reported (bug 4052, bug 4440, bug 4534)
* src/support/filetools.{cpp,h}:
	- new helper function doesFileExist which calls fs::exists and catches exceptions.

* src/Buffer.cpp:
* srcConverterCache.cpp:
* src/Exporter.cpp:
* src/Format.cpp:
* src/LaTeX.cpp:
* src/LyX.cpp:
* src/LyXFunc.cpp:
* src/Session.cpp:
* src/TextClass.cpp:
* src/TextClassList.cpp:
* src/buffer_funcs.cpp:
* src/callback.cpp:
* src/frontends/Controllers/ControlGraphics.cpp:
* src/insets/InsetInclude.cpp:
* src/support/FileMonitor.cpp:
* src/tex2lyx/text.cpp:
	- use doesFileExist instead of plain fs::exists

* src/client/client.cpp:
	- catch exception when calling fs::exists

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22937 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-11 08:23:28 +00:00
Jürgen Spitzmüller
5aa3af8ecc * src/frontends/qt4/ui/WrapUi.ui:
- use designer version 4.2

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22924 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 18:30:21 +00:00
Jürgen Spitzmüller
7b295e03f0 * src/frontends/qt4/LyXFileDialog.cpp:
- explicitely set ShowHidden for hidden UNIX directories
	  (workaround for Qt bug, bug 4513).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22916 a592a061-630c-0410-9148-cb99ea01b6c8
2008-02-10 11:45:45 +00:00
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
Jürgen Spitzmüller
c84f22b5ca * src/frontends/controllers/ControlCitation.cpp:
- catch exception from boost::regex (bug 4421)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22100 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-12 11:50:05 +00:00
Jürgen Spitzmüller
911fd5d12e * src/tex2lyx/text.cpp:
- add space between bounding box arguments (bug 4418).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22087 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 17:17:31 +00:00
Pavel Sanda
bc141fe397 Add selection dbg output
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22082 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 11:23:35 +00:00
Uwe Stöhr
fc39fb8caa preamble.cpp: as promised and announced:
- fix the buggy language find routine I had to revert two days ago (the current is crash free but leads to wrong imported multi-language files)
 - the fix only makes sense with the remaining language stuff (babel-only, the document language stuff was already in trunk but could be overwritten because of the missing babel-only support.)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22073 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-11 00:39:29 +00:00
Jean-Marc Lasgouttes
05a11f6322 src/Buffer.cpp (validate): require "float" when global float placement option
contains 'H'.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22059 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-10 11:40:18 +00:00
Jean-Marc Lasgouttes
a92428c89c * rowpainter.cpp (paintOnlyInsets): do not paint Hfill insets (avoids a
crash).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22045 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 17:39:41 +00:00
Uwe Stöhr
003c6aa0f8 preamble.cpp revert crash prone code
a real fix is on the list and will hopefully be comitted tomorrow.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22043 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 16:45:04 +00:00
Jürgen Spitzmüller
2cd8c4e01d * src/tex2lyx/preamble.cpp:
* src/tex2lyx/text.cpp:
	- fix encoding and indendation.
	  (Uwe, please do this for trunk as well).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22038 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 14:48:13 +00:00
Uwe Stöhr
af4af91b68 preamble.cpp: code simplification to r21995 suggested by Angus
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22037 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 14:39:12 +00:00
Uwe Stöhr
235e9f5ef7 tex2lyx/text.cpp: support for all quotation marks (bug2703).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22033 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-09 13:41:58 +00:00
Jürgen Spitzmüller
c04601e471 * src/frontends/qt4/ui/PrintUi.ui:
- fix bug 4345.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22007 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-08 10:24:21 +00:00
Jürgen Spitzmüller
3a946e8521 * src/client/lyxclient.man:
- fix character (patch by Sven Hoexter)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22001 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-07 11:53:23 +00:00
Uwe Stöhr
aa7b57c5d1 tex2lyx: support for font settings
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21995 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-06 22:15:19 +00:00
Bo Peng
a9a5382ac5 Avoid loading local layout file multiple times
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21981 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 22:25:29 +00:00
Pavel Sanda
f248b6faff Source highlighting of comments (by Bernhard Reiter)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21973 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 20:59:11 +00:00
Pavel Sanda
39b522e7f8 Distinguish occurence of 'Note' string between layouts and inset
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21969 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-05 18:46:21 +00:00
Uwe Stöhr
0c43e79aff preamble.cpp: update the list of supported languages to the one of LyX 1.4.5.1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21958 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 21:34:49 +00:00
Uwe Stöhr
143d1ca9d8 preamble.cpp: small cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21952 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 20:51:33 +00:00
Uwe Stöhr
8b30acfcbe preamble.cpp, text.cpp:
- fix bug 27
 - support for multi-language files
 - code cleanups

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21951 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 20:48:23 +00:00
Jürgen Spitzmüller
64b7a7ef77 * src/support/docstring.h: fix encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21944 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-04 06:29:32 +00:00
Uwe Stöhr
2d215f88cb preamble.cpp: update fileformat
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21940 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 22:16:43 +00:00
Jürgen Spitzmüller
6bc65898bf * src/BufferParams.cpp (readToken):
- initialize pair<bool, lyx::textclass_type> pp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21938 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 16:41:53 +00:00
Jürgen Spitzmüller
2aee7c7b38 * src/support/docstring.h: include <cstring>
* src/frontends/qt4/TocModel.cpp: include <climits>
	- both needed on Mac OS 10.5.1/Xtools 3.0 (reported by Roger McMurtrie)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21936 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-03 07:08:58 +00:00
Pavel Sanda
d8d717fc36 Fix handling of Insert Plain Text dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21932 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 22:33:55 +00:00
Uwe Stöhr
411d45b165 tex2lyx/text.cpp: support for framed and shaded notes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21929 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 18:39:27 +00:00
Jürgen Spitzmüller
aedf0bbf1d * src/BufferParams.cpp (readToken):
- fix assertion introduced with rev. 21799 (bug 4395).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21924 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 17:57:49 +00:00
Uwe Stöhr
439dc6247e tex2lyx/text.cpp: support for \newline
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21922 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 17:38:38 +00:00
Jürgen Spitzmüller
1ac6b38ea5 * src/insets/InsetTabular.cpp:
- sanitize cursor after insertion via LFUN_CLIPBOARD_PASTE 
	   or LFUN_FILE_INSERT_PLAINTEXT (bug 4368).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21921 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 15:21:52 +00:00
Jürgen Spitzmüller
6cf125e841 * src/frontends/qt4/GuiApplication.cpp:
- backport rev. 20419 and rev. 20531 from trunk (part of bug 4385):
	   http://www.lyx.org/trac/changeset/20419:
		GuiApplication::notify(): don't crash with abort() but exit gracefully 
		when an exception is caught. try to catch LyX specific exceptions.
	   http://www.lyx.org/trac/changeset/20531:
		Gives the user some information about the crash.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21914 a592a061-630c-0410-9148-cb99ea01b6c8
2007-12-02 11:28:29 +00:00
Bo Peng
5efe7027dc If there exists a local layout file, use the local copy instead of the system one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21799 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-26 15:37:41 +00:00
Jürgen Spitzmüller
6be395541c * src/output_latex.cpp:
- prevent wrong whitespace by trailing '%' on line endings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21743 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-23 15:00:47 +00:00
Jürgen Spitzmüller
85e5d42e5f * src/insets/InsetTabular.cpp (doDispatch):
- add missing recordUndo to LFUN_CLIPBOARD_PASTE /
	  LFUN_PRIMARY_SELECTION_PASTE (bug 4371)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@21716 a592a061-630c-0410-9148-cb99ea01b6c8
2007-11-22 09:10:40 +00:00