Pavel Sanda
9ad45aa03d
Tooltip string
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-11 19:09:06 +00:00
Vincent van Ravesteijn
98f07840fc
Fix bug #6561 : Crash when using Spellchecker's language box when cursor is in math.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36242 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 20:06:21 +00:00
Richard Heck
6f76593069
Fix a bug in getFormattedReference().
...
Also, change from using the "cha" prefix for chapters, a la prettyref,
to the "chap" prefix, a la refstyle. We alias \pr@chap to \pr@cha for
prettyref users.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36238 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 16:45:55 +00:00
Enrico Forestieri
91208a2f79
Fix the 100% cpu load problem when previewing with Qt 4.2 and 4.3.
...
Now it works fine again with those Qt versions.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36235 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 15:35:56 +00:00
Enrico Forestieri
74a3fa9cf1
Correct style and squash compiler warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 14:36:35 +00:00
Enrico Forestieri
06e963f73e
Fix export for Qt < 4.4.0.
...
The 100% cpu problem is still there and the culprit turns out to be r35795.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36231 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-10 13:45:33 +00:00
Pavel Sanda
b71e606b94
Standard button label
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36217 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 01:54:28 +00:00
Enrico Forestieri
1f6370dfd7
Fix bug #6939 (Using math-insert to input math macros overwrites math expressions)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36216 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-09 00:03:32 +00:00
Richard Heck
1b46ff6989
Refstyle doesn't (yet) provide a default "subsection" reference. Nor,
...
actually, does prettyref, but we should do something here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36212 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 17:52:43 +00:00
Richard Heck
19aa16756c
Fix bug in fallback reference output with refstyle. Based on idea by
...
Jean-Pierre Chretien.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36211 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 17:50:02 +00:00
Peter Kümmel
433f4621cc
don't eat a CPU core when using Qt < 4.4 or EXPORT_in_THREAD == 1
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36208 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 08:40:12 +00:00
Uwe Stöhr
0a6f607c81
GuiTabular.cpp: workaround fix for #7022
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36207 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 04:36:11 +00:00
Peter Kümmel
6513556867
fix linker errors when using Qt 4.2
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36205 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-08 00:37:58 +00:00
Vincent van Ravesteijn
8e7d7e4295
Move the buffer related part from GuiView::renameBuffer to Buffer::saveAs.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36202 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 21:26:02 +00:00
Pavel Sanda
a83995b2c6
Squash warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36195 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 18:45:26 +00:00
Abdelrazak Younes
7ff3e84c5d
Fix assert in all InsetParamsWidget's for unicode characters (bug #7017 )
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36194 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 17:38:39 +00:00
Uwe Stöhr
e94a9732b1
stdinsets.inc, InsetERT.cpp: change "ERT" to "TeX" to be consistent - the documentation and all other menus use consequently since LyX 1.6.0 "TeX-code" because it turned out that ERT is a meaningless abbreviation for new users
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36189 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 15:31:05 +00:00
Uwe Stöhr
86b99f8f32
GuiTabular: support for multirow offset; fileformat change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36182 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 05:32:28 +00:00
Uwe Stöhr
930729048f
GuiTabular.cpp:
...
- apply our naming scheme to unit comboboxes
- set default units
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36180 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-07 03:01:26 +00:00
Jean-Marc Lasgouttes
b9b619641b
This patch implements proper ERT behaviour for normal layouts.
...
In particular, it makes paragraph breaks generate single \n in latex output
when ParbreakIsNewline is true
This means that it is not necessary anymore to use newlines to break lines.
Plain paragraph breaks can be used instead, like is done now in ERT/Listings.
This is mainly aimed at sweave support.
lyx2lyx support courtesy of Richard Heck
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36163 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 15:06:19 +00:00
Pavel Sanda
04e6076ebb
Comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36162 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 12:32:47 +00:00
Stephan Witt
2c7a7e72c2
implementation for "Compare with older revision" for CVS, correct return value of SVN::prepareFileRevision for failure to create tmp file
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36161 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 12:18:09 +00:00
Stephan Witt
ba00acbd65
check for user cancel or errors on vcs revert before reload of buffer in LFUN_VC_REVERT
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36160 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 11:54:08 +00:00
Richard Heck
da1e7e14ce
Squash warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36159 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 03:17:23 +00:00
Enrico Forestieri
79ef98205d
Fix bug #7019 (Math labels should not be escaped on saving)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36156 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:53:29 +00:00
Pavel Sanda
c9332413e5
Quickfix closing #6396 .
...
sleep sleep
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36154 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:38:35 +00:00
Pavel Sanda
69520456e0
Fix RCS part of #6396 . Btw revert is slightly broken now...
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36153 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 02:21:04 +00:00
Pavel Sanda
0586a14d63
Compil fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36150 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:34:03 +00:00
Vincent van Ravesteijn
4397cef1f8
src/support/debug.h/cpp:
...
- rename the private member dt to dt_,
- rename second_ and second_used_ to second_stream and second_enabled_ to have the same terminology as the stream_ and enabled_ member,
- remove FIXME because now we have a Qt pane showing the messages,
- adjust some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36149 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:22:47 +00:00
Stephan Witt
69dd56d6c4
CVS implementation for buffer-info vcs-author, cvs-date and cvs-time
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36148 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:20:42 +00:00
Pavel Sanda
badbd3dcc3
Compil fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36147 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-06 00:04:21 +00:00
Vincent van Ravesteijn
38e43ce4ca
Clarify comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36146 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:23:26 +00:00
Vincent van Ravesteijn
afa873dc5f
Remove the FileName parameter of Buffer::loadLyXFile and friends. Now, getAutosaveFileNameFor and getEmergencyFileNamefor can be removed too. Last, the call to lyxvc.file_found_hook can now be centralized and can be given the correct parameter (d->filename instead of the name of the emergency/autosave file).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36145 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 21:21:01 +00:00
Vincent van Ravesteijn
ab8d87f26a
Allow for nested setBusy calls.
...
Before, LyX could crash when calling setBusy(false) while LyX is still in a busy state due to a surrounding setBusy(true)/setBusy(false) construction.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36140 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 20:24:58 +00:00
Vincent van Ravesteijn
f226c9d3fc
Fix bug #6058 : Change tracking and versioning.
...
Computes a hash value for the authors when using change tracking.
Text.cpp, BufferParams.h, Author.h:
Change unsigned int to int because the hash values can be negative.
lyx2lyx:
Allow to convert negative author_ids.
See also: r30756.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36134 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 18:25:29 +00:00
Vincent van Ravesteijn
a4fd294373
Add a static assert to prevent compilation on platforms where int/usigned int are not 32-bits/4-bytes.
...
This is added to be sure that the to-be-added author hash is always 32-bit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36126 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-05 16:51:09 +00:00
Vincent van Ravesteijn
2810b7aef7
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36062 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 15:35:12 +00:00
Vincent van Ravesteijn
6f61652605
Fix part of bug #5561 : Issues with image pasting
...
Now the path to the pasted graphics is saved as a relative path if possible.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36058 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 14:28:33 +00:00
Richard Heck
f652f90af9
LyX does \makeat for us.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36030 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-04 12:08:01 +00:00
Richard Heck
f7e80e6681
More safety here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36013 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 20:15:04 +00:00
Richard Heck
01af564dc2
Fix bug #7014 . The problem here is that we get DEFSKIP if we don't
...
recognize the argument, but that leads to an infinite loop.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36012 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 20:12:18 +00:00
Uwe Stöhr
bbb8671328
GuiTabular.cpp: add comments
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36011 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 01:29:01 +00:00
Enrico Forestieri
31b5ba7e25
Be compatible with Qt 4.2 and 4.3 (Q_EMIT).
...
Actually, it still fails to link with anything less than Qt 4.4.0
due to the xxxAndDestroy() business in GuiView.cpp ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36009 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-03 00:38:35 +00:00
Richard Heck
dc5934737d
Improve display of index names under Insert>Lists/TOC.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36006 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 20:38:42 +00:00
Richard Heck
cddf32f152
Use bformat so we get RTL etc correct here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36005 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 20:31:52 +00:00
Pavel Sanda
f5123ccfa8
Add comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36003 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 19:54:08 +00:00
Pavel Sanda
70db6e30c8
Be compatible with Qt 4.2.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg162871.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36002 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 16:37:47 +00:00
Richard Heck
2a0fcda936
Perhaps this is overkill, but it can't hurt....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36001 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 15:42:45 +00:00
Richard Heck
efa0da26c8
Fix the following sort of crash, reported on the list. This is also
...
#6884 .
1. Open LyX. File>New. Document>Outline, to make sure the TOC is open.
That isn't necessary, but it helps you to see what is happening.
2. Create a section heading (alt-P, 2) with an x in it.
3. Split the screen.
4. File>New. You should now still see the TOC for the OLD buffer.
5. Click in the top screen. You now see an empty TOC (the one for the
empty buffer).
6. Click in the empty buffer. Other TOC!
7. Back to the "x" buffer. Empty TOC. Type something. Boom!
The problem is that teh setCurrentWorkArea() call eventually gets us to
structureChanged(), which accesses documentBufferView(). But that
doesn't get reset until later, and hence everything is out of sync.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35999 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 15:33:52 +00:00
Richard Heck
4645e3c56f
Make sure that the members of this enum get the same value on every
...
platform.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35995 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 14:50:07 +00:00
Abdelrazak Younes
3142a62c7a
Table dialog: Fix enabling/disabling of first header and last footer
...
check boxes.
This should fix bug #7008
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35993 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-02 13:35:16 +00:00
Pavel Sanda
07fc85d3e2
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35986 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 23:24:24 +00:00
Stephan Witt
2f10f8edd0
first step to cure the VCS load problem
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35985 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 22:20:54 +00:00
Richard Heck
96dfec471f
Partially fix #5108 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35984 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:54:20 +00:00
Uwe Stöhr
f0b79f00fc
GuiTabular.cpp: fix #7006 : the caption checkbox was simply not connected
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35983 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:52:08 +00:00
Peter Kümmel
8718c455a6
check also if there is a QApplication instance
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35981 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:32:59 +00:00
Uwe Stöhr
3e7d87f489
GuiTabular.cpp: add a comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35979 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:20:27 +00:00
Abdelrazak Younes
8b7584846c
Fix bug #6997
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35977 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 21:00:03 +00:00
Richard Heck
fa6118e4af
Revert unintentional commit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35976 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 20:58:24 +00:00
Richard Heck
64e77d6c14
Fix bug #6888 .
...
This is why it was worth doing the updateBuffer() rewrite.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35975 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 20:57:10 +00:00
Pavel Sanda
5075f0f25f
typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35973 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 20:24:29 +00:00
Richard Heck
9b105fc6bf
Fix bug #7002 . I think this is correct, but Peter should check.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35970 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 19:37:59 +00:00
Uwe Stöhr
7c2b2c464b
InsetTabular.cpp: multirows are always left-aligned thus allow left alignment and forbid center alignment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35969 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 17:45:02 +00:00
Uwe Stöhr
90291acefb
InsetTabular.cpp: typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35968 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 17:12:46 +00:00
Uwe Stöhr
98b8e1eb81
InsetTabular.cpp: multirow cells are ALWAYS left aligned and thus cannot inherit the alignment of the column
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35967 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 17:09:38 +00:00
Uwe Stöhr
bc30270b35
InsetTabular.cpp: fix #7003 that I accidentally introduced when fixing #6958
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35966 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 16:16:40 +00:00
Stephan Witt
85b09e9d04
remove the translation context for vcs buffer info message for unimplemented features, the name of vcs info is hardcoded and ascii only
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35965 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 15:16:59 +00:00
Jürgen Spitzmüller
9ef7efd85a
whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35964 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 15:15:38 +00:00
Richard Heck
5c9dde4d3b
Had to be a typo, right?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35962 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 11:54:18 +00:00
Stephan Witt
17b3e30335
correct the gettext context for the format of the displayed error message for unknown vcs buffer-info insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35961 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 07:03:47 +00:00
Stephan Witt
81b0f275a8
correct the gettext format of the displayed error message for unknown vcs buffer-info insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35960 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 06:32:09 +00:00
Uwe Stöhr
c6fa2fa10e
InsetTabular.cpp: fix #7000
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35957 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 04:30:06 +00:00
Vincent van Ravesteijn
34338c474a
Remove unnecessary breaks.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35956 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 03:54:23 +00:00
Uwe Stöhr
fa695f939c
InsetTabular.cpp: fix #6985 - we need to break after unsetting otherwise case Tabular::MULTICOLUMN: would be executed afterwards reverting the unsetting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35955 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-01 03:26:25 +00:00
Vincent van Ravesteijn
892bc7dac3
In r35952 we reverted r35933, but InsetParamsWidget.h was forgotten.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35954 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 23:59:07 +00:00
Uwe Stöhr
e882f797bf
GuiTabular.cpp: apply immediately for all edit fields in the table dialog as discusses in #7001
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35953 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 22:32:53 +00:00
Richard Heck
79811671e9
Revert r35933. There are insets not based upon InsetCommand, such as
...
VSpace, that use InsetParamsWidget, so we cannot have code that requires
InsetCommandParams there.
Stephen Witt reported a similar crash with the info dialog.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35952 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 18:56:32 +00:00
Vincent van Ravesteijn
a59fec10ff
Squash warning about unused variable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35949 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 14:41:59 +00:00
Vincent van Ravesteijn
dad3c8ce74
Fix compilation for platforms besides Windows
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35948 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 14:39:50 +00:00
Vincent van Ravesteijn
f90f3d146b
More include frenzy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 01:26:50 +00:00
Vincent van Ravesteijn
222b3580d2
More include frenzy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35940 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 01:04:03 +00:00
Vincent van Ravesteijn
a7e2b7eea9
Remove some unneeded includes from some header files.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35939 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-31 00:31:57 +00:00
Abdelrazak Younes
766e300f42
Migrate GuiPrintNomencl to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35938 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 20:14:57 +00:00
Stephan Witt
4b57639ad0
after successfuly load of autosave or emergency file the VCS state has to be checked for the original name
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35937 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 20:05:55 +00:00
Uwe Stöhr
30879d6553
GuiTabular.cpp: display width and alignment for multirows, fixes rest of #6958
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35934 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 19:00:23 +00:00
Abdelrazak Younes
5320ce0206
GuiLabel: generalize initialiseParams() and transfer to InsetParamsWidget as this will be used by other insets. The implementation of the new paramsToDialog(InsetCommandParams) is optional.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35933 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 18:40:53 +00:00
Uwe Stöhr
eb0c10b6b4
InsetTabular.cpp: multirows inherit the width and the alignment from the column; this fixes #6958 partly
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35932 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 18:11:37 +00:00
Uwe Stöhr
eef6b32eff
InsetTabular.cpp; remove SET_SPECIAL_MULTIROW because according to the multirow documentation multirows inherit the LaTeX-argument from the current column since they don't span multiple columns
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35931 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 16:36:08 +00:00
Uwe Stöhr
7c6a642f01
GuiTabular.cpp: fix #7001
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35930 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 16:26:12 +00:00
Jürgen Spitzmüller
a3a51b545c
* InsetTabular.cpp:
...
- only set/unset a caption if necessary.
This fixes the setting of multicols via dialog (part of bug 6985)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35929 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 11:28:16 +00:00
Jürgen Spitzmüller
023afde520
* GuiTabular.cpp:
...
- fix console warning about unknown feature.
Not sure if SET_SPECIAL_MULTIROW is supposed to do something eventually, but if not, specialAlignmentED should probably be disabled in multirows.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35928 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-30 10:41:46 +00:00
Vincent van Ravesteijn
3bb31a04dd
Remove saveCheckSum from Buffer::reload again. Now, the saveCheckSum call is already in Buffer::readFile, so it is not needed here anymore.
...
Also move the saveCheckSum declaration to the section of functions involving reading/writing. And note that it should be made private.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35925 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 23:51:13 +00:00
Richard Heck
3a4ebf380c
Squash warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35923 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 20:54:26 +00:00
Vincent van Ravesteijn
eff06951a9
Centralize preview generation/deletion code to Buffer::updatePreviews and Buffer::removePreviews.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35922 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 20:00:51 +00:00
Vincent van Ravesteijn
0c9da47505
BufferList should not determine that the current author has id = 0. This should really be in AuthorList. Besides BufferList shouldn't have to create an Author by itself.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35921 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:27:55 +00:00
Vincent van Ravesteijn
be40bdeb3e
Write code in a language that everyone understands ?
...
Does anyone have a clue why nvec is declared static here ? Or can I remove it ?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:10:54 +00:00
Vincent van Ravesteijn
e703e02db5
Compile fix in case DEVEL_VERSION is defined.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35919 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:07:41 +00:00
Vincent van Ravesteijn
076803fdb1
BufferList.h: adjust some comments and group the functions that are just here because they iterate over all buffers.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35918 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 19:00:06 +00:00
Vincent van Ravesteijn
e9e577f6a4
All occurrences of buf->errors("Parse") in GuiApplication an GuiView are positioned after a call to GuiView::loadDocument which already should handle any errors.
...
GuiView::loadDocument also already calls setBuffer(), so this is not needed everytime too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35917 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 18:57:40 +00:00
Vincent van Ravesteijn
e82cd410c1
Pass the Buffer to GuiView::reloadBuffer. We always know which buffer we want to reload, so don't ask the documentBufferView again.
...
Besides, now we can always call GuiView::reloadBuffer instead of calling Buffer::reload directly. This means we don't have to do the error handling each time over and over again.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35916 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 18:50:48 +00:00
Richard Heck
455ac11cfc
Bit of cleanup around the Format view and edit code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35914 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 17:14:00 +00:00
Richard Heck
2b067ed466
Constness.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35913 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 17:08:31 +00:00
Jürgen Spitzmüller
3381784318
fix #6998 . Center alignment is the default, also with multirow.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35912 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 17:02:01 +00:00
Vincent van Ravesteijn
ef7ecea2b3
Move the call to Buffer::errors("Parse") from BufferView::insertLyXFile to GuiView::insertLyXFile.
...
Buffer::errors("Parse") is called 7 times in the whole project. 4 times from GuiView and three times from functions in other classes, but which are (almost) only called from the GuiView.
Buffer::errors is used to signal the GUI that there might be an error occuring, but what sense does it make if it is only called from the Gui ?
Isn't it better to let the function return wether it succeeded or not and let the GuiView take action in doing something with the possible errors.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35911 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 16:51:50 +00:00
Vincent van Ravesteijn
c9a91c5474
Relay the ReadStatus all the way up to the GUI also for Buffer::reload().
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35908 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 16:26:32 +00:00
Richard Heck
91b4afa3c1
This has to be delayed, since otherwise it provides the command before
...
the user gets to do so.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35907 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 14:31:52 +00:00
Richard Heck
16a1c042ef
Fix prettyref output.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35906 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 13:07:05 +00:00
Richard Heck
6fa8ea97c4
Complete Jurgen's fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35905 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 13:06:52 +00:00
Jürgen Spitzmüller
40f06a50de
* InsetTabular.cpp: simplification; no change in functionality.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35902 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 11:33:48 +00:00
Jürgen Spitzmüller
ec1fd2a860
* InsetTabular.cpp: simplification; no change in functionality.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35899 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 10:15:50 +00:00
Jürgen Spitzmüller
2b604413e7
* GuiDocument.cpp:
...
use translateIfPossible here, since the module names might be non-ASCII
(thanks rgh).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35898 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 08:34:26 +00:00
Uwe Stöhr
fadde98eb3
InsetTabular: implement some SET/UNSET functions as prerequisite to fix #6985
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35897 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 04:09:49 +00:00
Uwe Stöhr
b47d15cb71
GuiTabular.cpp: table caption inside table is only allowed for longtables (fixes regression to LyX 1.6.x)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35896 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 01:38:58 +00:00
Uwe Stöhr
c378fede8b
InsetTabular.cpp: fix #6585 also for wrapped floats - thanks Vincent
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35895 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 01:29:53 +00:00
Uwe Stöhr
a0b84e0ba0
GuiTabular.cpp: fix #6585
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35894 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 01:18:18 +00:00
Vincent van Ravesteijn
2bbf8e5f2d
Remove InsetCommand::mailer_name_.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35893 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 00:46:21 +00:00
Vincent van Ravesteijn
aafe985042
Remove the now unused parameter of createDialogStr();
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35892 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 00:42:40 +00:00
Vincent van Ravesteijn
c5b9664476
Remove the name parameter from string2params and params2string. We can always derive the name with insetName(params.code()).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35891 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-29 00:25:28 +00:00
Richard Heck
e313d3a12b
Move saveCheckSum() call to Buffer::readFile(). Also, remove the
...
argument from that function. We are always saving the checksum for the
Buffer's file. The argument is a left-over from a time when we did the
wrong thing and saved it for e.g. the emergency file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35890 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 22:12:29 +00:00
Richard Heck
2101b37a0f
Rename invisible buffers to hidden ones, thanks to John McC-D.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35889 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 22:00:50 +00:00
Richard Heck
c4f5d8fae2
Typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35888 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 20:23:39 +00:00
Richard Heck
84717d0fcc
Lemma definition for refstyle.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35887 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 17:35:28 +00:00
Richard Heck
d8d239cae0
InsetParamsWidget should not just ignore the initialization data. I
...
don't know if there are similar issues with other dialogs based on it,
but this seems to fix it for GuiLabel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35886 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:31:14 +00:00
Richard Heck
c4faeb75db
Comments mostly.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35885 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:28:57 +00:00
Richard Heck
98525b5d3d
Fix typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35884 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:28:16 +00:00
Richard Heck
249fe0167e
Took out too much in r35582.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35883 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 16:04:46 +00:00
Richard Heck
1fbddcb149
Change the way we output formatted references under refstyle to avoid
...
some problems with the previous \\lyxref macro.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35882 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 15:15:14 +00:00
Enrico Forestieri
8590a51f9b
Fix bug #6589 (Crash when reverting to saved while cursor is in mathed)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35880 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 12:32:32 +00:00
Enrico Forestieri
3ebcbf5b32
Fix bug #6965 (Crash editing ERT in math mode)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35879 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-28 11:13:47 +00:00
Vincent van Ravesteijn
6d82aacf48
Remove InsetRef::isLatex. This no longer needed as we always can access the Buffer nowadays from the Inset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35874 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 22:34:18 +00:00
Vincent van Ravesteijn
c75d667e78
Organize header files in src\insets.
...
- Functions that inherit from the same baseclass are grouped together with a command;
- Functions that inherit should not have a doxy entry;
- Other functions are also grouped together as much as possible;
- Some function don't need to be implemented if they return the same as the baseclass;
- and more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35873 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 21:35:13 +00:00
Abdelrazak Younes
716cfaea68
Another compile fix
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35872 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:18:50 +00:00
Abdelrazak Younes
ea96796437
Compile fix, sorry.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35871 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:15:35 +00:00
Abdelrazak Younes
190439eccf
GuiNomencl.xxx: Rename to be in line with class name.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35870 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:05:38 +00:00
Abdelrazak Younes
ee535fa8ea
Migrate GuiNomencl to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35869 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 20:01:49 +00:00
Abdelrazak Younes
585f8b9fda
Migrate GuiLabel to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35868 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 17:25:55 +00:00
Abdelrazak Younes
26dc500557
Migrate GuiHyperlink to InsetParamsDialog.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35867 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 17:02:42 +00:00
Abdelrazak Younes
77713af558
InsetParamsDialog: fix Restore button enabling/disabling.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35866 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 12:55:57 +00:00
Vincent van Ravesteijn
e52a8ba627
Revert r32909: make input completion case sensitive again.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35864 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 08:45:21 +00:00
Vincent van Ravesteijn
49beed7437
Fix bug #6989 : Be somewhat more secure with the homebrew dynamic asserts that were changed in r35855.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35863 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 07:04:58 +00:00
Vincent van Ravesteijn
faab3618ae
Fix two potential crashes due to invalid static_casts.
...
An example of a fatal function call is "gotoInset(this, NOTE_CODE, true)". Luckily we don't check for the contents in LFUN_NOTE_NEXT.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35860 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-27 00:42:43 +00:00
Kornel Benko
48a8d24328
Make it compilable, missing parentheses
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35859 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 19:38:45 +00:00
Vincent van Ravesteijn
afc87eb625
Let's add one step of security more here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35858 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 17:00:43 +00:00
Jürgen Spitzmüller
74b9bce881
* GuiDocument.cpp: translate module names also in descriptions (bug 6987)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35857 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 16:53:59 +00:00
Vincent van Ravesteijn
07924ac300
Remove some unnecessary static_casts and add two FIXMEs about casts that don't look safe.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35856 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 16:45:21 +00:00
Vincent van Ravesteijn
573500dd04
Remove unneccessary uses of dynamic_cast from the code.
...
A dynamic_cast is necessary when:
- the object to be casted is from an external library because we can't add Qxxx::asXxxx() to Qt e.g.:
* QAbstractListModel to GuiIdListModel,
* QValidator to PathValidator,
* QWidget to TabWorkArea,
* QWidget to GuiWorkArea;
- the object is to be casted from an interface to the implementing class, because the Interface does not know by whom it is implemented:
* ProgressInterface to GuiProgress,
* Application to GuiApplication.
A dynamic_cast can be replaced by:
- already existing as***Inset() functions, e.g.:
* asHullInset(),
* asInsetMath()->asMacro(),
* asInsetText();
- a static_cast when we are sure this can't go wrong, e.g.:
* we are sure that CellData::inset->clone() is an InsetTableCell,
* in cases where we explicitly check it->lyxCode().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35855 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 15:03:51 +00:00
Vincent van Ravesteijn
8d10d82392
Buffer: Rename function names:
...
- rename readFromVC to extractFromVC because this function actually doesn't read anything as compared to readEmergency, readAutosave and so on.
- rename readEmergency and readAutosave to loadEmergency and loadAutosave just like loadLyXFile and loadThisLyXFile. Only in loadThisLyXFile we switch to the actually reading of a file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35854 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 13:27:06 +00:00
Vincent van Ravesteijn
6ba6d4120d
Compile fix.
...
I forgot this in the previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35853 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 13:19:26 +00:00
Vincent van Ravesteijn
f311377671
Buffer: Make Buffer::readFile() private.
...
It's strange to have a public interface which has a function loadLyXFile and a function readFile. A user of this class will be confused about the difference.
Therefore, loadThisLyXFile will be next to loadLyXFile to stress that loadThisLyXFile will not load another file ;). I don't know whether all of you like that this function just calls readFile, but it feels good this way. All public paths for loading a file will now go through loadThisLyXFile (i.e. the paths that come from loadLyXFile), while readFile is a pure private function. If this doesn't make sense, just shout.
I think this improves the readability of the class.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35852 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 13:17:10 +00:00
Vincent van Ravesteijn
9063402fca
Buffer.h: Cleanup, Sorting, and Improvements:
...
- group the read and emergency/autosave functions,
- add comments to the functions,
- adjust visibility of functions,
- add FIXMEs to some functions which are still unneccesarily public.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35851 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 12:54:31 +00:00
Vincent van Ravesteijn
5518b04248
Adjust comments to the truth.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35850 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 12:34:04 +00:00
Uwe Stöhr
dbe3d79e15
InsetTabular.cpp: remove comment, we already discussed this and the star as default was the result
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35847 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 02:02:10 +00:00
Vincent van Ravesteijn
8693ae474b
Proper implementatiom of isInToc()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35846 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-26 01:10:19 +00:00
Vincent van Ravesteijn
2e42a7b645
We don't want InsetCommand to have a function updateCommand while this is not a special function of an InsetCommand, but only accidentally a shared function of two children. So, in this case I think we should just (dynamically) cast these objecten and call their own insetCommand function.
...
This also fixes compilation again. I forgot to cherry-pick all commits in git ;)...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35845 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 23:20:05 +00:00
Uwe Stöhr
b7764dbe42
InsetCommand.h: revert my last commit - makes it worse than it helps as quick workaround
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35843 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 22:13:52 +00:00
Uwe Stöhr
8a4933f250
InsetCommand.h: reintroduce updateCommand from r35840 to make it compilable (this void is used in CutAndPaste.cpp); Vincent, can you please have a look?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35842 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 21:51:28 +00:00
Enrico Forestieri
f967cd1c45
Proper fix for #6967 that does not reintroduce #6793
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35841 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 21:36:25 +00:00
Vincent van Ravesteijn
6e0f8f89b0
InsetCommand.h: Reorder and add comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35840 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 20:20:44 +00:00
Vincent van Ravesteijn
f270358904
Correct toc to floatlist
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35839 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 19:53:40 +00:00
Stephan Witt
85b1bba640
in client server mode CVS does not like full path operand for directory operation; LyX is in the repo dir already, so "." is used as target
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35836 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 17:49:45 +00:00
Vincent van Ravesteijn
e48942bbbb
Fix bug #6550 : "Any Changes will be lost" even when there are no changes.
...
Patch from JOhn McCabe-Dansted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35835 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 16:10:01 +00:00
Richard Heck
3e53707570
Little bit of cleanup, motivated by need to squash a warning.
...
The only substantive change here is moving the markDirty() call into the
first case. If we don't load the file successfully, then there is no
need to mark dirty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35834 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 15:33:51 +00:00
Vincent van Ravesteijn
314232d2ff
Properly convert from ReadStatus to boolean.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35833 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 15:21:08 +00:00
Vincent van Ravesteijn
80a09f4ea6
Merge readFile and readFile; and readFile and readString.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35832 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 14:14:44 +00:00
Vincent van Ravesteijn
5a30a98346
Buffer.cpp:
...
Extract convertLyXFormat function that runs LyX2LyX.
(and some compile fixes)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35831 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:55:39 +00:00
Vincent van Ravesteijn
5f9b12ec39
Buffer.cpp:
...
We need to save the checksum of the requested file. Not of the autosave file.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35830 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:32:38 +00:00
Vincent van Ravesteijn
aab708c594
Buffer.cpp:
...
- Move the saveCheckSum to both autosave file as emergency file read function.
- Extract the function parseLyxFormat.
- Improve comment about the older LyX format numbers.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35829 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:29:50 +00:00
Stephan Witt
c6d4080694
#6396 no dialog when no doc changes were done and check-in or revert is done
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35828 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:27:48 +00:00
Vincent van Ravesteijn
80a5dd8144
Buffer.cpp:
...
- Move some lines of code to more proper places.
- Let Buffer::readFile(FileName const &) return ReadStatus as well.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35827 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 13:04:13 +00:00
Vincent van Ravesteijn
c1a1d16967
Centralize the generation of the emergency and autosave filenames.
...
Forgot this one in the previous commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35826 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:46:16 +00:00
Vincent van Ravesteijn
375db69d99
Centralize the generation of the emergency and autosave filenames.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35825 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:31:22 +00:00
Richard Heck
5cd48620f1
Return early again if there's nothing to do. Also, mark the buffer dirty
...
only if we manage to read the autosave file successfully.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35824 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:24:15 +00:00
Vincent van Ravesteijn
1d55e97b2d
Oops.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35823 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:19:39 +00:00
Vincent van Ravesteijn
1102636923
FFix warnings in Buffer::readString.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35822 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:18:09 +00:00
Richard Heck
1edd77ca30
Lessen indentation by returning early if there's nothing to do.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35821 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 12:14:10 +00:00
Vincent van Ravesteijn
df1c5ef611
Refactor Buffer.cpp: loadLyXFile():
...
- make a new function readFromVC(),
if the file does not exist, try to extract it from the version control (RCS),
- make a new function readEmergency(),
try to read the emergency file that is associated to the file we are trying to read,
- make a new function readAutosave(),
try to read the autosave file that is associated to the file we are trying to read,
- merge loadLyXFile() and readFileHelper(),
this new function now determines which file to read.
- add more ReadStatus elements to describe failures.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35819 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 11:57:56 +00:00
Vincent van Ravesteijn
75773f3c22
Use Buffer::ReadStatus as a return value for Buffer::loadLyXFile.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35818 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 10:18:42 +00:00
Vincent van Ravesteijn
058035bf2c
One should use dynamic_casts for inheritance-based casting.
...
(This is a little necessary clean-up of my tree.)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35817 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 09:49:24 +00:00
Stephan Witt
a2c998d5d0
avoid warnings for unused parameters
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35816 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 08:12:01 +00:00
Stephan Witt
bcbe6ae960
* implementation of status check and use it for checkIn and revert.
...
helps the user to avoid errors and leads to more informative messages.
* implementation of diff and use it for the repoUpdate operation.
* add the check for merge conflicts in checkOut.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35813 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 05:37:04 +00:00
Vincent van Ravesteijn
ba19e8b5dd
Fix bug #1839 : Ctrl+arrows don't move to next/prev table cell.
...
Patch from Punyashloka Biswal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35812 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-25 01:18:48 +00:00
Vincent van Ravesteijn
9fbc3dd5ba
Fix bug #5878 : Cursor position not restored in hidden documents.
...
A hidden document does not have an associated Cursor. So, each time we create a new workArea, we should restore the cursor position.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35811 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 23:41:15 +00:00
Vincent van Ravesteijn
1a9fe125f6
Update the cursor shape also when the cursor shape changes without a mouse move actions.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35808 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 22:14:31 +00:00
Pavel Sanda
0590c77d47
gcc spits out million warnings
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35807 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:46:28 +00:00
Edwin Leuven
4e5d3469f6
have pointing cursor when hovering something clickable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35806 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:41:47 +00:00
Vincent van Ravesteijn
943288066d
Fix bug #6968 : isExternallyModified remains "true" after "Revert to Saved".
...
I forgot to save the checksum after reloading.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35805 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 21:38:19 +00:00
Vincent van Ravesteijn
72a93582b0
Add virtual bool Inset::clickable(..) to be used to change the cursor.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35804 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 20:11:40 +00:00
Vincent van Ravesteijn
72569c42ba
Implement mouse hovering for InsetExternal.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35803 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 19:25:36 +00:00
Vincent van Ravesteijn
a77d991e24
setMouseHover() functions can be const.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35802 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 19:24:36 +00:00
Vincent van Ravesteijn
8a550ba48a
I don't like negated logic. Especially not if it leads to the use of more !-operations.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 17:27:32 +00:00
Stephan Witt
4b7ad8b864
validate version control status after buffer save-as, avoid that for saveBuffer()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35800 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 17:14:10 +00:00
Vincent van Ravesteijn
70ed1095ec
Fix bug #6967 : Insert->Display Math should not insert a numbered formula and vice versa.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35799 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 16:12:22 +00:00
Stephan Witt
6749b1fa0a
invalidate vcs data if user cancelled the registrer operation, otherwise the registrer cannot be called again
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35798 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-24 13:26:00 +00:00
Pavel Sanda
6147f97ddd
Fix #6966 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35797 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 20:17:41 +00:00
Stephan Witt
b2137a65de
validate version control status after buffer save or save-as
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35796 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 18:35:13 +00:00
Peter Kümmel
d0feccc7ed
switch mouse to busy symbol every 3 seconds and then back to show the
...
user something is done in the background
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35795 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 10:49:45 +00:00
Jürgen Spitzmüller
d2b7bb6525
compile fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35792 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 08:29:57 +00:00
Vincent van Ravesteijn
f3ed8071d8
Fix #6597 : LyX Appears frozen if the process holding the clipboard is frozen
...
Implements CacheMimeData type so that we only need to query the
clipboard once on startup and once each time the contents of the
clipboard change. This is important as Qt takes 5 seconds to time-out when the clipboard is non-responsive.
Patch by John McCabe-Dansted.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35790 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 00:21:58 +00:00
Peter Kümmel
ad51a8e88e
bind makes a copy of the arguments by default. This is secure if the
...
bound object survives the existance of the arguments, but it also breaks
"change by non-const reference" parameter passing, like in
Alert::askForString. Here the arguments exists the whole bound function
call so we could pass by refernce.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35789 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-23 00:06:22 +00:00
Vincent van Ravesteijn
d9c6263c6a
Fix crashes and asserts if LyX doesn't have a view (on Mac for example).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35787 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 20:54:18 +00:00
Vincent van Ravesteijn
56bce65dd0
Restructure processFuncRequest* function family:
...
- move a comment back from to GuiApplication to GuiView.cpp, so we have the comment in the place where we decide to process the func request asynchronously;
- rename dispatchDelayed to processFuncRequestAsync to have the same terminology as in the other processFuncRequest* methods;
- introduce a new function processFuncRequest to complete the set of processFuncRequest* methods. It is strange that for the normal processFuncRequest one should suddenly use lyx::dispatch. Besides, I think it is good that the whole GUI will dispatch funcRequests through GuiApplication::processFuncRequest from now on;
- use the slotProcessFuncRequestQueue to relay to processFuncRequestQueue;
- properly camelBump addToFuncRequestQueue;
- group the implementation of the processFuncRequest* functions;
- document the side-effect of processFuncRequestAsync.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35784 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 18:08:21 +00:00
Vincent van Ravesteijn
f6c7f63f0b
GuiApplication.h cosmetics:
...
- reorder some function declarations,
- remove some declarations from the list of functions that inherit from Application,
- add and clarify some comments,
- whitespace.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35781 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 17:53:09 +00:00
Richard Heck
723b619317
Typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35780 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 17:08:57 +00:00
Jürgen Spitzmüller
a94fe452ff
Fix bug 6944: crash on drag and drop multiple files
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35779 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 15:46:46 +00:00
Jean-Marc Lasgouttes
9ebd4405cf
Make sweave process files with the correct encoding ( #6625 ).
...
The required the introduction of the new converter token $$e, that holds
the iconv name of the latex file encoding.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35772 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-22 07:51:39 +00:00
Richard Heck
b7b5c8cecd
Comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35764 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 22:04:06 +00:00
Peter Kümmel
d3392418c4
use QWaitCondition instead of QEventLoop for waiting on GUI thread-call finished, it's cheaper
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35763 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 21:29:08 +00:00
Richard Heck
eafafd8121
Revert r35760, as suggested by Vincent.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35762 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 19:33:29 +00:00
Richard Heck
c5200a848e
This one didn't make it to Unicode for some reason.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35761 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 19:15:31 +00:00
Richard Heck
1f87b2ef5d
Restore should, uh, restore the initial state. Other half of #6964 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35760 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:25:15 +00:00
Richard Heck
74c8cfc5f5
Fix bug #6964 . Problem was that we always saw the first branch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35759 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:20:12 +00:00
Richard Heck
5aba6f4fab
Make this a switch.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35758 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 18:01:06 +00:00
Richard Heck
bfa9991f93
Fix bug #6962 . I hadn't see how these were being escaped.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35757 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:56:00 +00:00
Richard Heck
1c059dba29
Simplify comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35756 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:53:21 +00:00
Vincent van Ravesteijn
725591221f
Fix bug #6963 : LaTeXUi.ui: add some accelerators and fix some clashes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35751 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 17:06:06 +00:00
Abdelrazak Younes
e0f9645186
DialogView: make GuiView the parent widget to partly solve bug #6710 .
...
This make sense anyway for all dialogs to be above the GuiView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35747 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 13:40:49 +00:00
Jürgen Spitzmüller
2cf666e3cd
* InsetCommandParams.cpp (prepareCommand):
...
- properly terminate LaTeX macros (reported in bug 6959).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35746 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 13:16:28 +00:00
Peter Kümmel
9cfeaf4c0a
only connect when needed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35743 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 08:02:09 +00:00
Peter Kümmel
cf570e0a8d
update .am files
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35742 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 01:15:12 +00:00
Peter Kümmel
fc8d5ee0b6
enable EXPORT_in_THREAD to prevent gui calls in non gui-threads
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35741 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 00:24:57 +00:00
Peter Kümmel
f54200b078
no QtGui in support
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35740 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-21 00:07:48 +00:00
Peter Kümmel
391634eb67
first include config.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35738 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:58:22 +00:00
Peter Kümmel
699ff50301
line ending
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35736 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:51:31 +00:00
Peter Kümmel
c259957b69
add generic helper class for calling functions in gui thread
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35735 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 23:50:49 +00:00
Uwe Stöhr
e35f55975e
GuiTabular.cpp: fix #6957
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35734 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 22:35:05 +00:00
Uwe Stöhr
8c4b64cf83
TabularUi.ui: fix position of spacer to make alignment entry "At Decimal Separator" readable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35733 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 22:33:32 +00:00
Peter Kümmel
a024d3aee6
use bind, is this really better?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35726 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-20 01:45:51 +00:00
Richard Heck
00e6dfb14b
Make updateMacros() descend into tables. Fixes #6897 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35718 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:36:11 +00:00
Richard Heck
65e871e100
Cut and paste solution to get export working. The issue is that the old
...
exportAndDestroy was calling:
buffer->doExport(format, true, update_unincluded);
where "true" means: Leave it in the tempdir. We need false, which means
we need another parameter, if we're not doing it as cut and paste.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35717 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:34:13 +00:00
Richard Heck
97910b056e
Revert r35715. Didn't mean to commit both.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35716 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:33:39 +00:00
Richard Heck
a773428fce
Cut and paste solution to get export working. The issue is that the old
...
exportAndDestroy was calling:
buffer->doExport(format, true, update_unincluded);
where "true" means: Leave it in the tempdir. We need false, which means
we need another parameter, if we're not doing it as cut and paste.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35715 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 15:10:13 +00:00
Vincent van Ravesteijn
4968c32293
Fix bug #6950 : Cursor remains in waiting state after incompatible command.
...
P.S. How do we prevent other cases like this? By throwing exceptions, we never know whether it's assured that we will return to the function to call setBusy(false). In JAVA you always have to either make a function throwable or to catch the exception, but AFAICS you have to crawl through the code to find out whether a function can throw an exception.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35714 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-19 10:42:54 +00:00
Vincent van Ravesteijn
152491f916
Some cosmetics (from my local cosmetics branch).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35708 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 14:20:03 +00:00
Vincent van Ravesteijn
5b2ede473e
Let asyncBufferProcessing return a value also if EXPORT_in_THREAD is turned off.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35706 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 11:30:30 +00:00
Peter Kümmel
e237d57020
fix formatting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35704 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:59:23 +00:00
Peter Kümmel
75a9d47628
fix comment:
...
We have to copy the files because export is asynchronous now,
What about the children?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35703 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:55:01 +00:00
Vincent van Ravesteijn
f35d1a2a4c
Fix bug #6869 : Crash when unindenting empty lines in listings inset.
...
- Remove some duplicated code;
- Do not call par.getChar(0) when the par is empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35702 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:48:29 +00:00
Peter Kümmel
131edd61dc
For testing: export asynchronous, #412
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35701 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 10:16:32 +00:00
Peter Kümmel
c5cf867e89
also use update_unincluded for preview,
...
maybe we could use bind here
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35700 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 09:35:33 +00:00
Peter Kümmel
c54fd8c74a
split out common async code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35699 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 09:31:50 +00:00
Peter Kümmel
d3312032ee
I assume this was a c&p error
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35697 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 08:23:29 +00:00
Peter Kümmel
40d2aed83a
prepare splitting out c&p code
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35696 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-18 08:18:56 +00:00
Richard Heck
680b6e78e4
Fix bug #6953 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35673 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 18:46:35 +00:00
Peter Kümmel
496f7a23fd
Fix bug 6650: Error Messages Repeated
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35664 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 12:06:47 +00:00
Peter Kümmel
5520817bd3
Use DispatchResult also in GuiView::dispatchVC to handle messages.
...
Make it possible to suppress messages stored in DispatchResult objects.
BUG: 6417
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35662 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-17 10:44:53 +00:00
Jürgen Spitzmüller
ee2eabd416
* GuiDelimiter.cpp: disable cut and paste inside the listviews (bug 6942).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35654 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-15 07:12:49 +00:00
Richard Heck
ee7dd4a11e
Whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35653 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 20:49:34 +00:00
Richard Heck
aa473bb568
Comments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35652 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 15:04:57 +00:00
Richard Heck
b1df2bd306
Move the screen redraw call out of the selection-setting routine. This
...
avoids multiple screen redraws in some cases.
If someone knows how to fix the FIXMEs in GuiErrorList and
GuiSpellcheker, I'd really appreciate it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35651 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 15:02:48 +00:00
Richard Heck
3af1fa5abb
I am basically trying here to get rid of random calls to
...
processUpdateFlags. This one is easy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35650 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:47:33 +00:00
Richard Heck
97b82d285d
Fix up some of the find and replace code again. This solves a bug
...
involving the messages and will also help sort out some dispatch stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35649 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:32:58 +00:00
Richard Heck
b3d854fc96
Update doxy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35648 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:27:05 +00:00
Richard Heck
4ff48f1d54
Need ifthen for this, too.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35647 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 14:02:49 +00:00
Pavel Sanda
0978e91ecf
This stuff is general enough for lstrings
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35646 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-14 11:01:15 +00:00
Vincent van Ravesteijn
824780b8a9
Rowpainter.cpp: Squeeze warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35643 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 20:18:16 +00:00
Richard Heck
3fe55bccc4
const
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35642 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:59:24 +00:00
Richard Heck
03046ddfb0
We only need to set this once.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35641 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:58:12 +00:00
Richard Heck
e9cf7aabcb
Const.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35640 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:57:57 +00:00
Richard Heck
d3e4bfb124
Change how some of the updating stuff is handled in lyxfind. I had no
...
idea what a mess this was.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35639 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:53:41 +00:00
Richard Heck
3b00f19cc2
Anonymize some things.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35638 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:30:37 +00:00
Richard Heck
9511e345c1
Why have an argument in an anonymous method if you aren't going to use
...
it?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35637 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:27:40 +00:00
Richard Heck
77a9dfcdba
More find cleanup.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35636 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:24:53 +00:00
Richard Heck
b261a6d247
Begin some cleanup of the find code. I'm trying to sort out some odd
...
dispatch behavior, but can't understand this code as it is. Why isn't
there any documenation here?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35635 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:19:21 +00:00
Richard Heck
07fd1d6b63
The inset DOES know what kind of update is needed, and it is supposed to
...
be telling us. I'm not sure why this wasn't being used any more.
If we find any missing updates, it may be because the inset dispatch
stuff wasn't doing its job.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35634 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:06:01 +00:00
Richard Heck
2e1d9ee944
Clean up a few update things.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35633 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:04:44 +00:00
Richard Heck
f0833aa774
This is already done by the previous call.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35632 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 18:03:10 +00:00
Richard Heck
6a80ce62ca
DispatchResult::update() ==> DispatchResult::screenUpdate()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35631 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 17:28:55 +00:00
Richard Heck
35eb1a2405
Fix bug #6316 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35630 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 17:12:25 +00:00
Stephan Witt
db16795b32
whitespace correction
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35627 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 16:01:06 +00:00
Richard Heck
85904c550d
Add ResetsFont tag to InsetLayout, toward fixing bug #5657 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35626 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 15:54:39 +00:00
Richard Heck
a08ab87d1e
Indicate alternative.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35625 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 15:10:57 +00:00
Richard Heck
28bf6a66ac
Fix #6948 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35624 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:43:13 +00:00
Richard Heck
01013c0785
Refstyle support. The user can now choose between prettyref and restyle
...
for formatted references. Fixes #2295 , in so far as it makes it possible
to translate formatted references.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35623 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-13 12:36:53 +00:00
Stephan Witt
3167edeb48
#6945 correct refresh range maximum on char erase
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35616 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 19:05:47 +00:00
Richard Heck
2a63b2d1cb
Customize getLayout for InsetFlex and change how we report name() back
...
to the simple version. We need to do it this way because we should NOT
really require the "Flex" prefix and, in fact, should permit other
prefixes to be used. Next commit for that.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35613 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 15:37:02 +00:00
Richard Heck
226853c060
style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35611 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 15:07:27 +00:00
Richard Heck
d4634167cc
Get rid of "CharStyle:", "Custom:", and "Element:" prefixes, per a
...
suggestion of JMarc's. Docs to follow.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35608 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-12 14:46:17 +00:00
Uwe Stöhr
e8a1fed47c
InsetBibtex.cpp:
...
- fix #1881 , fileformat change
- fix #6470
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35590 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-11 01:05:20 +00:00
Uwe Stöhr
5606b7d875
InsetBibitem.cpp: fix #5786
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35582 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-09 16:02:19 +00:00
Stephan Witt
034ee290b7
add implementation for CVS::checkOut
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35575 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:40:16 +00:00
Stephan Witt
fd341b3a0e
correct typo of button link init of open-from-template dialog
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35574 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:34:48 +00:00
Stephan Witt
1b93af1009
add some tests for LFUN_VC_REVERT and LFUN_VC_REPO_UPDATE
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35573 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:30:07 +00:00
Stephan Witt
de5aab29d4
add missing implementation of the check method for repo-update availability
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35572 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:26:12 +00:00
Stephan Witt
d87cdfa5e1
#5970 more exact modifier check for Tab keys filter
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35571 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:23:59 +00:00
Stephan Witt
0dc22fb82f
cell movement inside tables should not mark the document as modified
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35570 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-08 05:21:19 +00:00
Richard Heck
3b87f59e42
Fix bug #6929 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35564 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-05 15:21:14 +00:00
Uwe Stöhr
27423f93ba
InsetTabular.cpp: fix #6907 , patch by goriccardo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35561 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-05 01:14:34 +00:00
Stephan Witt
eec0a82dec
shift misspelled line slightly lower when inside running change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35558 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-04 18:18:37 +00:00
Stephan Witt
f9956c2d36
shift misspelled line slightly lower when inside running change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35557 a592a061-630c-0410-9148-cb99ea01b6c8
2010-10-04 16:26:12 +00:00
Stephan Witt
4127f57e32
#6796 add sizePolicy to get the size of pushbuttons proper in spell checker and find/replace ui
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35544 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-30 06:43:04 +00:00
Stephan Witt
e32396ba76
add missing spell check request on early return for deletion of text in change tracking mode
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35543 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 19:32:41 +00:00
Stephan Witt
cc7db294e2
#6917 correct spell check for deleted text in change tracking mode
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35542 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 19:31:16 +00:00
Stephan Witt
029ac601a8
disable the check box for compound word handling because of missing API for it with apples native spell checker
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35541 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 19:05:28 +00:00
Richard Heck
346f3aa503
Clean up this code a little bit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35540 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 13:14:20 +00:00
Richard Heck
4e799ee358
Simplify Buffer::allRelatives() now.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35539 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 13:07:12 +00:00
Richard Heck
5a46224f73
Remove the magic boolean in getChildren() from the public interface.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35538 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 13:05:57 +00:00
Richard Heck
a6d22abf03
Keep the "find the master" recursion in masterDocument().
...
We should probably be checking for recursive includes here, and we want
to do that in one place.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35537 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:55:39 +00:00
Richard Heck
da0f528287
Comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35536 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:50:45 +00:00
Richard Heck
d07c00032a
Simplify some of the find and replace code now, since allRelatives() is
...
stable and always has the root document at the beginning.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35535 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:50:24 +00:00
Richard Heck
6a85b8a96e
I am pretty sure we do not want duplicates here. What's worse, recursive
...
includes could crash this if we allow them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35534 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:30:31 +00:00
Richard Heck
2f1af8892b
I prefer this style....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35533 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:19:57 +00:00
Richard Heck
1def3de92e
This doesn't need to be a vector. Should be no change of behavior.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35532 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:19:23 +00:00
Richard Heck
7ff1a60d12
Introduce Buffer::hasChildren() and use it.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35531 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 12:17:24 +00:00
Richard Heck
f5696b8872
Use getChildren() to collect all the relatives. Note that this makes
...
allRelatives() "stable", in the sense that what it returns does not
depend upon which Buffer we start with.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35530 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 11:59:31 +00:00
Richard Heck
2291614a6c
Introduce a typedef for vector<Buffer *>. No change in behavior
...
anticipated.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35529 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-29 11:55:10 +00:00
Richard Heck
b05e674e6f
Whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35526 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-28 18:35:04 +00:00
Stephan Witt
1a681aaf24
#6917 move forward after adding a word to personal dictionary or the list of ignored words
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35525 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-28 15:09:06 +00:00
Uwe Stöhr
03a2216981
InsetGraphics.cpp and InsetInclude.cpp: whitespace fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35517 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-27 03:21:59 +00:00
Uwe Stöhr
b33182bc3d
filetools.cpp: introduce a new method to be able to distinguish between valid LaTeX filenames and filenames causing troubles on some DVI viewers.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35514 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-27 02:39:22 +00:00
Uwe Stöhr
f772315090
filetools.cpp: revert r35499 until we found a proper solution as discussed in http://article.gmane.org/gmane.editors.lyx.devel/129471
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35500 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-25 16:04:52 +00:00
Uwe Stöhr
052f689daa
filetools.cpp: fix #6916 - round parentheses are valid in filenames (they are even standard in paths in WinXP 64bit); they should also make no problems on UNIX systems
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35499 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-25 14:25:19 +00:00
Uwe Stöhr
9fa49ecafa
GuiPainter.cpp: correct attempt from r35491
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35498 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-25 14:14:50 +00:00
Richard Heck
4244a15ca3
Keeping the comma leads to bug #6914 , since we end up with mangled names
...
like:
0_tmp_the,_test_tst.bib
and then code like:
\bibliography{0_tmp_the,_test_tst}
which confuses LaTeX. Easy solution: Mangle the comma.
Jurgen, this is in branch, too.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35493 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 16:12:02 +00:00
Edwin Leuven
ad12fa6eb5
correct icon size in math panels
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35492 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 12:59:43 +00:00
Pavel Sanda
b1b1e13ad4
My compilator issues warning. Uwe, please check that this was intended.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35491 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 12:26:28 +00:00
Uwe Stöhr
3c9928285a
LineUi.ui: Qt's designer use XML as default - revert this from previous commit
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35489 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 04:29:07 +00:00
Uwe Stöhr
1557a6f2f9
LineUi.ui: a line has a thickness rather then a height
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35487 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 04:26:13 +00:00
Uwe Stöhr
7aac2c0502
GuiMathMatrix:
...
- decorated matrices can have horizontal alignment
- remove unused void
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35485 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-24 03:44:34 +00:00
Pavel Sanda
e7dd1bf9dd
Add lilypond-book module and add support for instant preview.
...
Patch by Julien Rioux.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg162042.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35472 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-21 16:34:30 +00:00
Enrico Forestieri
4a2243135c
Instead of specifically addressing glibc, use NULL as second argument
...
of realpath() when PATH_MAX is not defined in limits.h.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35466 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-20 17:53:40 +00:00
Pavel Sanda
90e1f226b8
Squash warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35464 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-20 14:37:58 +00:00
Stephan Witt
f94e6274a9
more constness, thanks Abdel
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35463 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-20 06:54:34 +00:00
Pavel Sanda
f2c388a519
Allow InsetPreview in no math preview mode.
...
Patch from Ronen Abravanel
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161966.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35456 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 22:33:55 +00:00
Pavel Sanda
65962da47b
Add support for feyn package and Diagram inset.
...
Patch from Ronen Abravanel.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161952.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35455 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 22:12:06 +00:00
Pavel Sanda
59ce20acde
Add CB for Meta/Control key swap on Mac OS X.
...
Patch by Jens Noeckel.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg160177.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35453 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 22:00:25 +00:00
Pavel Sanda
1291b07c05
PATH_MAX is not guaranteed by POSIX (fixes bug #6906 ).
...
Patch from Samuel Thibault.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35452 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 21:29:09 +00:00
Jürgen Spitzmüller
0b17cb1135
* ExternalSupport.cpp:
...
- do not popup invalid path warning with View Source (bug 6904).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35449 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 16:30:17 +00:00
Stephan Witt
5671e2dc4d
replace the map of the speller state with a vector
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35447 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 16:00:32 +00:00
Stephan Witt
9304b5eadc
correct the second try for misspelled words to catch abbreviations
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35444 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-19 11:49:10 +00:00
Uwe Stöhr
85a40507e4
rowpainter.cpp: remove hack introduced in r35299
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35440 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 17:29:37 +00:00
Abdelrazak Younes
bfd5447fdd
Thicker misspelled underlining.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35438 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-18 15:33:02 +00:00
Uwe Stöhr
3a400812e1
InsetLine.h revert changes made in r35417
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35428 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-17 23:12:19 +00:00
Stephan Witt
78ded48a22
make a second try for misspelled words to catch abbreviations
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35427 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-17 17:39:18 +00:00
Uwe Stöhr
5a7328b0bb
GuiDocument.cpp: the local layout can be treated as layout file snippet like a module - therefore group it with the module panel in the document settings dialog
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35421 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-17 01:46:45 +00:00
Uwe Stöhr
6faa1b3713
GuiLine: honor Abdel as author
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35420 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-17 01:32:23 +00:00
Uwe Stöhr
92c8604313
InsetLine:
...
- honor Abdel as author
- reintroduce the /// spacers in the header file because it makes it better readable and we do this in all other inset header files
GuiLine: honor Abdel as author
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35417 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-17 01:28:08 +00:00
Abdelrazak Younes
17ab5f5a38
InsetLine: Fix vertical positioning, offset is really an offset from the
...
text baseline, not from the middle of the line.
We are now getting much closer to LateX drawing...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35413 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-16 10:40:19 +00:00
Abdelrazak Younes
3b512d5915
header cleanup and doxy.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35412 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-16 10:14:46 +00:00
Abdelrazak Younes
31c75d260e
Remove uneeded hack.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35411 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-16 09:49:43 +00:00
Stephan Witt
dcf5272d05
don't copy internal state of spell checker in copy constructor
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35408 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-16 07:42:08 +00:00
Abdelrazak Younes
08453ceba4
Fix InsetLine painting for exotic offset and heigth.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35407 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-16 07:36:20 +00:00
Pavel Sanda
eaf1e371c7
Revert 35400 for the time being, crashes here.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35402 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 20:32:58 +00:00
Richard Heck
c4b7ef0bd0
Automatic CSS for left and right margins, too. Fixes indentation problem
...
with LyXCode environment.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35401 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:44:52 +00:00
Richard Heck
c4c210cc6e
Minor simplification.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35400 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:33:15 +00:00
Richard Heck
ca9ff9e430
Allow alignment customization in environments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35399 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:32:05 +00:00
Richard Heck
3c08472b0c
Allow alignment customization in environments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35398 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:29:51 +00:00
Richard Heck
64241a6d6d
Add XHTMLStream::operator<<(char). Failure to have it was causing things
...
like:
xs << ' ';
to send an int.
32, Pavel.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35397 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 17:19:29 +00:00
Richard Heck
b743c226ca
Handle forced alignments, at least in ordinary paragraphs.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35395 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 14:42:50 +00:00
Richard Heck
04d6290966
Label tag should default to div for "top environment" labels.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35394 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 14:23:32 +00:00
Richard Heck
0675c802a7
Auto-generate centering info for centered labels.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35393 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 14:18:19 +00:00
Richard Heck
a5e4f310fe
Add alignment to default CSS.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35392 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 14:06:36 +00:00
Richard Heck
36765b8e21
comments and whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35391 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 13:54:56 +00:00
Richard Heck
fbc092639c
Part of #6893 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35389 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 13:51:06 +00:00
Richard Heck
b5d2e9d285
Fix output of HTML tags in bibliography info.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35388 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 13:50:17 +00:00
Richard Heck
7f0b1d1cbb
Fix i18n for InsetBibtex.
...
It would be better to get the paragraph language here. How to do that?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35386 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 13:28:55 +00:00
Richard Heck
89738020e0
Add topsep and bottomsep handling to the default CSS we generate.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35385 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 13:02:45 +00:00
Abdelrazak Younes
c01de9fd41
* add InsetLine::dimension() to avoid calling InsetCommand::dimension()
...
* InsetLine::draw() bit of code shuffling.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35384 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 12:43:07 +00:00
Richard Heck
fc9cfc5d67
Whoops.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35382 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 12:20:14 +00:00
Richard Heck
4528307de6
Fix HTMLLabelFirst handling in non-list environments. Simplify code,
...
while we're at it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35380 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 12:08:00 +00:00
Abdelrazak Younes
15679c3e82
revert r35374 and further improve the metrics and drawing code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35377 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 11:19:29 +00:00
Richard Heck
14015ec434
Void functions don't return things. ;-)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35376 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-15 01:03:13 +00:00
Uwe Stöhr
573abee2b5
InsetLine.cpp: correct coding style
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35375 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 23:35:12 +00:00
Uwe Stöhr
e33e3dd815
InsetLine.cpp: restore the drawing routine after r35373, see http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161800.html
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35374 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 23:24:57 +00:00
Abdelrazak Younes
d1f08cbc57
Fix InsetLine metrics and drawing.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35373 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 14:56:41 +00:00
Abdelrazak Younes
47cf32b67e
gcc compile fix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35372 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 14:01:44 +00:00
Abdelrazak Younes
504b893ec8
whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35371 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 14:00:29 +00:00
Abdelrazak Younes
24ff65acc4
coding style and C++ fixes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35370 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 13:42:09 +00:00
Stephan Witt
7b0c3c0daf
reduce nesting levels in markMisspelledWords; simplify range check of fontspan
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35369 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 12:48:03 +00:00
Stephan Witt
c4d00e85eb
implement isChar() in header like all other insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35368 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 12:39:33 +00:00
Stephan Witt
dec437fbac
add cache of spell checker results to speed up native speller engine on macosx
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35362 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-14 05:24:04 +00:00
Jürgen Spitzmüller
0bc5f27959
* Thesaurus.cpp: fix synonym collection.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35358 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-13 16:15:15 +00:00
Jean-Marc Lasgouttes
402b9ec199
Revert r35339 for now following Enrico criticisms. I'll come back to it later.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35356 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-13 13:16:49 +00:00
Enrico Forestieri
0dec044864
If system colors are used, paint selected math in Color_selectiontext
...
instead of Color_math.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35355 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-13 01:36:00 +00:00
Uwe Stöhr
3d8b6d89b3
LyXAction.cpp: fix sorting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35347 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-12 12:25:00 +00:00
Abdelrazak Younes
d8981b13ae
* Get rid of LFUN_TOC_INSERT: we use LFUN_INSET_INSERT "toc".
...
* Fix usage of "inset-insert type" without CommandInset arguments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35345 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-12 07:56:08 +00:00
Abdelrazak Younes
a648c39b70
Get rid of LFUN_LINE_INSERT: we use LFUN_INSET_INSERT "line".
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35344 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-12 07:01:24 +00:00
Uwe Stöhr
cfe3bdbe30
GuiLine.cpp: set default values
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35343 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-11 16:19:24 +00:00
Uwe Stöhr
2582cc24ab
rowpainter.cpp: revert a hack
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35342 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-11 16:16:59 +00:00
Abdelrazak Younes
379eba512b
InsetParamsDialog: set focus to InsetParamsWidget.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35341 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-11 08:01:08 +00:00
Abdelrazak Younes
71a350923a
GuiLine:
...
* Add default values: please someone put something sensible here.
* Remove text manipulation for negative values and add a FIXME.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35340 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-11 07:52:06 +00:00
Jean-Marc Lasgouttes
2a7a076f1a
Make lines more compact (less interline spacing).
...
If there are use cases where this is useful, we can
think of a better way to reintroduce this.
Comments welcome.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35339 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-10 10:46:14 +00:00
Jean-Marc Lasgouttes
e54376ebd6
There was no need to use ColorChanger after all :)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35334 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-09 13:15:25 +00:00
Jean-Marc Lasgouttes
24fcbd6f0c
Set url color from system theme.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35333 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-09 13:04:02 +00:00
Jean-Marc Lasgouttes
2d278665dc
When selecting, get the label color of caption inset right.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35332 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-09 13:03:26 +00:00
Jean-Marc Lasgouttes
6d4709d46c
Sanitize ColorChanger
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35331 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-09 13:02:20 +00:00
Pavel Sanda
74b9ebf531
Turn on sliding when starting comparison
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35327 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-08 15:12:55 +00:00
Pavel Sanda
22434db502
Switch on CT in comparison result
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35326 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-08 15:09:10 +00:00
Pavel Sanda
59a2c46ae9
Fix part of #6880
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35325 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 19:26:01 +00:00
Pavel Sanda
309caac963
Fix whitespace bug reported by Bennett
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35324 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 19:03:28 +00:00
Pavel Sanda
b3f7326cfe
Another glitch
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35321 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 16:05:12 +00:00
Abdelrazak Younes
18b52e7bc5
Migrate GuiLine to InsetParamsWidget.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35320 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 14:13:28 +00:00
Abdelrazak Younes
b4b1357b02
whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35319 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 14:11:28 +00:00
Pavel Sanda
2d8ee8973f
Commit clash, Abdel just fixed it another way.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35318 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 13:43:10 +00:00
Pavel Sanda
01eb99ea4d
Compilation fix for 'abs'
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35317 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 13:40:03 +00:00
Abdelrazak Younes
0b7886a1a8
Gcc compile fix. abs is defined for float not int.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35316 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 13:37:22 +00:00
Pavel Sanda
1512439fa4
RCS case is more complicated
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35314 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 12:12:31 +00:00
Pavel Sanda
db1f90a7f8
Ui glitches
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35313 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:58:42 +00:00
Pavel Sanda
8f457065c5
Better debugging
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35311 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:29:11 +00:00
Pavel Sanda
8ae629fd68
Revisions starts from 1
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35310 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:29:09 +00:00
Pavel Sanda
e1a98bc7d3
RCS has different revision numbering
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35309 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:29:07 +00:00
Pavel Sanda
b2512f44d6
These things need to be updated for each dialog opening
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35308 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:29:05 +00:00
Pavel Sanda
c14dad8d2b
Finish VC_COMPARE, connect to compare dialog and run it automatically.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35307 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:29:02 +00:00
Pavel Sanda
e2c0424c17
Add decent UI for VC_COMPARE
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35306 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:28:57 +00:00
Pavel Sanda
d179943b8f
Squash warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35305 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 11:00:01 +00:00
Peter Kümmel
85d87c0a46
use one place to adjust width of thin lines
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35302 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 05:14:57 +00:00
Uwe Stöhr
604a3341d9
InsetLine.cpp: remove unused include
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35300 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 00:49:00 +00:00
Uwe Stöhr
0e7ab29f49
InsetLine: support for the LaTeX command \rule; kick out the hardcoded \lyxline; fileformat change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35299 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-07 00:41:00 +00:00
Jean-Marc Lasgouttes
eac118ae98
Use correct color for selected paragraph labels
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35298 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 14:35:02 +00:00
Jean-Marc Lasgouttes
58c9d2ed61
When the non-system background is used, let it be editable too.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35297 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 13:02:18 +00:00
Jean-Marc Lasgouttes
4fb23cc217
Make code more readable (to me). No change in behaviour (intended).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35296 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 10:56:27 +00:00
Jean-Marc Lasgouttes
4f45a35918
Do not overwrite background color with system background color if this color is white
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35295 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 10:26:58 +00:00
Abdelrazak Younes
ef3c8c10e1
Fix gcc warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35294 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 07:11:27 +00:00
Abdelrazak Younes
cb40d51906
whitespace
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35293 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 07:10:35 +00:00
Stephan Witt
9b1e0fc3c8
avoid spell check with out of range start value
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35292 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:55:31 +00:00
Stephan Witt
ed4ae48e85
correct short-cut conflict
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35291 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:53:14 +00:00
Abdelrazak Younes
c3b1ff6229
revert r35282
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35290 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:38:48 +00:00
Abdelrazak Younes
857bc69012
whitespace.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35289 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:37:40 +00:00
Stephan Witt
1d499cbf73
avoid compiler warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35288 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-06 06:14:25 +00:00
Uwe Stöhr
59d550f894
InsetLine.cpp: fix #6863 : use text color also for lines within LyX
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35286 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-05 23:27:55 +00:00
Uwe Stöhr
bbafadcbf3
InsetLine.cpp: compile fix for r35283
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35285 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-05 17:18:23 +00:00
Uwe Stöhr
0be0823505
rowpainter.cpp: forgot these changes in r35283
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35284 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-05 14:56:07 +00:00
Uwe Stöhr
f01e36b646
painter: make it possible to draw lines with custom line thicknesses
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35283 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-05 14:46:58 +00:00
Abdelrazak Younes
22df620984
LyX::exec(): add an alert if sysdir not found.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35282 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-05 09:08:49 +00:00
Uwe Stöhr
0d54d0e79e
GuiPrintNomencl.cpp: remove unused include
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35281 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-04 14:54:13 +00:00
Uwe Stöhr
53cb5fb06c
factory.cpp: this should not have gone in r35277
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35278 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-04 13:17:08 +00:00
Uwe Stöhr
8fc3baa3f9
factory.cpp: sorting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35277 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-04 13:13:44 +00:00
Stephan Witt
4bde2bc7bc
implement the paragraph check feature for apple speller
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35276 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-04 07:48:15 +00:00
Uwe Stöhr
d7c90fd841
TextMetrics.h: fix typo
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35275 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-04 02:38:21 +00:00
Richard Heck
a5cb539d08
Don't say empty layouts are valid.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35272 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-03 13:33:05 +00:00
Pavel Sanda
46ce4588df
Squash Qt warning
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35270 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-03 11:21:15 +00:00
Jean-Marc Lasgouttes
58ac669f37
Use the selectiontext color for insets which are embedded in a selection.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35269 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-02 13:30:39 +00:00
Jean-Marc Lasgouttes
d71281d4ae
MetricsInfo::textColor: helper function that helps taking in account the
...
selection and chage tracking state
InsetTabular::drawCellLines: use the above function to draw properly tabular lines after a selection.
This method can be used easily for other insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35268 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-02 12:13:54 +00:00
Jean-Marc Lasgouttes
15832da56d
Header cleanup (remove uneeded declarations)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35266 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-02 10:26:34 +00:00
Peter Kümmel
ffec54c980
msvc stops on unused variables.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35254 a592a061-630c-0410-9148-cb99ea01b6c8
2010-09-01 14:18:32 +00:00
Uwe Stöhr
a2c6c06908
better support for the mathdots package:
...
technically this package is the same as esint, only for dots instead of integrals -> therefore we can and should handle it the same as esint
-> add "use automatically" checkbox
-> load mathdots if \iddots is inserted
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35251 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 23:34:54 +00:00
Stephan Witt
4b6fe42475
avoid assignment in if-expression
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35245 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 13:25:29 +00:00
Uwe Stöhr
1712e4f35e
support to load the mathdots package via the document settings; fixes #5373 ; fileformat change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35241 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-31 02:04:46 +00:00
Pavel Sanda
9e45d81441
Comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35234 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-30 12:08:10 +00:00
Pavel Sanda
433830cdc0
Corners of collapsable insets to be painted via Color_foreground,
...
not labelColor(). In default theme this makes no change.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg161461.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35233 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-30 00:02:10 +00:00
Pavel Sanda
b1d6406ac4
Learn URL viewing for hyperlink insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35232 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-29 23:04:36 +00:00
Uwe Stöhr
3ee100f47d
MathSupport.cpp:
...
- fix metrics of the dots of \ddddot
- whitespace fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35231 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-29 22:59:24 +00:00
Jürgen Spitzmüller
435067c0f1
* InsetHyperlink.{cpp,h}:
...
* stdcontext.inc:
- basic implementation of inset-edit (only for file: now) (part of bug #6864 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35230 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-29 17:23:35 +00:00
Jürgen Spitzmüller
d427010975
* InsetHyperlink.{cpp,h}:
...
* stdcontext.inc:
- basic context menu and tooltip (part of bug #6864 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35229 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-29 16:40:52 +00:00
Jürgen Spitzmüller
6bcf9b6fea
* EnchantChecker.cpp:
...
- do not pass empty words to the checker (bug #6870 )
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35224 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-29 08:49:25 +00:00
Enrico Forestieri
6624a5b0db
Fix bug #6868 : LYXCMD:xxx:inset-insert:graphics does not parse correctly
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35218 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-28 16:46:54 +00:00
Stephan Witt
4887009e68
add setMisspelled() wrapper to check arguments and to hide the fontlist property implementation detail
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35206 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-26 11:47:27 +00:00
Stephan Witt
b02f2006be
Workaround for #6865 : smarter FontList::setMisspelled implementation
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35203 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-26 07:09:25 +00:00
Jürgen Spitzmüller
0ac0b1a81d
fix cutnpaste error.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35196 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-25 06:37:37 +00:00
Jürgen Spitzmüller
3ca7e00058
* GuiTabular.{cpp,h}:
...
- reimplement funcEnabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35195 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-25 06:25:07 +00:00
Uwe Stöhr
d0f8cf1018
GuiTabular.cpp: fix another FIXME
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35193 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-25 02:56:27 +00:00
Uwe Stöhr
db6634578d
GuiTabular.cpp: fix #6859 and a FIXME
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35192 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-25 02:36:02 +00:00
Uwe Stöhr
fab03729ab
InsetLine.cpp: use text color also for lyxlines
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35191 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-25 01:59:14 +00:00
Uwe Stöhr
1dedc47249
Text2.cpp: forgot this in last commit
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35190 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-24 03:08:33 +00:00
Uwe Stöhr
7d68833dc9
remove unused include of FuncRequest
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35189 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-24 03:07:09 +00:00
Uwe Stöhr
bc58158be7
LyXRC.cpp: don't use the OS system colors by default as discussed, those who prefer this can easily turn it on
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35188 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-24 01:37:29 +00:00
Uwe Stöhr
c3b341cbcb
InsetCaption: we use IndianRad as frame color while the float frames use DarkRed; as discussed, providing to specify a special caption frame color in the preferences is unnecessary
...
-> remove caption frame color from preferences
-> use the collapsible frame color also for caption frames
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35187 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-24 01:29:22 +00:00
Uwe Stöhr
38ed6cd1a0
\lyxline is a LyX-specific macro that creates a line in the output
...
- this line is defined with a width of 1pt -> therefore also draw it in this size in lyx
- this line is by default black -> use black
- setting a color for this in the preferences is wrong and senseless, because the color of this line is defined by the color chosen in the text style dialog -> remove preference color
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35185 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-24 01:13:26 +00:00
Stephan Witt
fa3c8d6894
prepare native spell checker interface for check of multiple words at once
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35183 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-22 13:55:28 +00:00
Stephan Witt
31dbbc43d9
#6848 correct load order of files to open on startup - author of patch: Punyashloka Biswal
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35182 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-21 16:49:30 +00:00
Enrico Forestieri
7238d40c99
Move code to more proper place.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35180 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-19 22:50:06 +00:00
Enrico Forestieri
fa0cd9ad60
Fix bug #6793 : Changing an existing formula type to displayed formula loses the label
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35178 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-19 13:58:36 +00:00
Enrico Forestieri
66808b0482
Avoid memory leak when the label is on the first row.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35168 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-19 08:17:36 +00:00
Enrico Forestieri
97fb94d90f
Fix crash when mutating eqnarray-like environments with labeled lines
...
to display equations.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35163 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-19 07:28:49 +00:00
Enrico Forestieri
87f155767a
Better fix for bug #6851 .
...
The old-style font changing macros really inherit the mode, so we have
to account for this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35156 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 17:57:06 +00:00
Jürgen Spitzmüller
cf0708db7a
* TabularUI.ui:
...
- add accelerator
- better labeling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35155 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 17:13:57 +00:00
Jürgen Spitzmüller
24dc465cc0
Add some accelerators.
...
NOTE: some new elements in the dialogs still lack accelerators. People, please think of keyboard users when adding UI!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35154 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 17:08:57 +00:00
Jürgen Spitzmüller
0a7b799510
* Output.ui: clearer labeling
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35151 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 15:27:05 +00:00
Jürgen Spitzmüller
bd19edccf0
* GuiPrefs.cpp: casing fixes.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35150 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 15:19:05 +00:00
Jürgen Spitzmüller
188c57aeda
* GuiTabular.cpp:
...
- fix enabling of decimal separator item by using proper gui/data separation
- better labeling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35149 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 15:10:53 +00:00
Jürgen Spitzmüller
f2f3ed23f0
* InsetTabular.cpp: do not attempt to access an empty DocIterator (bug 6810).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35148 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 14:32:52 +00:00
Enrico Forestieri
61791114a1
Fix bug #6851 : Wrong screen fonts with old style macros such as \bf and \rm.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35136 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-14 00:22:04 +00:00
Uwe Stöhr
5f62c2ed6a
InsetGraphics.cpp: fix a comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35131 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-13 00:17:12 +00:00
Uwe Stöhr
f6f59757ac
Color.cpp: use the same frame color for inset frames and captions frames
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35130 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-12 12:31:05 +00:00
Jean-Marc Lasgouttes
60445ede53
remove unused headers
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35129 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-12 09:38:22 +00:00
Richard Heck
06b1525f7d
buffer_ --> buffer()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35117 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 14:44:59 +00:00
Richard Heck
700c3dc0ef
loadIfNeeded() returns a pointer to the loaded child, so it's silly to
...
throw away its return value and then go find a pointer to the loaded
child!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35116 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 14:39:12 +00:00
Richard Heck
89e50feaf2
Invalidate caches when the parent is reset.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35115 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 14:37:06 +00:00
Richard Heck
b28eca7476
buffer_ --> buffer()
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35114 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 14:28:24 +00:00
Richard Heck
856b01b6da
Comments on the caching mechanism.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35113 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 14:26:34 +00:00
Richard Heck
2203d7aa0a
Fix some bugs in the bibinfo caching mechanism. Comments to follow.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35112 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-10 14:12:48 +00:00
Richard Heck
0ac2636d28
Missing invalidations of bibfile cache.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35111 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 21:35:44 +00:00
Jean-Marc Lasgouttes
6aa26820fd
Introduce new tag ParbreakIsNewline in Layout and InsetLayout (not yet used)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35110 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 21:20:29 +00:00
Jean-Marc Lasgouttes
920798c4d6
fix bug #6786 : InsetLayout name containing spaces is incompatible with keybindings/toolbars
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35109 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 20:37:31 +00:00
Richard Heck
350b82fd62
Revert r35106.
...
Help needed here. Why isn't this equivalent?
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35108 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 19:17:44 +00:00
Richard Heck
35f3f7cbc4
Don't need this argument, since it was only ever called thus:
...
it->fillWithBibKeys(d->bibinfo_, it);
This could be useful later, if we decide to try to do the work that
fillWithBibKeys did from updateLabels().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35106 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 18:00:46 +00:00
Richard Heck
506716a1d2
Change error message. Reason why appears later.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35105 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 17:33:43 +00:00
Richard Heck
2a6109e972
Minor cleanup. We don't need the deleted call, as that is done at the
...
beginning of updateBuffer() anyway.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35104 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 17:14:45 +00:00
Richard Heck
e992140685
More work toward speeding up the bibfile caching stuff.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35103 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 17:01:51 +00:00
Richard Heck
4509607bf6
Do not invalidate cache unless we find some BibTeX insets. Part of
...
#6846 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35102 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 16:18:57 +00:00
Jean-Marc Lasgouttes
b01fcee92d
Finish implementation of "use system colors" checkbox.
...
ColorCache:
* method isSystem() allows to know whether a color can be overridden by system colors
* method get() has a variant that accepts a bool (system color or not)
* code simplifications
GuiPrefs:
* hide colors set from the system when they are inherited
* syncronize list of colors and checkbox
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35101 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 12:15:02 +00:00
Jean-Marc Lasgouttes
aba279a928
cut and paste error
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35100 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-09 09:41:36 +00:00
Jean-Marc Lasgouttes
17729b9346
Add new pref use_system_colors (defaults to true).
...
What is missing is some feedback on what colors are
set from the system (they should be disabled in the
color list).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35096 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-08 23:11:02 +00:00
Jean-Marc Lasgouttes
088059724d
Remove DPI from preference dialog. The variable is kept in
...
LyXRC, since we do need the value in the code. If this is
a problem, I can define some QApplication::getDPI() and give
up configurability altogether.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35095 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-08 20:32:26 +00:00
Jean-Marc Lasgouttes
a2230142fa
Replace ugly wavy line with a dotted line for misspelled words.
...
I hope this one is not going to be controversial.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35094 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-08 17:41:28 +00:00
Jean-Marc Lasgouttes
fde0a4bb26
spacing
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35093 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-08 14:48:15 +00:00
Jean-Marc Lasgouttes
c77b7483ea
fix oversight
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35092 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-08 14:34:59 +00:00
Jean-Marc Lasgouttes
1a18cdfb39
Clean-up the code with respect to PassThru insets and layouts.
...
The goal is first to remove explicit testing against ERT_CODE,
and second to allow to define layouts with the same properties as ERT insets.
This commit does not change behaviour
* rename OutputParams::verbatim to pass_thru
* disable encoding switch inside pass_thru layouts
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35091 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 22:07:49 +00:00
Jean-Marc Lasgouttes
8a9d765739
Bug #6842 , part II
...
Make sure that Package can be initialized several time.s
Make sure that Package is not used before being initialized.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35080 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 11:42:27 +00:00
Jürgen Spitzmüller
a84925bebe
* GuiPrefs.cpp:
...
- do not allow to change a format's short name if the format is used by a converter (fixes crash issue #6815 ).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35079 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 11:31:28 +00:00
Jean-Marc Lasgouttes
547773f0d0
set locale correctly before parsing command line (bug #6842 )
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35078 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 11:18:04 +00:00
Jean-Marc Lasgouttes
d10b46ffbd
set more colors from qt palette
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35077 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 10:48:32 +00:00
Jean-Marc Lasgouttes
3e99283f2b
Make sure that the current undo element is finished before marking stacks dirty
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35075 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 10:40:25 +00:00
Jean-Marc Lasgouttes
c2dfd50705
Fix default colors for workarea.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35074 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 09:21:44 +00:00
Uwe Stöhr
7547cf9e5f
- InsetTabular.cpp: floats must not be inserted to tables, fixes #6844
...
- InsetCaption.cpp: margin notes and footnotes are not allowed in captions
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35073 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-07 03:16:38 +00:00
Jean-Marc Lasgouttes
f8eda52820
Fix bug #3733 : 'undo' does not revert 'changed' status for file
...
* src/LyXAction.cpp: add ReadOnly flag to LFUN_UNDO and LFUN_REDO, since
we do not want the dispatch mechanism to mark buffer dirty after them.
* src/BufferView.cpp: handle "by hand" the activation of undo/redo
* src/Undo.cpp: add lyx_clean member to UndoElement and make sure to
maintain it with undo operations; add a new markDirty() member for UndoStack
* src/Buffer.cpp: when saving a document, mark the undo and redo stacks
elements as dirty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35068 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-06 23:54:04 +00:00
Richard Heck
3d050130a2
Forgot this file.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35062 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-06 11:30:18 +00:00
Richard Heck
64f979cb06
A UI for document-local layout information. LyX has supported this for a
...
while, but without any UI for it. (There has been local layout in the
Customization manual for a long time, in fact.)
Yes, this is an advanced feature. But, absent a layout editor, it is the
one thing that will make it easier, and possible, for "normal users" to
experiment with layout without having to go through reconfiguration,
etc, etc. To keep too many people from shooting themselves, we validate
the layout information before allowing the user to apply it.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35061 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 22:47:42 +00:00
Jean-Marc Lasgouttes
e1fa4c9eb3
Initialize some LyX colors from Qt. Currently what is done is plain text and selection (both font and background).
...
I am not sure that there is something else that we can get from QPalette. Maybe
cursor color, if someone tells me how to get it.
Only tested on mac. I can revert if this causes problems on linux or windows.
I have to check too that it still works in non-gui mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35060 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 22:41:34 +00:00
Richard Heck
63e26fa778
Make sure the layout has actually been closed. Otherwise, you can have:
...
Style NewStyle
all by itself at the end of a file, and LyX is perfectly happy.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35059 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 21:32:19 +00:00
Richard Heck
87600d4d84
Remove unused variables, add questions. Anyone know?
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35058 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:25:29 +00:00
Richard Heck
5ee70976de
Renaming.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35057 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:25:04 +00:00
Richard Heck
fc6492a20f
Improve the error message a bit. LyX CAN produce output in such cases,
...
just not PDF, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35056 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:15:29 +00:00
Jean-Marc Lasgouttes
e4f2484cb5
Implement LFUN_SPELLING_REMOVE (patch from switt)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35055 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 20:10:40 +00:00
Jean-Marc Lasgouttes
79346452c7
silence some warnings by removing unused parameters
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35053 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 19:00:57 +00:00
Richard Heck
b2b811fcd7
Remove \Nameref entry. Forgotten before....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35050 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-05 02:17:07 +00:00
Jean-Marc Lasgouttes
4c3333d1df
tiny simplification
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35045 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-03 22:31:16 +00:00
Jean-Marc Lasgouttes
b221b0e1fd
Fix bug #6736 : 2.0.0 alpha 3, spell check on the fly bug
...
This bug is related to the fact that the cusor remember the current font.
The on-the-fly spell status should really not be kept in the Font object, but
rather in metrics, IMO.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35041 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-02 21:20:59 +00:00
Jürgen Spitzmüller
15f9312d80
* GuiLog.cpp: refine warning detection:
...
- detect "LaTeX Font Warning"
- detect "Class X Warning"
- package warnings can contain dots ("Package pdftex.def Warning")
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35040 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-02 16:38:41 +00:00
Richard Heck
23a984b258
Style and a sanity check.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35039 a592a061-630c-0410-9148-cb99ea01b6c8
2010-08-02 15:40:33 +00:00
Richard Heck
1c0514b07c
Add a comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35036 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-30 15:50:42 +00:00
Richard Heck
56c500bae5
Update comments a bit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35035 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 16:55:02 +00:00
Richard Heck
89a9fc4c5e
Implement independent output scaling for math images (and, I suppose,
...
for any other sort of image for which we produce a preview on export,
e.g., eventually, for InsetExternal).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35032 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 16:38:58 +00:00
Richard Heck
a7f7530bd2
MathML and HTML definitely can't handle MathUnknown!!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35028 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 15:48:01 +00:00
Richard Heck
f1d941098c
MathML and HTML can't handle XYArrow.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35027 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 15:46:26 +00:00
Richard Heck
b520657039
HTML for xarrows.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35026 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 15:44:17 +00:00
Richard Heck
c8bc76b333
MathML and HTML definitely can't handle XYMatrix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35025 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 15:38:01 +00:00
Richard Heck
7a8a1eca21
Framework for math export exceptions. We can throw these if we find
...
something we don't know how to handle and fall back to images.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35024 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 15:37:42 +00:00
Richard Heck
e48fb0b661
Allow images to be export even when LyXRC says no previews.
...
I'll try to figure out how to get rid of the magic booleans.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35022 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 15:17:58 +00:00
Richard Heck
833ef6352f
Comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35021 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 14:29:54 +00:00
Richard Heck
35327c0b5b
I guess I like this better.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35020 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-29 00:00:37 +00:00
Richard Heck
523056c092
Move the error message out of LayoutFileList::load() and have it be
...
reported by the caller. Otherwise, you could get the error message the
first time, and then it would succeed the second!!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35019 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-28 21:03:27 +00:00
Uwe Stöhr
306ebdf80b
Length.cpp: fix sort order - in all other files we have PTH before PPH
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35012 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-25 00:17:48 +00:00
Enrico Forestieri
0d78b79311
Refine fix for bug #1337 .
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35009 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-23 07:34:26 +00:00
Enrico Forestieri
976307231d
Fix bug #1337 : LyX confused on $ symbol in math equations
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35008 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-22 23:19:52 +00:00
Stephan Witt
710bb42049
correct typo in RC_SCROLL_WHEEL_ZOOM text
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35004 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-22 14:51:35 +00:00
Richard Heck
3d6fb3bd1d
Try again with LaTeX output for XHTML math.
...
The previous attempt messed up the inheritance hierarchy somehow. I
think.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35002 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-22 02:47:12 +00:00
Richard Heck
80aca38970
Partially revert r34995, which broke math output. Not sure why yet....
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35001 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-22 02:20:12 +00:00
Richard Heck
06445c964e
Next step in fixing problems noted by Vincent: Remove magic boolean from
...
updateMacros().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35000 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 21:58:54 +00:00
Richard Heck
2f78698fbd
First step towards fixing some issues noted by Vincent. We record in the
...
Buffer whether we are exporting or not, rather than rely upon isClone(),
which could be adapted to other purposes. And, of course, someone might
choose locally to disable cloning....
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34999 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 21:51:33 +00:00
Richard Heck
980dfa0f3b
Comment.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34997 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 14:28:38 +00:00
Richard Heck
9803d7a2a6
Prepare for the use of exceptions to catch occasions when we can't
...
export as MathML, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34996 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 14:02:46 +00:00
Richard Heck
c036ecb649
Tweak the math-as-LaTeX output, including the correct tags for jsMath.
...
We don't yet write info to load the jsMath files, though.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34995 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 13:43:35 +00:00
Richard Heck
e7bb1e616e
Re-organize code from a last commit a bit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34994 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 13:26:48 +00:00
Richard Heck
b8d43b05bc
Support for exporting math as images with XHTML. The next step is to
...
allow this as a fallback. E.g., if we're unable to export as MathML,
then we try to export as an image.
There are several ways, I am sure, in which this implementation is not
ideal.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34993 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-21 13:19:52 +00:00
Richard Heck
096cf9f2e8
Whitespace only (two tabs at end of each line?).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34991 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-20 19:45:36 +00:00
Peter Kümmel
815ec52ab8
merged build: macro name has changed
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34981 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 21:23:26 +00:00
Stephan Witt
0498aa1dcb
correct OR when checking modifiers
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34974 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 12:18:22 +00:00
Richard Heck
7441f370c0
Revert r34969.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34973 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 12:09:06 +00:00
Richard Heck
0903700db3
Update comment a bit further.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34972 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 12:04:36 +00:00
Richard Heck
88329a656c
Fix problem reported by Vincent, that absence of python can cause
...
failure to load the empty class.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34971 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 11:58:38 +00:00
Richard Heck
9034323d59
Renaming and typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34970 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 11:52:12 +00:00
Uwe Stöhr
ab85e493c7
GuiWorkArea.cpp: make it compilable
...
Stephan, please check if this is correct
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34969 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 11:49:34 +00:00
Stephan Witt
e99bd868f9
use "alt" instead of "option" for modifier keyword
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34967 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-18 10:04:59 +00:00
Stephan Witt
0d386d7c25
make mouse scroll wheel zoom configurable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34955 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 22:29:42 +00:00
Peter Kümmel
30bae1710a
cmake: fix merged build
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34954 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 22:24:30 +00:00
Vincent van Ravesteijn
da45f74df2
Compile fix for r34950.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34952 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 21:22:32 +00:00
Vincent van Ravesteijn
d8351db924
* ModuleList.cpp:
...
- it makes no sense to output the real filename if it is empty.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34951 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 21:19:46 +00:00
Vincent van Ravesteijn
dd08dd8d0a
* LayoutFile.cpp:
...
- it makes no sense to output the real filename if it is empty,
- success is already false.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34950 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 21:12:48 +00:00
Enrico Forestieri
161af56f4e
By default, overwrite the main file on export, but allow changing default
...
behavior through the environment variable LYX_FORCE_OVERWRITE.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34946 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 17:55:46 +00:00
Uwe Stöhr
d8523cc229
GuiFontLoader.cpp: forgot this in r34941
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34944 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 16:16:47 +00:00
Peter Kümmel
c09d33120d
UNDO: enc
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34943 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 16:09:26 +00:00
Uwe Stöhr
72292b98a6
support for formal math script
...
- fileformat change
- fixes #2340
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34941 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 15:51:11 +00:00
Richard Heck
fd03b1280e
Allow for "Provides babel 1".
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34937 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 14:49:30 +00:00
Pavel Sanda
59598a0d25
Fix tarball creation
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34936 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 14:17:44 +00:00
Peter Kümmel
56a7a67783
add first version of .lyx file encryption. It's disabled by default and could out-of-the-box only by compiled on Linux with cmake and with openssl-devel packeges.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34931 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 12:26:11 +00:00
Pavel Sanda
3e64ec2c9d
comment
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34925 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-17 09:53:29 +00:00
Richard Heck
7d4c560f87
Remove Nameref support. Too many issues involving translation, quotes,
...
etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34920 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 15:19:04 +00:00
Enrico Forestieri
be3fba333b
Remove left over.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34919 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 14:43:12 +00:00
Enrico Forestieri
952a31a43e
Fix output to terminal when LyX is launched from a GUI on *nix
...
aka
Surrender to Windowsisms
aka
Resistance is futile, you will be assimilated
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34918 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 14:30:46 +00:00
Peter Kümmel
2467a88cde
no output to stdout when redirecting, cleanup
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34915 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 09:57:46 +00:00
Peter Kümmel
146b1083a1
fix stupid renaming error
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34914 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 08:14:00 +00:00
Peter Kümmel
7c4122cc4b
lyx sytle
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34912 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 08:09:38 +00:00
Peter Kümmel
52e58a3700
CamelCase
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34911 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 06:08:12 +00:00
Peter Kümmel
48dca70f9e
only guard terminal output.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34910 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-16 05:55:31 +00:00
Richard Heck
17166837d7
Revert last commit. I was confusing two things.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34890 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 14:13:47 +00:00
Richard Heck
e611cc2d4a
Enhance LyX by fixing #6760 . New preference to set minimum length of
...
automatically spellchecked words.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34889 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 14:08:44 +00:00
Richard Heck
f27ea2457d
These didn't get committed with r34884 because I forgot to "svn
...
resolved" them.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34888 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 14:02:57 +00:00
Richard Heck
47db764ccc
Nameref support.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34884 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 03:23:29 +00:00
Uwe Stöhr
e2e63b4b1b
support for the ISO C-series paper formats; fileformat change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34883 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-13 01:06:20 +00:00
Vincent van Ravesteijn
9be7c2a0ec
Fix unnecessary dependencies on GuiDocument.h.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34882 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-12 21:42:25 +00:00
Richard Heck
2c19192582
Clarify error message slightly.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34881 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-12 18:11:26 +00:00
Richard Heck
530b1faad9
Make this translatable.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34880 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-12 17:40:54 +00:00
Stephan Witt
aebcaa74b0
correct result array use in makeSuggestionAppleSpeller
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34862 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-11 22:04:29 +00:00
Stephan Witt
7b34b13b71
avoid LYX_PLATFORM_DARWIN10 macro
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34861 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-11 21:30:47 +00:00
Richard Heck
c2a4932ce0
Small improvement to RefPrefix.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34854 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-11 13:36:19 +00:00
Richard Heck
5577e877bb
Try to move all updateBuffer() calls to a central location. We now use
...
DispatchResult to store a flag that tells us whether we need a buffer
update or not.
So: If you find a missing one, go to an appropriate place in the
dispatch and call cur.forceBufferUpdate() or, if you don't have a cursor
but do have a DispatchResult, call dr.forceBufferUpdate().
There is one remaining call I could not move, in
TextMetrics::redoParagraph. But this looks like an emergency call when
the macro context has not been set. There are also a couple calls that
are connected with buffer creation that I commented out, since the same
call is done again almost immediately. But I'm not positive about those.
Now the nice thing would be to do the same for updateMacros().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34826 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-09 14:37:00 +00:00
Jürgen Spitzmüller
be70a8eb11
* LaTeX.cpp: understand Biblatex's polite rerun request.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34822 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-09 08:40:03 +00:00
Richard Heck
0e14f379f3
Rename a couple routines. This will avoid confusion with a forthcoming
...
patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34816 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 20:04:35 +00:00
Richard Heck
c0cc803e55
Warning.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34815 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 20:01:17 +00:00
Stephan Witt
f4aedbe672
correct ifdef+defined construct
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34813 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 10:39:24 +00:00
Stephan Witt
7276f04fa1
provide native spell checker for Mac OS X
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34812 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 07:56:29 +00:00
Stephan Witt
b12da1968a
add APPLESPELL orthogonal to ASPELL
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34811 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 07:54:42 +00:00
Jean-Marc Lasgouttes
4f735babe2
fix compilation of applespell with autotools
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34810 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 07:44:34 +00:00
Uwe Stöhr
07e8f2e1bc
InsetBox.cpp: only shaded boxes can have a non-plain layout when there is no inner box
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34809 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 03:01:50 +00:00
Uwe Stöhr
142caff833
InsetBox.cpp: only shaded boxes can have multiple paragraphs when there is no inner box
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34808 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-08 02:42:36 +00:00
Stephan Witt
0a326e90f7
provide native spell checker for Mac OS X
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34801 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-07 17:40:50 +00:00
Uwe Stöhr
76ad72221c
ColorUi.ui: remove unnecessary window title
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34796 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-07 00:43:47 +00:00
Vincent van Ravesteijn
1541a7f756
GuiBox.cpp: Remove some unnecessary negated logic.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34780 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-06 12:01:09 +00:00
Enrico Forestieri
67f6e68e8d
Add last missing inner-hull grid type environments.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34766 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-05 17:30:03 +00:00
Jean-Marc Lasgouttes
3a5b4b8008
Fix bug 6533: Spell-as-you-type stops checking words when they are already wrong
...
The problem was in FontList::setMisspelled, where an optimization looked at the first character of the word in order to return early when the misspelled flag is already correct. This does not work when the first letters of the word have this flag but not the last one.
If this optimization was really useful, it can be reimplemented properly in terms of font spans.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34765 a592a061-630c-0410-9148-cb99ea01b6c8
2010-07-05 15:15:13 +00:00