]> git.lyx.org Git - lyx.git/blob - src/frontends/controllers/ControlUrl.C
two patches from john
[lyx.git] / src / frontends / controllers / ControlUrl.C
1 /* This file is part of
2  * ====================================================== 
3  *
4  *           LyX, The Document Processor
5  *
6  *           Copyright 2001 The LyX Team.
7  *
8  * ======================================================
9  *
10  * \file ControlUrl.C
11  * \author Angus Leeming <a.leeming@ic.ac.uk>
12  */
13
14 #include <config.h>
15
16 #ifdef __GNUG__
17 #pragma implementation
18 #endif
19
20 #include "ViewBase.h"
21 #include "ButtonControllerBase.h"
22 #include "ControlUrl.h"
23 #include "Dialogs.h"
24 #include "LyXView.h"
25 #include "buffer.h"
26
27 using SigC::slot;
28
29 ControlUrl::ControlUrl(LyXView & lv, Dialogs & d)
30         : ControlCommand(lv, d, LFUN_INSERT_URL)
31 {
32         d_.showUrl.connect(slot(this, &ControlUrl::showInset));
33         d_.createUrl.connect(slot(this, &ControlUrl::createInset));
34 }