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 "ControlRef.h"
29 ControlRef::ControlRef(LyXView & lv, Dialogs & d)
30 : ControlCommand(lv, d, LFUN_REF_INSERT)
32 d_.showRef.connect(slot(this, &ControlRef::showInset));
33 d_.createRef.connect(slot(this, &ControlRef::createInset));
37 std::vector<string> const ControlRef::getLabelList() const
39 return lv_.buffer()->getLabelList();
43 void ControlRef::gotoRef(string const & ref) const
45 lv_.getLyXFunc()->Dispatch(LFUN_BOOKMARK_SAVE, "0");
46 lv_.getLyXFunc()->Dispatch(LFUN_REF_GOTO, ref);
50 void ControlRef::gotoBookmark() const
52 lv_.getLyXFunc()->Dispatch(LFUN_BOOKMARK_GOTO, "0");