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(string("Inset Button Press x=")+ tostr(x) +
75 ", y=" + tostr(y) + ", button=" + tostr(button));
79 void UpdatableInset::InsetButtonRelease(int x, int y, int button)
81 lyxerr.debug(string("Inset Button Release x=")+ tostr(x) +
82 ", y=" + tostr(y) + ", button=" + tostr(button));
86 void UpdatableInset::InsetKeyPress(XKeyEvent *)
88 lyxerr.debug("Inset Keypress");
92 void UpdatableInset::InsetMotionNotify(int x, int y, int state)
94 lyxerr.debug(string("Inset Motion Notify x=")+ tostr(x) +
95 ", y=" + tostr(y) + ", state=" + tostr(state));
99 void UpdatableInset::InsetUnlock()
101 lyxerr.debug("Inset Unlock", Error::ANY);
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()