Pavel Sanda
e4808961c9
Another selection painting patch, PainterInfo::backgroundColor introduced.
...
Patch by Vincent.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145438.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 10:47:38 +00:00
Abdelrazak Younes
0ac664310a
Modify the way multi-cell selection is done in tables:
...
* Always put the cursor at the end of the cell (this was set at the beginning with mouse selection).
* handle LFUN_SELF_INSERT in case of multi-cell selection -> the whole cell contents will be deleted.
This commit fixes http://bugzilla.lyx.org/show_bug.cgi?id=5225
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26668 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-01 08:18:57 +00:00
Jürgen Spitzmüller
4cb08129a3
attempt to fix bug 5282:
...
* src/insets/InsetTabular.cpp:
- keep track of encoding after passing a copy of the OutputParams.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26592 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-27 15:32:43 +00:00
Uwe Stöhr
a7722811f7
InsetTabular: make Slovak and Czech documents compilable, fixes http://bugzilla.lyx.org/show_bug.cgi?id=5290 , thanks to Heiko Obderdiek for the hint how to fix this
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26581 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-26 21:24:59 +00:00
André Pönitz
4c7fdddd74
streamlining setter syntax. using mutable references seems a bit
...
outlandish compared to the rest of LyX
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26527 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-24 21:27:41 +00:00
Jürgen Spitzmüller
0bb14ddfc7
get rid of two compiler warnings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26444 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-18 16:29:27 +00:00
Enrico Forestieri
3e55de70dd
Introduce LFUN_FONT_BOLDSYMBOL, performing the same as LFUN_FONT_BOLD
...
except when in math mode, where \boldsymbol is used instead of \mathbf.
Restore the previous binding of Ctrl-B and make sure that LFUN_FONT_BOLDSYMBOL,
now bound to Ctrl-Alt-B, can be toggled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26418 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 16:49:11 +00:00
Jürgen Spitzmüller
eb3ab2f3d0
* InsetTabular.cpp:
...
- comment out non-working code that can trigger an assertion (probably bug 5225).
(this code also does not work as expected in branch, but it doesn't act as badly there)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26407 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 08:43:42 +00:00
Jürgen Spitzmüller
7bbb01f8b6
* src/insets/InsetTabular.{cpp,h}:
...
- improve updating of on-screen alignment
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26406 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-15 08:09:52 +00:00
Edwin Leuven
b1c3515769
comments don't hurt
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26402 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 17:43:04 +00:00
Edwin Leuven
3573d29271
clean up horizontal tabular line latex-output
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26395 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 12:31:58 +00:00
Jürgen Spitzmüller
a2c42bc702
fix bug 5250.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26394 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-14 07:42:15 +00:00
Jürgen Spitzmüller
a942cf9e86
* Fix display of horizontal alignment in fixed width tabular cells (bug 3484)
...
* src/Inset.h:
- new member content Alignment that indicates whether the content
of text insets should be displayed with a specific alignment
* src/TextMetrics.cpp:
- handle inset's contentAlignment
* src/insets/InsetTabular.{cpp,h}:
- set contentAlignment for tabular cells.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26380 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-13 10:10:01 +00:00
Jürgen Spitzmüller
a3392f4088
I/1H\$Hl$Ld$Ll$ Lt$(L|$0H8M
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26376 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-12 17:25:11 +00:00
Jürgen Spitzmüller
9b99e7be2c
Fix rest of bug 4886, following Richard's advices.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26354 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 16:02:32 +00:00
Jürgen Spitzmüller
623308f1e9
* src/insets/InsetTabular.cpp:
...
- correct LaTeX output for alignment in fixed width multicolumn cells
(bug 1747).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26352 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-10 12:49:08 +00:00
Richard Heck
3bb9c0d34d
Fix bug 4886.
...
Introduce OutputParams::inTableCell, to track when we are in a table cell.
Use this information to output \newline rather than \\ when in one.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26349 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 18:42:17 +00:00
Edwin Leuven
fab42d011c
fix sideways scrolling in tabulars with nested insets
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26347 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-09 14:12:08 +00:00
Richard Heck
ebfe9d60d7
The previous commit inadvertently contained some of this one, which is just a renaming.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26110 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 16:29:25 +00:00
Richard Heck
8498a50c64
Don't allow new pages within tables!
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 02:02:16 +00:00
Richard Heck
a457ab321f
Move isMultiCell() to Cursor, and use it.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26104 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 01:58:57 +00:00
Richard Heck
6f77b93572
Fix cursor movement with multicell selections. There's no point allowing character by character selection in this case.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26103 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-09 00:43:15 +00:00
Richard Heck
939503ee85
Fix crash reported on the list involving multicell selections. We have to
...
be careful to check for that!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26102 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 21:26:18 +00:00
Richard Heck
510174ba17
Set the cursor to the start of the cell when doing multicell selections,
...
since it doesn't make sense to select two and a half cells.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26101 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 19:34:47 +00:00
Richard Heck
b2f5782253
Fix bug 5145. InsetTabular was resetting cur.idx() but not cur.pit() or cur.pos(),
...
leaving them possibly invalid.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26100 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 19:21:06 +00:00
Richard Heck
9374e68bfd
Fix bug 5146. The problem arose when attempting to paste normal text into
...
a multicell selection. But the more I thought about this, the more it seemed
that pasting into multicell selections shouldn't be allowed. What exactly
ought to happen if the user selects a 2x3 grid of cells and then tries to
paste a 5x5 group of cells? LyX, anyway, just ignores the selection in this
case, which is not what the user will expect. So let's just not go there.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26099 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-08 17:28:25 +00:00
Richard Heck
cca78e3c8a
Change the "empty layout" to the "plain layout", to try to avoid confusion.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26025 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-01 20:57:27 +00:00
Abdelrazak Younes
fa1305ccd3
InsetText: remove InsetText default ctor and make text_ member private.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25974 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-29 12:07:08 +00:00
Abdelrazak Younes
b4f4a5c245
God damn tabular dual head :-/
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25851 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 13:25:03 +00:00
Abdelrazak Younes
4bc7feaa96
* Inset: ensure that the Buffer pointer is not copied. This was the cause of very weird bugs with copy and paste within table.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25837 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-23 12:13:41 +00:00
Richard Heck
951d0dc28d
Try to fix a problem noted by Dov. There are design problems that prevent a really good solution. Please see the FIXME in InsetTabular.h for a description of the problem and a plea for a better solution.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25752 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-21 02:07:54 +00:00
Richard Heck
a4ed71a212
Try to fix bug 5015---at least the crash is gone---and remove some unused code.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25666 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-16 14:23:32 +00:00
Richard Heck
780bce0f96
Rename empty layout stuff to plain layout stuff.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25541 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 17:41:52 +00:00
Edwin Leuven
dd6d173082
fix http://bugzilla.lyx.org/show_bug.cgi?id=4998
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25445 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-04 13:18:28 +00:00
Pavel Sanda
dcc50a2454
Fix include orderings.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25309 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:54:31 +00:00
Pavel Sanda
07113cf424
LFUN_FONT_FREE_* -> LFUN_TEXSTYLE_*
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141274.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25225 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-11 08:35:15 +00:00
Edwin Leuven
dbc07ef630
fix http://bugzilla.lyx.org/show_bug.cgi?id=4778
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25198 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-09 08:11:46 +00:00
Pavel Sanda
f1ab9fa147
Last rites for LFUN_BREAK_PARAGRAPH_SKIP, LFUN_DELETE_BACKWARD_SKIP, LFUN_DELETE_FORWARD_SKIP.
...
Closing bug http://bugzilla.lyx.org/show_bug.cgi?id=4492 .
Closing bug http://bugzilla.lyx.org/show_bug.cgi?id=4525 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25116 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 18:09:06 +00:00
Richard Heck
77ed747114
FuncStatus::enabled(bool) --> FuncStatus::setEnabled(bool)
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24999 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-29 15:14:00 +00:00
Uwe Stöhr
06e0a5df20
InsetTabular.cpp: fix the logic when \linebreaks are allowed in table cells, fixes http://bugzilla.lyx.org/show_bug.cgi?id=4839
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24938 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-25 21:14:36 +00:00
Abdelrazak Younes
771e0ba1a3
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4641
...
SVN blames Jürgen for this code (rev 22325).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24879 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-22 10:44:28 +00:00
Edwin Leuven
401ec4b50b
no vertical lines with booktabs
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24654 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 09:37:22 +00:00
Edwin Leuven
cf5b793f18
fix http://bugzilla.lyx.org/show_bug.cgi?id=4778
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24635 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-06 11:24:54 +00:00
Edwin Leuven
832bbc4329
fix: http://bugzilla.lyx.org/show_bug.cgi?id=4688
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24598 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-04 07:51:50 +00:00
Jean-Marc Lasgouttes
9b4a26a252
rename assert.h to lassert.h
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24559 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-30 08:26:40 +00:00
Edwin Leuven
b802c68fe1
more line fixes
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 09:12:53 +00:00
Edwin Leuven
133d84c42b
fix http://bugzilla.lyx.org/show_bug.cgi?id=4792
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24500 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-25 11:56:21 +00:00
Edwin Leuven
26e958bac7
smarter line setting in latex tabulars
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24492 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-24 17:26:17 +00:00
Abdelrazak Younes
60cb88d2ef
Tabular de-spaghettization, step 2: move functions to where they are used.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24414 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 13:47:01 +00:00
Abdelrazak Younes
884bb0c4bc
Tabular de-spaghettization, step 1.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24413 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-21 13:33:39 +00:00