Commit Graph

3909 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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