1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
11 * \author Angus Leeming <a.leeming@ic.ac.uk>
17 #pragma implementation
21 #include "ButtonControllerBase.h"
22 #include "ControlRef.h"
30 ControlRef::ControlRef(LyXView & lv, Dialogs & d)
31 : ControlCommand(lv, d, LFUN_REF_INSERT)
33 d_.showRef.connect(slot(this, &ControlRef::showInset));
34 d_.createRef.connect(slot(this, &ControlRef::createInset));
38 std::vector<string> const ControlRef::getLabelList() const
40 return lv_.buffer()->getLabelList();
44 void ControlRef::gotoRef(string const & ref) const
46 lv_.getLyXFunc()->Dispatch(LFUN_BOOKMARK_SAVE, "0");
47 lv_.getLyXFunc()->Dispatch(LFUN_REF_GOTO, ref);
51 void ControlRef::gotoBookmark() const
53 lv_.getLyXFunc()->Dispatch(LFUN_BOOKMARK_GOTO, "0");