Commit Graph

3070 Commits

Author SHA1 Message Date
Abdelrazak Younes
f3f99c354c add const
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25590 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 05:33:14 +00:00
Abdelrazak Younes
e93fd11d41 Fix MSVC warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25589 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-14 05:19:39 +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
Jürgen Spitzmüller
47e6b74e74 * src/insets/InsetSpace.cpp:
- proper visualization for negative hspaces, in analogy to negative vspaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25557 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-11 08:46:05 +00:00
Pavel Sanda
08165a71bb Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5008 .
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25553 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 23:35:12 +00:00
Uwe Stöhr
3ceba1f8e4 InsetSpace.cpp:
- use another color for negative spaces to be able to distinguish it from "normal" positive one
 - don't swap the inset drawing as this inconsistent to the other negative spaces and the ones in math mode

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25544 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 22:01:57 +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
Jürgen Spitzmüller
f10b67b09f * src/insets/InsetSpace.cpp:
- comment

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25531 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 07:45:33 +00:00
Jürgen Spitzmüller
21f3fadbc1 * src/insets/InsetSpace.cpp:
- (simple) visual indication for negative hspaces.
	- minimal metrics width for hspaces.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25530 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-10 07:43:21 +00:00
Jürgen Spitzmüller
0160b75b4d * src/insets/InsetSpace.cpp:
- use abs().

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25516 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 10:31:16 +00:00
Jürgen Spitzmüller
01fb1898ad * src/insets/InsetSpace.cpp:
- correct metrics for negative hspaces (bug 5009).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25512 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-09 08:12:38 +00:00
Richard Heck
89695eb813 Fix bug 4976.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25481 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 16:48:36 +00:00
Pavel Sanda
12c72ac7fb Forgot to remove the files.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25480 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-07 16:37:38 +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
064c280f17 Leftover from http://www.lyx.org/trac/changeset/23471
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25467 a592a061-630c-0410-9148-cb99ea01b6c8
2008-07-06 21:03:05 +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
397afb607f Move LFUN_NOTES_MUTATE dispatch to BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25368 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-24 07:18:06 +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
7267b4bef2 Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25308 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:27:45 +00:00
Pavel Sanda
1f1951e210 Add LFUN_NOTES_MUTATE for global change of note insets type.
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg141339.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25306 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-18 18:16:50 +00:00
Jürgen Spitzmüller
483e1fcd19 ExternalTemplate.cpp:
- sort Lexer table.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25262 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-15 14:23:45 +00:00
Abdelrazak Younes
4a1be58591 - Simplify prefs, graphics and external display options which are now true or false.
- the display combo in the prefs, external and graphics dialogs are gone
- the lyxrc display_graphics option now overrides any local inset display option
- The external template format has a new tag: Preview
- format incremented to 337


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25245 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-13 07:34:55 +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
Abdelrazak Younes
e4a5278060 start image loading at metrics time.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25165 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:39:43 +00:00
Abdelrazak Younes
21f59b816b RenderGraphic::metrics(): return early.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25164 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 12:34:27 +00:00
Abdelrazak Younes
af050ab1b0 Some polish.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25156 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 09:33:24 +00:00
Abdelrazak Younes
81cc98a500 InsetInfo: Some fixes...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25154 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 08:45:58 +00:00
Abdelrazak Younes
062bec11d0 * Dialog::inset(): make it const.
* InsetInfo::validate(): new method for checking dispatch argument. Not implemented yet.

* GuiInfo: remove non working code and rework the dialog following my vision of an ideal info dialog :-) not every thing works yet.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25153 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 08:01:59 +00:00
Bo Peng
3c142cdd47 GuiInfo: display and initialize the information dialog, can not apply yet
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25152 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 04:10:42 +00:00
Bo Peng
f5101ebec8 InsetInfo: allow select and copy of text inside InsetInfo, trigger the info dialog correctly
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25151 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 03:25:36 +00:00
Richard Heck
95a5be2891 Prevent a crash when destroying insets whose Buffers have been closed.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25150 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-06 03:11:56 +00:00
Jürgen Spitzmüller
0f07e83733 Wrap figures can also have subfloats. I simply forgot that when implementing subfloat support.
Well, here it is. Fixes one part of bug 4927. There's a remaining problem on conversion of onld subfigs with LaTeX content (e.g. \label). I'll fix that in a second step.

There's 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25148 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 16:05:52 +00:00
Abdelrazak Younes
34739e59f7 The inset connection is not needed as the dialog will retrieve the inset from the cursor location.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25145 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:28:27 +00:00
Abdelrazak Younes
f276338227 Preliminar InsetInfo dialog. This was done as an exercise to show Bo (an others) how easy it is to create a new dialog. This dialog needs to be filled in, right now, there is just an OK button.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25144 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 15:08:46 +00:00
Abdelrazak Younes
e060218986 * InsetInfo: use Application::iconName().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25140 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 08:49:19 +00:00
Richard Heck
f65bb20bfe Forgot this bit.
The only remaining problem here is that, if you edit the TEXT that goes with
an InsetBibitem, then the information in the citation will not get updated
until something else invalidates the cache.  The only way to fix this, given
the existing system, would seem to be to check, every time anything gets 
edited, whether we're in a Bibliography environment or not, and if so to
invalidate the cache. I'm not sure that is worth it. Really, it points to a
more general issue with InsetBibitem, IMHO: It ought to be a kind of combined
inset, a hybrid of sorts between an InsetCollapsable and an InsetCommand. But
that would be for 1.7.x at least.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25138 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:59:35 +00:00
Richard Heck
8a64579d9c More cache fixing. Similar fix as for InsetBibtex, and I've renamed the key routine.
Unfortunately, we can't do a one-short fix for InsetCommand, requiring that it take
a Buffer & in the constructor, due to problems in mathed, specifically, here:
void InsetMathHull::label(row_type row, docstring const & label)
{
...
label_[row] = new InsetLabel(p);
if (buffer_)
label_[row]->setBuffer(buffer());
}
If InsetLabel has to have a Buffer, then buffer_ has to be set, which means InsetMathHull needs a Buffer. But then truckloads of these are created in Parser, where we don't really seem to have access to a Buffer.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25137 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:55:34 +00:00
Richard Heck
2ea039ba99 Fix some of the BibTeX cache issues. We need to be able to invalidate the cache when
InsetBibtex's get created and destroyed, or modified.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25136 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 06:42:53 +00:00
Richard Heck
ad76cb5c5f Give an error message here.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25133 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 05:39:48 +00:00
Bo Peng
c6565b4209 Add InsetInfo::SHORTCUTS_INFO and ICON_INFO
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25129 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-05 03:41:35 +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
Jean-Marc Lasgouttes
31cc9454ef fix compiler warning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25113 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 09:57:37 +00:00
Abdelrazak Younes
4f2a7a953b Fix crash while InsetInfo hovering by replacing the hover message with a tooltip.
Note to all: NEVER send a message inside a draw() method! This triggers a recursive painting of the status bar with Qt4.4 !



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25112 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-04 07:15:43 +00:00
Abdelrazak Younes
3803473627 Fix toc generation after rev25096.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25097 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 11:33:13 +00:00
Abdelrazak Younes
c99463ebfc Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4910 by creating InsetText::addToToc().
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25096 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-03 11:12:45 +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
Bo Peng
ee9511f52c Change inset label from ": filename" to "Program Listing: filename" for listings without caption.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25057 a592a061-630c-0410-9148-cb99ea01b6c8
2008-06-01 18:23:22 +00:00
André Pönitz
7f678a39cd fix my color cache "improvements"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25029 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 22:39:52 +00:00
Pavel Sanda
daec6dc0be One more.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25025 a592a061-630c-0410-9148-cb99ea01b6c8
2008-05-31 12:28:16 +00:00