Commit Graph

10533 Commits

Author SHA1 Message Date
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