Richard Heck
6ef03cc4ac
Get InsetCollapsable working, at least to some extent.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29963 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 18:57:53 +00:00
Richard Heck
47b796d41f
Revert unintended commit.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29961 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 18:47:22 +00:00
Richard Heck
37a9bbebff
Cosmetics
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29960 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-05 18:45:23 +00:00
Richard Heck
658457b847
Rationalize the handling of InsetLayout's preamble and requries. That is,
...
bring it into line with the handing of Layout's preamble and requires. This
will make information about used InsetLayout's avaiable elsewhere.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29914 a592a061-630c-0410-9148-cb99ea01b6c8
2009-06-03 23:44:31 +00:00
Uwe Stöhr
629b07b72f
InsetCollapsable.cpp, factory.cpp: sorting
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29720 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-17 21:28:35 +00:00
Jürgen Spitzmüller
e71be32d2a
* InsetCollapsable.cpp (doDispatch):
...
- reset paragraph fonts also after LFUN_SELECTION_PASTE.
This assures lang is set to latex in ERTs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29690 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-16 15:39:03 +00:00
Richard Heck
675925f659
This patch introduces wrapped tooltips for some more insets.
...
New method wrapParas() in support, deployed in various
insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29564 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-07 18:04:05 +00:00
Pavel Sanda
6fde8f8067
Introduce double underline and wavy underline styles from ulem
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150803.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29542 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-05 09:26:28 +00:00
Pavel Sanda
381b86788d
Introduce strikeout text style (strike-through)
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150743.html
Somewhat related to http://www.lyx.org/trac/ticket/4248 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29523 a592a061-630c-0410-9148-cb99ea01b6c8
2009-05-03 22:45:14 +00:00
Vincent van Ravesteijn
4c9fe33c83
* Move handling of LFUN_INSET_SETTINGS to Inset,
...
* Remove the EDITABLE enum,
* add functions hasSettings() for all insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29375 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-22 20:55:13 +00:00
Richard Heck
920bfedf1f
Manage the initial setting of Default or Plain Layout more simply.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29093 a592a061-630c-0410-9148-cb99ea01b6c8
2009-04-04 19:34:14 +00:00
Jürgen Spitzmüller
2b24e2a45b
InsetCollapsable.cpp (resetFonts):
...
- correctly initialize font (language) for PassThru insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28672 a592a061-630c-0410-9148-cb99ea01b6c8
2009-03-02 10:24:07 +00:00
Vincent van Ravesteijn
07dba7f761
Fix^3 of bug 4346.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28633 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-27 00:04:28 +00:00
Vincent van Ravesteijn
7eb04d61d9
Fix the fix for bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346 .
...
Synchronizing insets asserts with two views open
This finishes the change of http://www.lyx.org/trac/changeset/28587 .
Replace the setButtonLabels functions that need a BufferView by buttonLabel functions. These functions modify the label at drawing time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28610 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-25 22:35:41 +00:00
Vincent van Ravesteijn
aedfb81808
Fix bug 4346: http://bugzilla.lyx.org/show_bug.cgi?id=4346 .
...
Synchronizing insets asserts with two views open
It changes the autoOpen_ member of InsetCollapsable into a map, such that an autoOpen value can be specified for each bufferView. Now, the assertion is avoided and insetCollapsable can be open in one bufferview and be closed in the other in very special cases that the cursor end up in a closed inset.
Compare with the MathMacro::editing_ member.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28573 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-21 16:27:00 +00:00
Richard Heck
a864caf6f4
Move some stuff from InsetFlex to InsetCollapsable, and make use of the
...
InToc tag in a couple places.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28378 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-06 17:56:47 +00:00
Richard Heck
6d90ee1f40
Typo.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28339 a592a061-630c-0410-9148-cb99ea01b6c8
2009-02-03 21:11:05 +00:00
Uwe Stöhr
b742ff6406
support for the LaTeX commands \*phantom, fileformat change
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28292 a592a061-630c-0410-9148-cb99ea01b6c8
2009-01-30 00:56:37 +00:00
André Pönitz
f1cba8ff64
more latin1..utf8 schanges. all of src/* should be utf8 now
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27425 a592a061-630c-0410-9148-cb99ea01b6c8
2008-11-14 15:58:50 +00:00
Richard Heck
f771d9a994
This is a conservative fix for the layout setting bug discussed in
...
this thread:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg145547.html
The more dramatic fix suggested there can wait.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27164 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-28 14:11:24 +00:00
Jean-Marc Lasgouttes
a47deb4897
fix warning and reindent
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27147 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-27 10:36:38 +00:00
Richard Heck
6b0e349980
Revert r27129. We can't get rid of these until we have something else positive to do.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 16:05:19 +00:00
Richard Heck
d6f1915684
This optional argument to the InsetCollapsable constructor
...
is more trouble than it is worth.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27131 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 02:25:57 +00:00
Richard Heck
9e3b4803fe
The two lines deleted here attempt to call virtual functions from a constructor. They have no effect, basically. Patch that does what these try to do forthcoming.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27125 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-26 01:18:26 +00:00
Richard Heck
976a59af1b
Fix another part of 5403, again to do with case sensitivity.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27109 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 14:02:25 +00:00
Richard Heck
53252839ea
Style.
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27105 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-25 13:41:02 +00:00
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
7ec4207371
Fix http://bugzilla.lyx.org/show_bug.cgi?id=5369
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26930 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-17 04:35:08 +00:00
Jürgen Spitzmüller
e996067afa
* InsetCollapsable.cpp (getStatus):
...
- this code is now in InsetText.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26740 a592a061-630c-0410-9148-cb99ea01b6c8
2008-10-05 10:05:18 +00:00
Jean-Marc Lasgouttes
0c68af937a
move the validation code from InsetFlex to InsetCollapsable
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26538 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-25 13:05:43 +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
Richard Heck
2807761e65
Fix a bug that allowed setting of layouts inside optional arguments.
...
There is more that could be done here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26303 a592a061-630c-0410-9148-cb99ea01b6c8
2008-09-04 21:50:14 +00:00
Pavel Sanda
2d811e48e2
Get rid of annoying tooltips. ERT tooltip survived for the time being.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg142984.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26250 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-29 00:38:51 +00:00
Jean-Marc Lasgouttes
3d9f151e00
set cursor correctly when right clicking on inset button
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-13 15:01:12 +00:00
Jean-Marc Lasgouttes
45312b5f49
Fix bug 4166: Crash when middle button click on inset label
...
http://bugzilla.lyx.org/show_bug.cgi?id=4662
* InsetCollapsable.cpp (doDispatch): cleanup the handling of mouse-
related lfuns. The new behavior is as follows:
- everything that does not touch the button is sent to the insettext,
if it is visible, and delegated to enclosing inset instead
- mouse1-press is delegated to enclosing inset (which will set the
cursor)
- the rest is either acted upon or results on a mere cur.noUpdate().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26122 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-12 14:13:16 +00:00
Abdelrazak Younes
0a342b3be1
Tentatively fix http://bugzilla.lyx.org/show_bug.cgi?id=4873
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26090 a592a061-630c-0410-9148-cb99ea01b6c8
2008-08-07 07:45:52 +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
Pavel Sanda
a7a31dc392
Remove LFUN_BIBITEM_INSERT.
...
The last GUI trace for using this lfuns is here: http://www.lyx.org/trac/changeset/9966 .
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141812.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25588 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 01:28:06 +00:00
Pavel Sanda
20b9e0ba93
Remove InsetEnvironment. This is unfinished decade old stuff.
...
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141609.html
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25479 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 16:34:55 +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
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
Pavel Sanda
ec348c574a
Unify LFUN naming.
...
(LFUN_FLOAT_LIST -> LFUN_FLOAT_LIST_INSERT)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25065 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-02 11:31:03 +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
Richard Heck
b90b295e22
Partially fix an annoying hover problem, viz: InsetCollapsable buttons don't get unhovered' if you collapse them (via Ctrl-I) when the mouse is inside the inset. I often seem to end up with several
hovered' buttons.
...
There is probably a better solution somewhere, but it's not obvious what it is, and this solution doesn't do anything terrible. It leaves unaddressed the fact that the button does not get `hovered' if you open an inset via Ctrl-I, and then the mouse ends up inside it, and now the button will get `unhovered' whenver you collapse it, even if the mouse ends up over the button. But (i) my attempts to deal with these cases failed, (ii) they're not very annoying, (iii) they get `fixed' as soon as you move the mouse, and (iv) I'm not sure how complicated it's worth making this.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24662 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 19:20:01 +00:00
Abdelrazak Younes
61507ecf01
fix Bug 4119: LFUN accent-special-caron is obsolete
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24655 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-07 11:17:43 +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
Jürgen Spitzmüller
fa568e12f0
* move extended tooltips support to InsetCollapsable (fixes bug 3778).
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24524 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-27 14:47:07 +00:00
Jean-Marc Lasgouttes
ba5c6d5127
add support for a check box in menu for inset-toggle
...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-15 14:25:57 +00:00