]> git.lyx.org Git - lyx.git/blob - src/insets/insetbase.C
setFont rework + some code simplification
[lyx.git] / src / insets / insetbase.C
1 /**
2  * \file insetbase.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "insetbase.h"
14 #include "debug.h"
15 #include "dispatchresult.h"
16
17
18 DispatchResult
19 InsetBase::dispatch(FuncRequest const & f, idx_type & i, pos_type & p)
20 {
21         return priv_dispatch(f, i, p);
22 }
23
24
25 DispatchResult
26 InsetBase::dispatch(FuncRequest const & f)
27 {
28         idx_type i = 0;
29         pos_type p = 0;
30         return priv_dispatch(f, i, p);
31 }
32
33
34 DispatchResult
35 InsetBase::priv_dispatch(FuncRequest const &, idx_type &, pos_type &)
36 {
37         return DispatchResult(false);
38 }
39
40
41 void InsetBase::edit(BufferView *, bool)
42 {
43         lyxerr << "InsetBase: edit left/right" << std::endl;
44 }
45
46
47 void InsetBase::edit(BufferView * bv, int, int)
48 {
49         lyxerr << "InsetBase: edit xy" << std::endl;
50         edit(bv, true);
51 }