-void LyXView::UpdateDocumentClassChoice()
-{
- /* update the document class display in the document form */
- int i;
- if (fd_form_document) {
- fl_clear_choice(fd_form_document->choice_class);
- for (i = 0; lyxstyle.DescOfClass (i)!="@@end@@"; i++) {
- fl_addto_choice(fd_form_document->choice_class,
- lyxstyle.DescOfClass(i).c_str());
- }
- }
-}
-
-
-// This is necessary, since FL_FREE-Objects doesn't get all keypress events
-// as FL_KEYBOARD events :-( Matthias 280596
-int LyXView::KeyPressMask_raw_callback(FL_FORM *fl, void *xev)
-{
- LyXView *view = (LyXView*) fl->u_vdata;
- int retval = 0; // 0 means XForms should have a look at this event
-
- // funny. Even though the raw_callback is registered with KeyPressMask,
- // also KeyRelease-events are passed through:-(
- // [It seems that xforms puts them in pairs... (JMarc)]
- if (((XEvent*)xev)->type == KeyPress
- && view->bufferview->getWorkArea()->focus
- && view->bufferview->getWorkArea()->active)
- retval = view->getLyXFunc()->processKeyEvent((XEvent*)xev);
-
- return retval;
-}
-
-// wrapper for the above
-extern "C" int C_LyXView_KeyPressMask_raw_callback(FL_FORM *fl, void *xev)
-{
- return LyXView::KeyPressMask_raw_callback(fl, xev);
-}
-