1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright (C) 1995 Matthias Ettrich
7 * Copyright (C) 1995-1998 The LyX Team.
9 *======================================================*/
14 #pragma implementation "lyxinset.h"
20 // $Id: inset.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $
22 #if !defined(lint) && !defined(WITH_WARNINGS)
23 static char vcid[] = "$Id: inset.C,v 1.1 1999/09/27 18:44:38 larsbj Exp $";
26 /* Insets default methods */
28 bool Inset::Deletable() const
34 bool Inset::DirectWrite() const
40 unsigned char Inset::Editable() const
45 void Inset::Validate(LaTeXFeatures &) const
52 bool Inset::AutoDelete() const
58 void Inset::Edit(int, int)
63 LyXFont Inset::ConvertFont(LyXFont font)
69 // Inset::Code Inset::LyxCode() const
71 // return Inset::NO_CODE;
74 /* some stuff for inset locking */
77 void UpdatableInset::InsetButtonPress(int x, int y, int button)
79 lyxerr.debug(LString("Inset Button Press x=")+ x +
80 ", y=" + y + ", button=" + button);
84 void UpdatableInset::InsetButtonRelease(int x, int y, int button)
86 lyxerr.debug(LString("Inset Button Release x=")+ x +
87 ", y=" + y + ", button=" + button);
91 void UpdatableInset::InsetKeyPress(XKeyEvent *)
93 lyxerr.debug("Inset Keypress");
97 void UpdatableInset::InsetMotionNotify(int x, int y, int state)
99 lyxerr.debug(LString("Inset Motion Notify x=")+ x +
100 ", y=" + y + ", state=" + state);
104 void UpdatableInset::InsetUnlock()
106 lyxerr.debug("Inset Unlock", Error::ANY);
110 // An updatable inset is highly editable by definition
111 unsigned char UpdatableInset::Editable() const
113 return 2; // and what does "2" siginify? (Lgb)
117 void UpdatableInset::ToggleInsetCursor()