Commit Graph

267 Commits

Author SHA1 Message Date
Angus Leeming
c10dfd15cd * LyXView: the accessor methods now return a reference to the member
variables, not a pointer.
* WordLangTuple: you can forward-declare a return type you know ;-)
* Qt: get it to compile again, having broken it yesterday.
* Everything else? See above.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4957 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-13 14:40:38 +00:00
Angus Leeming
cc132995fa Cache the BufferView as a weak_ptr; get rid of those horrible current_views.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4846 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-02 16:30:58 +00:00
Angus Leeming
984cbba504 * Mathed now caches the BufferView as a weak_ptr.
* PreviewedInset caches the LaTeX snippet.
* Further clean-up of mathed's preview code.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4838 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-02 12:38:20 +00:00
Angus Leeming
d91ffd8d78 Previews for \input insets.
Refactor code common to InsetInclude and InsetFormula into a new
PreviewedInset class.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4830 a592a061-630c-0410-9148-cb99ea01b6c8
2002-08-01 17:28:59 +00:00
Lars Gullik Bjønnes
043298544c Rename strip to rtrim
Rename frontStrip to ltrim
Add new trim function.

modify source for this change.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4801 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-28 22:50:13 +00:00
Lars Gullik Bjønnes
e39935204d remove some unneeded version of functions from lstrings,
some gcc 3.2. minor compile fixes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4800 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-28 18:13:51 +00:00
Angus Leeming
00c0baf022 Regenerate a preview only when leaving a math inset with depth 1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4763 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-23 14:47:31 +00:00
Angus Leeming
b3fa703ea7 Aesthetic improvement of equation positioning when previewing in display mode.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4758 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-23 09:23:11 +00:00
Jean-Marc Lasgouttes
4bf9542812 fix display of rotated math decorations
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4754 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-22 22:00:49 +00:00
Angus Leeming
f643df79a8 * Make the graphics files conform strictly to the Pimpl idiom by moving
the boost::signals into the relevant Impl classes and creating new,
publicly-accessible connect() methods.
* Const-ify all publicly-accessible methods, reflecting the fact that each
class contains only a const pimpl_ member variable.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4687 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-17 16:56:42 +00:00
Angus Leeming
4b0c1d1065 Compilation fix.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4679 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-17 12:07:57 +00:00
Angus Leeming
830ef843a6 remove the extra pixels required to accommodate the mathed active frame
when in Preview mode.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4653 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-16 18:04:57 +00:00
Angus Leeming
16b928088f Smart loading of image files for previews and for the graphics inset.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4638 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-15 11:08:46 +00:00
John Levon
2fd0569093 use Lsstream.h not sstream
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4635 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-14 17:25:25 +00:00
John Levon
c17851a1d5 Move fontloader into lyx_gui stuff. Now Qt should compile out of the box
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4612 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-12 03:05:13 +00:00
Angus Leeming
a0003fb2a8 New lyxrc variables for the preview stuff.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4580 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-10 09:09:37 +00:00
Angus Leeming
9617cc8a36 Compilation fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4569 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-09 14:00:59 +00:00
Angus Leeming
fb443a893e Trivial compile fixes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4564 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-09 10:06:27 +00:00
Angus Leeming
f68a2bfb91 Preview code
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4538 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-05 21:24:15 +00:00
Lars Gullik Bjønnes
de236c41d8 Changes to make RH-7.3 be able to run lyx.
Also changes to make gcc 3.1 compiled lyx exit cleanly after
above changes.

Move operator== out out InsetCommandParams.

Change some signals in GraphicsImage to function instead.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4535 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-04 17:45:35 +00:00
André Pönitz
cd19a0b33b Geof Piroux's patch for Mathematica support
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4506 a592a061-630c-0410-9148-cb99ea01b6c8
2002-07-01 11:17:14 +00:00
Angus Leeming
888532c465 Asymptotic approach to a well-designed graphics loader.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4502 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-28 11:22:56 +00:00
André Pönitz
c3a3e12319 remove "remove seemingly unneeded {} hack"
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4501 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-28 09:40:40 +00:00
Angus Leeming
1bb197b5d4 Create a grfx::Loader class and so move large chunks of code out of
frontends/screen.C and insets/insetgraphics.C. Leave mathed/preview.C
untouched as an excercise for Andr� ;-)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4489 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-26 14:15:08 +00:00
André Pönitz
23f483a23e fix #456
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4470 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-24 18:10:01 +00:00
John Levon
1cadf458e3 redraw() cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4450 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-21 02:22:13 +00:00
Lars Gullik Bjønnes
f1c24d1009 *duck*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4417 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-18 15:44:30 +00:00
André Pönitz
656a4db7b3 Cheangelog entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4325 a592a061-630c-0410-9148-cb99ea01b6c8
2002-06-03 07:32:47 +00:00
André Pönitz
6f74c2c9b9 re-enable ams "autodetection" (I still think it is wrong...)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4309 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-31 04:51:49 +00:00
André Pönitz
fe87869cb7 fonts as insets
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4289 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-30 07:09:54 +00:00
Lars Gullik Bjønnes
1e39473100 Switch from SigC signals to boost::signals
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4281 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-29 16:21:03 +00:00
John Levon
97ef9131ba static_cast-based key/mouse-state. Kill insetKeyPress.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4210 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-26 17:33:14 +00:00
John Levon
962a0c5585 font loader / color handler move
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4204 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-24 18:24:14 +00:00
John Levon
2dabaa33de font_metrics part 1
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4203 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-24 14:34:32 +00:00
Lars Gullik Bjønnes
75d1fb6874 include vector and add a using statement
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4196 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-24 10:01:07 +00:00
André Pönitz
4dd8a4ed0a First shot at "auto correction" feature in mathed
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4195 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-24 08:29:16 +00:00
John Levon
435d527581 guii2
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4190 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-23 12:08:47 +00:00
John Levon
06f9f0ea08 OK I'll try guii1 again ...
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4186 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-23 09:21:32 +00:00
Lars Gullik Bjønnes
482c04ecca use more specific smart_ptr headers
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4183 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-22 01:16:37 +00:00
André Pönitz
6d1bc04227 missing ChangeLog entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4175 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-16 07:15:46 +00:00
Lars Gullik Bjønnes
f15d44ccf4 pastesel.patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4171 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-15 23:49:08 +00:00
André Pönitz
277569593d add missing ChangeLog entry
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4165 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-15 16:02:24 +00:00
Lars Gullik Bjønnes
23306a5536 autodelreg2.patch
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4156 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-14 09:15:40 +00:00
André Pönitz
13462e25c3 fix crash on paste as reported by Piroux Geoffroy
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4153 a592a061-630c-0410-9148-cb99ea01b6c8
2002-05-13 12:42:03 +00:00
Jürgen Vigna
b83dce0da3 Forgot about this the Panel should NEVER be opened in a Press event ONLY
in the Release event!


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4054 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-24 13:52:04 +00:00
Jürgen Vigna
d90f89db7e Fix clicking on a mathed inset with button != 1.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4051 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-24 09:01:03 +00:00
Jean-Marc Lasgouttes
0c02b0e141 allow insertion of protected space in maths
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4042 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-22 22:31:49 +00:00
Jean-Marc Lasgouttes
2611cce4f1 fix math-delim
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4006 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-16 09:57:37 +00:00
Angus Leeming
c70e6fea61 Remove last traces of the hack used until yesterday for the cursor
positioning with the mouse.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3902 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-04 11:59:32 +00:00
Allan Rae
1bcc13c757 let this code work with lyxstring also
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3876 a592a061-630c-0410-9148-cb99ea01b6c8
2002-04-02 02:45:23 +00:00