Commit Graph

333 Commits

Author SHA1 Message Date
Angus Leeming
47b06816be Add LColor::graphicsbg and use it in the graphics and figure insets.
Ensures that a figure with a transparent colour can be viewed
easily if the LyX screen's background colour is dark.

Prevent deletion of the image file if no conversion is required.

This patch works like a charm with the (old) figinset. When testing
the graphics inset, however, I find that colour "None" in an XPM file
is displayed as black. I have no idea why. This appears to be true of
some other graphics viewers also. E.g., KDE 2's pixie displays "None"
as black but the venerable xv works fine.

Maybe it's my version of the xpm library, but v3.4.11 appears to be
right up to date.

Can people test on their machines and/or offer suggestions here?
Angus

p.s. You can test with the XPM files in lib/images. They will no longer
be deleted if you load them into LyX!

A.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2777 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-20 13:16:17 +00:00
Jean-Marc Lasgouttes
eec568d870 fix free memory read when pasting + some typos
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2776 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-20 10:16:24 +00:00
Dekel Tsur
aa32bf2dcb Check if font is available without loading the font.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2771 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-19 16:36:39 +00:00
Angus Leeming
59df20fcc6 The redesigned graphics dialog, some tweeks to the preferences and ref
dialogs.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2768 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-18 10:58:35 +00:00
Jean-Marc Lasgouttes
870564775b one more helper method in Bufferparams
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2767 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-17 15:39:58 +00:00
Angus Leeming
82d18e917b set minimum size to the main window.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2762 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-17 09:16:09 +00:00
Jean-Marc Lasgouttes
43cb604df7 fix indexing first word in a list layout
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2738 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-12 10:41:25 +00:00
Jean-Marc Lasgouttes
a4eb2c3040 support for new -version command line option
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2725 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-11 13:13:03 +00:00
Lars Gullik Bjønnes
271f8d7eec some mods I had in my local tree, mostly small stuff, perhaps minus the the Makefile changes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2713 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-09 22:02:19 +00:00
Angus Leeming
bb6f1f7c41 Remove redundant LFUNs,
LFUN_HELP_COPYRIGHT, LFUN_HELP_CREDITS, LFUN_HELP_VERSION.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2710 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-07 17:51:00 +00:00
Jean-Marc Lasgouttes
9359baacf8 bug fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2707 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-07 15:41:36 +00:00
Angus Leeming
5bc3841d41 Rob Lahaye's "iconify dialogs with main window if so desired" patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2703 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-07 10:11:02 +00:00
José Matox
2470d9297d rename docBook method to docbook
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2681 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-04 11:02:09 +00:00
Angus Leeming
81d7acebb2 Fix dependencies for main.o
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2678 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-04 09:37:22 +00:00
Dekel Tsur
ecdfc90a7a Return false in FontLoader::available if !lyxrc.use_gui
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2671 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-03 19:28:36 +00:00
Angus Leeming
7abb718a67 Michael's "can not -> cannot" patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2662 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-03 10:04:47 +00:00
Angus Leeming
3a0b382ba7 Hacky fix for the boost::tie stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2657 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-02 14:43:59 +00:00
Angus Leeming
c9ca51378a John's index inset patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2656 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-02 14:40:03 +00:00
Angus Leeming
55d1da0faa Added a std:: declaration
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2654 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-02 12:31:19 +00:00
Angus Leeming
3641ebaf66 John's patches (except for [PATCH] fix quit etc. from inset about which I
cannot comment).


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2652 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-02 11:46:00 +00:00
Dekel Tsur
0233b6753d Paragraph iterators
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2649 a592a061-630c-0410-9148-cb99ea01b6c8
2001-09-01 21:26:34 +00:00
Dekel Tsur
2806246e1e Few math fonts improvements (use cmr for uppercase greek, support for
\mathbb)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2647 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-31 21:15:57 +00:00
Dekel Tsur
0cf717d0c8 More fonts in mathed.
Please test.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2632 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-30 22:42:26 +00:00
Angus Leeming
3f7e3f8bef Revert recent "fix"!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2576 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-23 16:13:47 +00:00
Angus Leeming
c82e7795c3 Only output the -paper option if the dvi viewer is xdvi, thereby fixing
bug #233429.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2575 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-23 15:11:23 +00:00
Angus Leeming
9f672b28c4 The BibTeX dialog asymptotes towards perfection!
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2573 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-23 09:04:42 +00:00
Dekel Tsur
32ef0d04c4 Fix paragraph spacing
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2562 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-20 19:08:46 +00:00
Lars Gullik Bjønnes
35058c638e fixed some bugs in the version control handling
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2553 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-19 14:06:27 +00:00
Lars Gullik Bjønnes
d47c62c16c initialize fval
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2544 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-18 10:54:33 +00:00
Dekel Tsur
1148c5d181 Fixes due to new math-insert syntax.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2543 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-18 10:33:17 +00:00
Angus Leeming
10231c3538 John's patch resulting in grammatically correct but clumsy names for
the various lists of floats. Awaiting Dekel's fix to add a multilingual
plural to the float name ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2523 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-16 10:28:56 +00:00
Angus Leeming
ab09cf6fc9 John's miscellaneous collection of small bits and pieces patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2522 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-16 10:19:59 +00:00
Angus Leeming
4aca97ca21 John's per-paragraph line spacing patch.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2521 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-16 10:14:48 +00:00
Jürgen Vigna
45bd81a203 Added new FINISED states FINISHED_RIGHT, FINISHED_UP, FINISHED_DOWN.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2518 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-16 08:52:30 +00:00
Dekel Tsur
19f1292262 Fix compatability code.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2507 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-13 21:46:19 +00:00
Dekel Tsur
60c447c775 Use normal cursor shape in ERT insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2506 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-13 17:57:14 +00:00
Jürgen Vigna
b158f8a481 Fixed bug when inserting insets in right alligned paragraphs.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2499 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-13 13:28:14 +00:00
Dekel Tsur
094ce1115b tiny change
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2498 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-13 12:47:33 +00:00
Jürgen Vigna
9f3dd22dd3 Fixed S&R functions with insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2497 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-13 11:27:53 +00:00
Jürgen Vigna
4a2096fff1 Fixed bug that did not single replace words with casesensitive off sometimes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2495 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-13 10:09:50 +00:00
Dekel Tsur
a277759770 Add latex_language and remove inherit_language
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2492 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-11 18:31:14 +00:00
Jürgen Vigna
57920ce17b Small fixes + hfill display/draw bug (seen with minipages!).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2487 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 14:00:48 +00:00
Jürgen Vigna
3b870366b4 Fixed "non selection" when hit a word with the spellchecker.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2479 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-10 11:07:07 +00:00
Jürgen Vigna
0756c7aed1 Fixed bug where delete/backspace like operations on selections filled the
cut'n paste buffer. Now this buffer is not touched by this operations.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2454 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-08 14:36:56 +00:00
Jürgen Vigna
86e4a9bc8a More fixes to various bug reports.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2453 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-08 13:29:13 +00:00
Jürgen Vigna
1375dcbeba fixed some forgotten lowercase
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2435 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-07 07:36:56 +00:00
Lars Gullik Bjønnes
a0bf0835e5 more funcs to lowerchar, adjust
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2428 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-06 19:12:46 +00:00
Jürgen Vigna
26b1fa7be8 Various update/redraw fixes. Cleaned up InsetERT and added a dialog for
changing between statuses. Save the statuses to file.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2425 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-06 14:55:02 +00:00
Lars Gullik Bjønnes
d4d9fa230d make sure the Xserver updates the input
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2419 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-04 10:26:01 +00:00
Lars Gullik Bjønnes
38d70098f2 forgot it
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2418 a592a061-630c-0410-9148-cb99ea01b6c8
2001-08-03 18:31:23 +00:00