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
40 void Inset::Validate(LaTeXFeatures &) const
47 bool Inset::AutoDelete() const
53 void Inset::Edit(int, int)
58 LyXFont Inset::ConvertFont(LyXFont font)
64 // Inset::Code Inset::LyxCode() const
66 // return Inset::NO_CODE;
69 /* some stuff for inset locking */
72 void UpdatableInset::InsetButtonPress(int x, int y, int button)
74 lyxerr.debug() << "Inset Button Press x=" << x
75 << ", y=" << y << ", button=" << button << endl;
79 void UpdatableInset::InsetButtonRelease(int x, int y, int button)
81 lyxerr.debug() << "Inset Button Release x=" << x
82 << ", y=" << y << ", button=" << button << endl;
86 void UpdatableInset::InsetKeyPress(XKeyEvent *)
88 lyxerr.debug() << "Inset Keypress" << endl;
92 void UpdatableInset::InsetMotionNotify(int x, int y, int state)
94 lyxerr.debug() << "Inset Motion Notify x=" << x
95 << ", y=" << y << ", state=" << state << endl;
99 void UpdatableInset::InsetUnlock()
101 lyxerr.debug() << "Inset Unlock" << endl;
105 // An updatable inset is highly editable by definition
106 unsigned char UpdatableInset::Editable() const
108 return 2; // and what does "2" siginify? (Lgb)
112 void UpdatableInset::ToggleInsetCursor()