]> git.lyx.org Git - lyx.git/log
lyx.git
14 years agoBufferParams.cpp: fix #6714
Uwe Stöhr [Sat, 22 May 2010 13:05:07 +0000 (13:05 +0000)]
BufferParams.cpp: fix #6714

OK also for branch?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34451 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoInsetRef.h: fix #6711
Uwe Stöhr [Sat, 22 May 2010 02:01:47 +0000 (02:01 +0000)]
InsetRef.h: fix #6711

Also OK for branch?

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34450 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoInset***.h: fix typo in comment
Uwe Stöhr [Sat, 22 May 2010 02:00:41 +0000 (02:00 +0000)]
Inset***.h: fix typo in comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34449 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agolyx_2_0.py: fix paper size conversion routine
Uwe Stöhr [Sat, 22 May 2010 01:42:14 +0000 (01:42 +0000)]
lyx_2_0.py: fix paper size conversion routine

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34448 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agolyx_2_0.py: fix Python error due to uninitialized variable
Uwe Stöhr [Sat, 22 May 2010 01:15:50 +0000 (01:15 +0000)]
lyx_2_0.py: fix Python error due to uninitialized variable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34447 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoInsetMathHull.h: fix typo in comment
Uwe Stöhr [Sat, 22 May 2010 00:46:57 +0000 (00:46 +0000)]
InsetMathHull.h: fix typo in comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34445 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoLyXRC.cpp: add new page sizes to known sizes, thanks JMarc
Uwe Stöhr [Fri, 21 May 2010 22:10:57 +0000 (22:10 +0000)]
LyXRC.cpp: add new page sizes to known sizes, thanks JMarc

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34443 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoBufferParams.cpp: the default paper format of course don't require the geometry packa...
Uwe Stöhr [Fri, 21 May 2010 01:33:50 +0000 (01:33 +0000)]
BufferParams.cpp: the default paper format of course don't require the geometry package; patch by Rob Oakes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34442 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* sk.po
Kornel Benko [Wed, 19 May 2010 10:38:19 +0000 (10:38 +0000)]
* sk.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34439 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agochkconfig.ltx: add check for the zhmetrics metrics package
Uwe Stöhr [Wed, 19 May 2010 02:32:27 +0000 (02:32 +0000)]
chkconfig.ltx: add check for the zhmetrics metrics package

This is necessary to get the correct size of images created by dvipng. The problem is that InstantPreview generates always A4 size images for every equation when using standard MiKTeX 2.8. This makes InstantPreview unusable because the LyX file becomes unreadable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34437 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoGuiDocument.cpp: code simplifications; thanks Vincent
Uwe Stöhr [Tue, 18 May 2010 21:08:06 +0000 (21:08 +0000)]
GuiDocument.cpp: code simplifications; thanks Vincent

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34436 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #5247: physical paper size settings are not honoured by pdflatex export
Enrico Forestieri [Tue, 18 May 2010 18:10:54 +0000 (18:10 +0000)]
Fix bug #5247: physical paper size settings are not honoured by pdflatex export

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34435 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agofix bugs #6696 and #6697
Jean-Marc Lasgouttes [Tue, 18 May 2010 13:59:59 +0000 (13:59 +0000)]
fix bugs #6696 and #6697

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34434 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoComment
Pavel Sanda [Tue, 18 May 2010 09:45:25 +0000 (09:45 +0000)]
Comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34433 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoGuiDocument.cpp: remove superfluous comment
Uwe Stöhr [Tue, 18 May 2010 02:59:48 +0000 (02:59 +0000)]
GuiDocument.cpp: remove superfluous comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34430 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* GuiDocument:
Uwe Stöhr [Tue, 18 May 2010 02:56:36 +0000 (02:56 +0000)]
* GuiDocument:
- fix #6699; use_geometry now only means that the user don't want to have custom margins; that geometry also needs to be loaded for some paper formats is already done in BufferParams.cpp
- remove portraitChanged() because this was useless - A4 landscape is still A4 and still uses the default margins

* BufferParams.cpp: only output the margins if the option "Default margins" is not checked - this was a bug in the margins UI

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34429 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago- paper.h: fix comment
Uwe Stöhr [Tue, 18 May 2010 01:34:07 +0000 (01:34 +0000)]
- paper.h: fix comment
- BufferParams.cpp: fix the default case

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34428 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agosupport for all page sizes that are supported by the geometry package; fileformat...
Uwe Stöhr [Tue, 18 May 2010 01:22:08 +0000 (01:22 +0000)]
support for all page sizes that are supported by the geometry package; fileformat change

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34427 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agofr.po: updates by Jean-Pierre
Uwe Stöhr [Mon, 17 May 2010 23:05:03 +0000 (23:05 +0000)]
fr.po: updates by Jean-Pierre

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34426 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTypo from Sven
Pavel Sanda [Mon, 17 May 2010 20:56:12 +0000 (20:56 +0000)]
Typo from Sven

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34425 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCoding style, thanks Abdel.
Pavel Sanda [Mon, 17 May 2010 08:15:04 +0000 (08:15 +0000)]
Coding style, thanks Abdel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34417 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoNext attempt on correct newlines in Message pane
Pavel Sanda [Sun, 16 May 2010 22:02:15 +0000 (22:02 +0000)]
Next attempt on correct newlines in Message pane

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34416 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoKeep the string in synchro with the code around
Pavel Sanda [Sun, 16 May 2010 22:02:13 +0000 (22:02 +0000)]
Keep the string in synchro with the code around

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34415 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* RELASE-NOTES
Pavel Sanda [Sun, 16 May 2010 22:02:10 +0000 (22:02 +0000)]
* RELASE-NOTES

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34414 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agode.po: resolve a shortcut conflict
Uwe Stöhr [Sun, 16 May 2010 03:21:53 +0000 (03:21 +0000)]
de.po: resolve a shortcut conflict

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34413 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoTweak it.po
Enrico Forestieri [Sat, 15 May 2010 19:21:58 +0000 (19:21 +0000)]
Tweak it.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34411 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUpdate it.po
Enrico Forestieri [Sat, 15 May 2010 16:25:42 +0000 (16:25 +0000)]
Update it.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34410 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* sk.po
Kornel Benko [Sat, 15 May 2010 07:39:10 +0000 (07:39 +0000)]
* sk.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34409 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago- remerge po-files
Uwe Stöhr [Sat, 15 May 2010 03:14:13 +0000 (03:14 +0000)]
- remerge po-files
- de.po: some translations by me

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34408 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agofr.po: translations by Jean-Pierre
Uwe Stöhr [Sat, 15 May 2010 03:01:30 +0000 (03:01 +0000)]
fr.po: translations by Jean-Pierre

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34407 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago- BufferParams.cpp: change string to make it more clear (requested by Jean-Pierre)
Uwe Stöhr [Sat, 15 May 2010 02:58:23 +0000 (02:58 +0000)]
- BufferParams.cpp: change string to make it more clear (requested by Jean-Pierre)
- GuiView.cpp: fix grammar/logic

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34406 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago#6694 - reset line spacing to single if no custom size is defined
Pavel Sanda [Fri, 14 May 2010 19:12:59 +0000 (19:12 +0000)]
#6694 - reset line spacing to single if no custom size is defined

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34405 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUpdate it.po
Enrico Forestieri [Thu, 13 May 2010 21:13:40 +0000 (21:13 +0000)]
Update it.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34404 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoes.po: translations by Ignacio
Uwe Stöhr [Thu, 13 May 2010 19:23:50 +0000 (19:23 +0000)]
es.po: translations by Ignacio

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34403 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUpdate LFUNs.lyx
Pavel Sanda [Tue, 11 May 2010 12:01:04 +0000 (12:01 +0000)]
Update LFUNs.lyx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34402 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* doxy
Pavel Sanda [Tue, 11 May 2010 12:00:59 +0000 (12:00 +0000)]
* doxy

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34401 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* sk.po
Kornel Benko [Tue, 11 May 2010 10:44:06 +0000 (10:44 +0000)]
* sk.po

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34400 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoback to svn
Pavel Sanda [Tue, 11 May 2010 10:02:48 +0000 (10:02 +0000)]
back to svn

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34398 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agotypo 2.0.0alpha3
Pavel Sanda [Tue, 11 May 2010 10:02:44 +0000 (10:02 +0000)]
typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34397 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoalpha 3
Pavel Sanda [Tue, 11 May 2010 10:02:41 +0000 (10:02 +0000)]
alpha 3

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34396 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoRemerge strings
Pavel Sanda [Tue, 11 May 2010 00:34:40 +0000 (00:34 +0000)]
Remerge strings

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34395 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoThis file is no more in the tree
Pavel Sanda [Tue, 11 May 2010 00:27:48 +0000 (00:27 +0000)]
This file is no more in the tree

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34394 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix crashes when the list of formts is empty.
Vincent van Ravesteijn [Mon, 10 May 2010 21:30:57 +0000 (21:30 +0000)]
Fix crashes when the list of formts is empty.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34393 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agofix warning
Jean-Marc Lasgouttes [Mon, 10 May 2010 12:34:34 +0000 (12:34 +0000)]
fix warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34392 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6686: Navigate back does not trigger a repaint
Vincent van Ravesteijn [Mon, 10 May 2010 11:02:45 +0000 (11:02 +0000)]
Fix bug #6686: Navigate back does not trigger a repaint

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34391 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix reverse search when the filename contains a forbidden character
Enrico Forestieri [Sat, 8 May 2010 23:53:35 +0000 (23:53 +0000)]
Fix reverse search when the filename contains a forbidden character
(including, but not only, spaces).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34390 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agodoc - reverse search will have problems with spaces in filenames
Pavel Sanda [Sat, 8 May 2010 19:09:45 +0000 (19:09 +0000)]
doc - reverse search will have problems with spaces in filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34389 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCorrect the font shape for IEEEaftertitletext and IEEEpubid after r34387.
Enrico Forestieri [Sat, 8 May 2010 18:09:29 +0000 (18:09 +0000)]
Correct the font shape for IEEEaftertitletext and IEEEpubid after r34387.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34388 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIn the IEEEtran class, the argument of \IEEEspecialpapernotice is
Enrico Forestieri [Sat, 8 May 2010 16:11:35 +0000 (16:11 +0000)]
In the IEEEtran class, the argument of \IEEEspecialpapernotice is
typeset in italic.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34387 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix (again) IEEEtran.layout.
Enrico Forestieri [Sat, 8 May 2010 15:55:48 +0000 (15:55 +0000)]
Fix (again) IEEEtran.layout.
- Restored broken compatibility with old documents due to the renaming
  of MarkBoth.
- Restored ordering such that to follow the same order obtained in the
  typeset result.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34386 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIEEEtran.lyx: change file according to previous commit:
Uwe Stöhr [Sat, 8 May 2010 14:42:48 +0000 (14:42 +0000)]
IEEEtran.lyx: change file according to previous commit:
- correct position of the page headings
- add author ID

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34385 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIEEEtran.layout:
Uwe Stöhr [Sat, 8 May 2010 14:38:09 +0000 (14:38 +0000)]
IEEEtran.layout:
- renamed markboth to page headins
- correct position of markboth (according to the IEEEtran example files, this has to be declared before the special paper notice)
- add style for IEEEpubid

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34384 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoRename IEEE_special_paper_notice as Special_Paper_Notice and
Enrico Forestieri [Sat, 8 May 2010 14:05:13 +0000 (14:05 +0000)]
Rename IEEE_special_paper_notice as Special_Paper_Notice and
IEEE_after_title_text as After_Title_Text, and move them such
that they appear in the correct order in the layout combo.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34383 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix IEEEtran.layout.
Enrico Forestieri [Sat, 8 May 2010 00:49:42 +0000 (00:49 +0000)]
Fix IEEEtran.layout.
- The default is 2 columns, so, specifying "Columns 2" suddenly changes
  the output of old documents which are now printed in one column.
- The font shape for IEEEmembership is Italic.
- As regards abstract and keywords:
  - The margin is First_Dynamic, not Dynamic.
  - The labels are "Abstract---" and "Index Terms---" with no label separation.
  - Alignment is not centered.
  - Font is small and black

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34382 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIEEEtran: update to fulfill the guidelines of IEEEtran version 1.7 (layout file is...
Uwe Stöhr [Fri, 7 May 2010 03:23:00 +0000 (03:23 +0000)]
IEEEtran: update to fulfill the guidelines of IEEEtran version 1.7 (layout file is almost rewritten)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34374 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoDisallow InsetMarginals in InsetTabulars.
Vincent van Ravesteijn [Wed, 5 May 2010 21:15:15 +0000 (21:15 +0000)]
Disallow InsetMarginals in InsetTabulars.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34373 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* TextMetrics.cpp: Line length.
Vincent van Ravesteijn [Wed, 5 May 2010 16:23:11 +0000 (16:23 +0000)]
* TextMetrics.cpp: Line length.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34372 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoJust a test whether lyx-cvs list works.
Pavel Sanda [Wed, 5 May 2010 16:12:58 +0000 (16:12 +0000)]
Just a test whether lyx-cvs list works.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34371 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6678: Crash when undoing backspace inside math-macro
Enrico Forestieri [Tue, 4 May 2010 16:16:20 +0000 (16:16 +0000)]
Fix bug #6678: Crash when undoing backspace inside math-macro

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34370 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix a crash due to Inset**::mouse_hover_[] containing an invalid pointer to a BufferView.
Vincent van Ravesteijn [Mon, 3 May 2010 23:04:51 +0000 (23:04 +0000)]
Fix a crash due to Inset**::mouse_hover_[] containing an invalid pointer to a BufferView.

Clear the mouse_hover state when closing the BufferView. Otherwise, there will be an invalid pointer stored in the Inset and crashing LyX when the Inset's destructor is called.

See also r33908, r34117, r34348, r34353, r34354, r34363 and bug #3900.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34365 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix another crash due to BufferView::last_inset_ being an invalid pointer.
Vincent van Ravesteijn [Mon, 3 May 2010 23:01:47 +0000 (23:01 +0000)]
Fix another crash due to BufferView::last_inset_ being an invalid pointer.

Do not clear the mouse_hover state from anywhere else then BufferView, such that the last_inset_ pointer gets nulled. Besides, there is no reason to clear the mouse_hover state on collapsing the Inset.

See also r33908, r34117, r34348, r34353, r34354 and bug #3900.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34364 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAnother non-base class with a virtual destructor. Sorry for the spam (trying to learn...
Vincent van Ravesteijn [Mon, 3 May 2010 22:57:28 +0000 (22:57 +0000)]
Another non-base class with a virtual destructor. Sorry for the spam (trying to learn git, but I seem to forget files :).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34363 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAnother base class without a virtual destructor.
Vincent van Ravesteijn [Mon, 3 May 2010 22:55:40 +0000 (22:55 +0000)]
Another base class without a virtual destructor.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34362 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoThese should not raise the impression that children should reimplement these functions.
Vincent van Ravesteijn [Mon, 3 May 2010 22:18:00 +0000 (22:18 +0000)]
These should not raise the impression that children should reimplement these functions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34361 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMake destructors virtual in base classes and only there.
Vincent van Ravesteijn [Mon, 3 May 2010 21:43:46 +0000 (21:43 +0000)]
Make destructors virtual in base classes and only there.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34360 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAdd comment just as in GuiView.cpp.
Vincent van Ravesteijn [Mon, 3 May 2010 20:08:31 +0000 (20:08 +0000)]
Add comment just as in GuiView.cpp.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34359 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoWe want to check for the new value name instead for the old value cmdName_.
Vincent van Ravesteijn [Mon, 3 May 2010 17:55:44 +0000 (17:55 +0000)]
We want to check for the new value name instead for the old value cmdName_.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34358 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago*List.h: Move the class documentation into the lyx::namespace to be picked up correct...
Vincent van Ravesteijn [Mon, 3 May 2010 13:36:19 +0000 (13:36 +0000)]
*List.h: Move the class documentation into the lyx::namespace to be picked up correctly by doxy.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34357 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* lyxfind: Remove unnecessary non-const reference as parameter.
Vincent van Ravesteijn [Sun, 2 May 2010 22:33:36 +0000 (22:33 +0000)]
* lyxfind: Remove unnecessary non-const reference as parameter.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34355 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix another crash due to BufferView::last_inset_ being an invalid pointer.
Vincent van Ravesteijn [Sun, 2 May 2010 19:12:25 +0000 (19:12 +0000)]
Fix another crash due to BufferView::last_inset_ being an invalid pointer.

Now, we only want to let the last_inset_ pointer point at insets that accept the mouse_hover setting. Otherwise, the pointer is not cleared on deletion of the inset.

See also r33908, r34117, r34348, r34353 and bug #3900.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34354 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix the assertion assert introduced in r34348 which got fired when eg. deselecting...
Vincent van Ravesteijn [Sat, 1 May 2010 23:04:08 +0000 (23:04 +0000)]
Fix the assertion assert introduced in r34348 which got fired when eg. deselecting an InsetCommand:

- we have to have a copy constructor in InsetCommand to clear the mouse_hover_ map and not to copy it,
- there is no need to have mouse_hover_() in the initialisation list,
- there is no need to copy the auto_open_ map.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34353 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAvoid compiler warning about unused parameter.
Enrico Forestieri [Sat, 1 May 2010 11:38:05 +0000 (11:38 +0000)]
Avoid compiler warning about unused parameter.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34352 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoImplement LFUN_UNICODE_INSERT in mathed.
Enrico Forestieri [Fri, 30 Apr 2010 22:23:19 +0000 (22:23 +0000)]
Implement LFUN_UNICODE_INSERT in mathed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34351 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCorrectly enable/disable the filter label and textfield in the TocWidget. Also, short...
Vincent van Ravesteijn [Fri, 30 Apr 2010 15:56:54 +0000 (15:56 +0000)]
Correctly enable/disable the filter label and textfield in the TocWidget. Also, shorten the code a bit.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34350 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCompile fix for r34348.
Vincent van Ravesteijn [Fri, 30 Apr 2010 15:37:19 +0000 (15:37 +0000)]
Compile fix for r34348.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34349 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #3900: Mathed corners displayed without mouse hover.
Vincent van Ravesteijn [Fri, 30 Apr 2010 14:55:37 +0000 (14:55 +0000)]
Fix bug #3900: Mathed corners displayed without mouse hover.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34348 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMouse hover property should be dependent on the specific bufferview. If there are...
Vincent van Ravesteijn [Fri, 30 Apr 2010 14:47:46 +0000 (14:47 +0000)]
Mouse hover property should be dependent on the specific bufferview. If there are 2 views showing the same buffer, an Inset can be shown as hovered in only one view.

This is also in preparation of a decent fix for bug #3900.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34347 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6677: GUI button disappears in external template inset.
Vincent van Ravesteijn [Fri, 30 Apr 2010 14:11:46 +0000 (14:11 +0000)]
Fix bug #6677: GUI button disappears in external template inset.

Initialize the preview_mode variable.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34346 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago* GuiSpellchecker.cpp: fix bug 6676.
Jürgen Spitzmüller [Fri, 30 Apr 2010 09:52:00 +0000 (09:52 +0000)]
* GuiSpellchecker.cpp: fix bug 6676.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34345 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoThere is no reason for inhibiting the symbols dialog in mathed.
Enrico Forestieri [Fri, 30 Apr 2010 08:27:03 +0000 (08:27 +0000)]
There is no reason for inhibiting the symbols dialog in mathed.
The dialog only offers symbols defined in the unicodesymbols file
and they will be wrapped in \text{} when inserted in math mode,
so there is no risk that an untypesettable symbol gets inserted.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34344 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoSpanish Math.lyx: translations by Ignacio
Uwe Stöhr [Thu, 29 Apr 2010 22:01:50 +0000 (22:01 +0000)]
Spanish Math.lyx: translations by Ignacio

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34342 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFrench and Spanish Math.lyx: small but important typo
Uwe Stöhr [Wed, 28 Apr 2010 22:02:41 +0000 (22:02 +0000)]
French and Spanish Math.lyx: small but important typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34339 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agotypo
Pavel Sanda [Wed, 28 Apr 2010 21:50:06 +0000 (21:50 +0000)]
typo

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34338 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUnify "* space" into "* Space", its just double work for translators.
Pavel Sanda [Wed, 28 Apr 2010 21:48:10 +0000 (21:48 +0000)]
Unify "* space" into "* Space", its just double work for translators.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34337 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUnify QQaud strings.
Pavel Sanda [Wed, 28 Apr 2010 21:48:08 +0000 (21:48 +0000)]
Unify QQaud strings.
Inside math toolbars we use "Quadratin". Dunno if this difference is intention.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34336 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUnify Inter-word and Interword space strings.
Pavel Sanda [Wed, 28 Apr 2010 21:48:03 +0000 (21:48 +0000)]
Unify Inter-word and Interword space strings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34335 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoGerman UserGuide.lyx: harmonize it with the other language versions:
Uwe Stöhr [Wed, 28 Apr 2010 21:42:11 +0000 (21:42 +0000)]
German UserGuide.lyx: harmonize it with the other language versions:
- update/cleanup of document preamble
- don't require the package wasysym to compile this file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34332 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoMath.lyx: the LaTeX-packages cancel and braket are no longer part of LaTeX standard...
Uwe Stöhr [Wed, 28 Apr 2010 21:39:23 +0000 (21:39 +0000)]
Math.lyx: the LaTeX-packages cancel and braket are no longer part of LaTeX standard installations (since this February)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34331 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoeu.po: translation updates for trunk by Iñaki Larrañaga Murgoitio
Uwe Stöhr [Wed, 28 Apr 2010 19:39:15 +0000 (19:39 +0000)]
eu.po: translation updates for trunk by Iñaki Larrañaga Murgoitio

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34329 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoThe character dialog was disabled in r30810 for solving an assertion
Enrico Forestieri [Wed, 28 Apr 2010 15:49:00 +0000 (15:49 +0000)]
The character dialog was disabled in r30810 for solving an assertion
due to a missing buffer and because the "dialog is only useful in texted".
The problem with the buffer member has been solved since then, and while
it is true that the character dialog is not much useful in mathed, it
is the only way for coloring only parts of equations. Given that this
would also be a regression with respect to 1.6, I am re-enabling it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34327 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoDon't hardcode Color_math, such that decorations and other math
Enrico Forestieri [Wed, 28 Apr 2010 13:19:09 +0000 (13:19 +0000)]
Don't hardcode Color_math, such that decorations and other math
elements can be drawn in the right color on screen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34326 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoAlso account for colors in math macros.
Enrico Forestieri [Wed, 28 Apr 2010 11:38:01 +0000 (11:38 +0000)]
Also account for colors in math macros.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34325 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6614: Preview Other Format Button Greys Out After Preview.
Vincent van Ravesteijn [Wed, 28 Apr 2010 04:51:05 +0000 (04:51 +0000)]
Fix bug #6614: Preview Other Format Button Greys Out After Preview.

getStatus() returns false for LFUN_BUFFER_VIEW when a previewing process is running. So, if this process has finished we should free the menu item.

P.S. on windows, the item does not get disabled anyway.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34324 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoFix bug #6619 : Display (Version Control) in Window Title.
Vincent van Ravesteijn [Wed, 28 Apr 2010 04:27:10 +0000 (04:27 +0000)]
Fix bug #6619 : Display (Version Control) in Window Title.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34323 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoThis is a dummy commit for posting the real changelog for the the last
Enrico Forestieri [Wed, 28 Apr 2010 02:15:46 +0000 (02:15 +0000)]
This is a dummy commit for posting the real changelog for the the last
two commits. Sorry guys, I should have really gone to sleep...

r34320
In mathed, preserve the color in a proper way, such as to not interfere
with the colors normally used to represent math objects.
When changing the color of a chunk of text containing math formulas,
now the formulas are rendered on screen in the chosen color, too.

r34321
Assure that constructs such as \mathbf{a\ensuremath{b}} are correctly
rendered on screen.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34322 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIndex: src/mathed/InsetMathEnsureMath.cpp
Enrico Forestieri [Wed, 28 Apr 2010 01:58:11 +0000 (01:58 +0000)]
Index: src/mathed/InsetMathEnsureMath.cpp
===================================================================
--- src/mathed/InsetMathEnsureMath.cpp (revisione 34304)
+++ src/mathed/InsetMathEnsureMath.cpp (copia locale)
@@ -13,8 +13,9 @@

 #include "InsetMathEnsureMath.h"

-#include "MathStream.h"
 #include "MathData.h"
+#include "MathStream.h"
+#include "MathSupport.h"

 #include <ostream>

@@ -34,7 +35,8 @@ Inset * InsetMathEnsureMath::clone() con

 void InsetMathEnsureMath::metrics(MetricsInfo & mi, Dimension & dim) const
 {
- FontSetChanger dummy(mi.base, "mathnormal");
+ bool really_change_font = isTextFont(from_ascii(mi.base.fontname));
+ FontSetChanger dummy(mi.base, "mathnormal", really_change_font);
  cell(0).metrics(mi, dim);
  metricsMarkers(dim);
 }
@@ -42,7 +44,8 @@ void InsetMathEnsureMath::metrics(Metric

 void InsetMathEnsureMath::draw(PainterInfo & pi, int x, int y) const
 {
- FontSetChanger dummy(pi.base, "mathnormal");
+ bool really_change_font = isTextFont(from_ascii(pi.base.fontname));
+ FontSetChanger dummy(pi.base, "mathnormal", really_change_font);
  cell(0).draw(pi, x, y);
  drawMarkers(pi, x, y);
 }

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34321 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoIndex: src/mathed/InsetMathHull.cpp
Enrico Forestieri [Wed, 28 Apr 2010 01:40:11 +0000 (01:40 +0000)]
Index: src/mathed/InsetMathHull.cpp
===================================================================
--- src/mathed/InsetMathHull.cpp (revisione 34304)
+++ src/mathed/InsetMathHull.cpp (copia locale)
@@ -328,6 +328,23 @@ docstring InsetMathHull::standardFont()
 }

+docstring InsetMathHull::standardColor() const
+{
+ docstring color;
+ switch (type_) {
+ case hullRegexp:
+ color = from_ascii("foreground");
+ break;
+ case hullNone:
+ color = from_ascii("foreground");
+ break;
+ default:
+ color = from_ascii("math");
+ }
+ return color;
+}
+
+
 bool InsetMathHull::previewState(BufferView * bv) const
 {
  if (!editing(bv) && RenderPreview::status() == LyXRC::PREVIEW_ON) {
@@ -417,8 +434,11 @@ void InsetMathHull::draw(PainterInfo & p
  return;
  }

+ bool const really_change_color = pi.base.font.color() == Color_none;
+ ColorChanger dummy0(pi.base.font, standardColor(), really_change_color);
  FontSetChanger dummy1(pi.base, standardFont());
  StyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
+
  InsetMathGrid::draw(pi, x + 1, y);

  if (numberedType()) {
Index: src/mathed/MathSupport.cpp
===================================================================
--- src/mathed/MathSupport.cpp (revisione 34311)
+++ src/mathed/MathSupport.cpp (copia locale)
@@ -653,6 +653,13 @@ bool isMathFont(docstring const & name)
 }

+bool isTextFont(docstring const & name)
+{
+ fontinfo * f = lookupFont(name);
+ return f && f->color_ == Color_foreground;
+}
+
+
 FontInfo getFont(docstring const & name)
 {
  FontInfo font;
Index: src/mathed/MathSupport.h
===================================================================
--- src/mathed/MathSupport.h (revisione 34311)
+++ src/mathed/MathSupport.h (copia locale)
@@ -51,6 +51,8 @@ bool isFontName(docstring const & name);

 bool isMathFont(docstring const & name);

+bool isTextFont(docstring const & name);
+
 // converts single cell to string
 docstring asString(MathData const & ar);
 // converts single inset to string
Index: src/mathed/InsetMathHull.h
===================================================================
--- src/mathed/InsetMathHull.h (revisione 34304)
+++ src/mathed/InsetMathHull.h (copia locale)
@@ -197,6 +197,8 @@ private:
  void changeCols(col_type);
  ///
  docstring standardFont() const;
+ ///
+ docstring standardColor() const;
  /// consistency check
  void check() const;
  /// can this change its number of rows?
Index: src/MetricsInfo.cpp
===================================================================
--- src/MetricsInfo.cpp (revisione 34312)
+++ src/MetricsInfo.cpp (copia locale)
@@ -235,11 +235,15 @@ FontSetChanger::FontSetChanger(MetricsBa
  save_ = mb;
  FontSize oldsize = save_.font.size();
  ColorCode oldcolor = save_.font.color();
+ docstring const oldname = from_ascii(save_.fontname);
  mb.fontname = name;
  mb.font = sane_font;
  augmentFont(mb.font, from_ascii(name));
  mb.font.setSize(oldsize);
- mb.font.setColor(oldcolor);
+ if (string(name) != "lyxtex"
+     && ((isTextFont(oldname) && oldcolor != Color_foreground)
+ || (isMathFont(oldname) && oldcolor != Color_math)))
+ mb.font.setColor(oldcolor);
  }
 }

@@ -252,11 +256,15 @@ FontSetChanger::FontSetChanger(MetricsBa
  save_ = mb;
  FontSize oldsize = save_.font.size();
  ColorCode oldcolor = save_.font.color();
+ docstring const oldname = from_ascii(save_.fontname);
  mb.fontname = to_utf8(name);
  mb.font = sane_font;
  augmentFont(mb.font, name);
  mb.font.setSize(oldsize);
- mb.font.setColor(oldcolor);
+ if (name != "lyxtex"
+     && ((isTextFont(oldname) && oldcolor != Color_foreground)
+ || (isMathFont(oldname) && oldcolor != Color_math)))
+ mb.font.setColor(oldcolor);
  }
 }

@@ -294,17 +302,21 @@ WidthChanger::~WidthChanger()
 //
 /////////////////////////////////////////////////////////////////////////

-ColorChanger::ColorChanger(FontInfo & font, string const & color)
- : Changer<FontInfo, string>(font)
+ColorChanger::ColorChanger(FontInfo & font, docstring const & color,
+    bool really_change_color)
+ : Changer<FontInfo, ColorCode>(font), change_(really_change_color)
 {
- save_ = lcolor.getFromLyXName(color);
- font.setColor(lcolor.getFromLyXName(color));
+ if (change_) {
+ save_ = font.color();
+ font.setColor(lcolor.getFromLyXName(to_utf8(color)));
+ }
 }

 ColorChanger::~ColorChanger()
 {
- orig_.setColor(lcolor.getFromLyXName(save_));
+ if (change_)
+ orig_.setColor(save_);
 }

Index: src/MetricsInfo.h
===================================================================
--- src/MetricsInfo.h (revisione 34312)
+++ src/MetricsInfo.h (copia locale)
@@ -222,12 +222,16 @@ public:

 // temporarily change the used color
-class ColorChanger : public Changer<FontInfo, std::string> {
+class ColorChanger : public Changer<FontInfo, ColorCode> {
 public:
  ///
- ColorChanger(FontInfo & font, std::string const & color);
+ ColorChanger(FontInfo & font, docstring const & color,
+      bool really_change_color = true);
  ///
  ~ColorChanger();
+private:
+ ///
+ bool change_;
 };

 } // namespace lyx

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34320 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoUserGuide.lyx: fix another typo (sorry for the commit spam)
Uwe Stöhr [Wed, 28 Apr 2010 00:55:58 +0000 (00:55 +0000)]
UserGuide.lyx: fix another typo (sorry for the commit spam)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34318 a592a061-630c-0410-9148-cb99ea01b6c8

14 years agoCustomization.lyx: update fileformat because this manual already contains LyX 2.0...
Uwe Stöhr [Wed, 28 Apr 2010 00:44:16 +0000 (00:44 +0000)]
Customization.lyx: update fileformat because this manual already contains LyX 2.0-specific stuff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34316 a592a061-630c-0410-9148-cb99ea01b6c8

14 years ago- Additional.lyx, Math.lyx, UserGuide.lyx: fix typos
Uwe Stöhr [Wed, 28 Apr 2010 00:42:58 +0000 (00:42 +0000)]
- Additional.lyx, Math.lyx, UserGuide.lyx: fix typos
- EmbeddedObjects.lyx: fix typos and some English style fixes by J.R. Hudson

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34315 a592a061-630c-0410-9148-cb99ea01b6c8