]> git.lyx.org Git - features.git/commit
Add a pre-handler that triggers an input event when text is pasted into
authorAngus Leeming <leeming@lyx.org>
Wed, 29 Aug 2001 11:01:05 +0000 (11:01 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 29 Aug 2001 11:01:05 +0000 (11:01 +0000)
commitd51710eb3e5e4161d406bc2179b1c3cb21c04f36
treede390cd5dcb17e95a864b01df22301e1e6f30e04
parent621c0624346bde90df3f0e57d5a9e46002bd56e5
Add a pre-handler that triggers an input event when text is pasted into
an xforms text input widget.
Use this in the Preamble dialog.

If anybody wants to help add this functionality to the rest of the dialogs
then feel free. Apart from FormPreferences (which has it's own prehandler
already that would need to be modified) there are about 60 text input
widgets that all need the extra code:
extern "C" int C_CutandPastePH(FL_OBJECT *, int, FL_Coord, FL_Coord,
       int, void *);

fl_set_object_prehandler(widget, C_CutandPastePH);

Not too hard, is it?

Angus

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2613 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormBase.C
src/frontends/xforms/FormPreamble.C