1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-1999 The LyX Team.
9 * ====================================================== */
14 #pragma implementation "lyxinset.h"
19 #include "support/lstrings.h"
21 /* Insets default methods */
23 bool Inset::Deletable() const
29 bool Inset::DirectWrite() const
35 unsigned char Inset::Editable() const
41 void Inset::Validate(LaTeXFeatures &) const
46 bool Inset::AutoDelete() const
52 void Inset::Edit(int, int)
57 LyXFont Inset::ConvertFont(LyXFont font)
63 /* some stuff for inset locking */
65 void UpdatableInset::InsetButtonPress(int x, int y, int button)
67 lyxerr.debug() << "Inset Button Press x=" << x
68 << ", y=" << y << ", button=" << button << endl;
72 void UpdatableInset::InsetButtonRelease(int x, int y, int button)
74 lyxerr.debug() << "Inset Button Release x=" << x
75 << ", y=" << y << ", button=" << button << endl;
79 void UpdatableInset::InsetKeyPress(XKeyEvent *)
81 lyxerr.debug() << "Inset Keypress" << endl;
85 void UpdatableInset::InsetMotionNotify(int x, int y, int state)
87 lyxerr.debug() << "Inset Motion Notify x=" << x
88 << ", y=" << y << ", state=" << state << endl;
92 void UpdatableInset::InsetUnlock()
94 lyxerr.debug() << "Inset Unlock" << endl;
98 // An updatable inset is highly editable by definition
99 unsigned char UpdatableInset::Editable() const
101 return 2; // and what does "2" siginify? (Lgb)
105 void UpdatableInset::ToggleInsetCursor()