4 * Copyright 2001 the LyX Team
5 * Read the file COPYING
7 * \author John Levon <moz@compsoc.man.ac.uk>
8 * \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
14 #include "DialogBase.h"
16 #include "boost/utility.hpp"
17 #include "insets/insetcommand.h"
23 class QRef : public DialogBase {
25 QRef(LyXView *, Dialogs *);
28 /// double-click a ref
29 void select(const char *);
31 void highlight(const char *);
34 /// goto a ref (or back)
38 /// update just the refs
42 /// close the connections
47 REF, PAGEREF, VREF, VPAGEREF, PRETTYREF
54 /// Create the dialog if necessary, update it and display it.
59 /// create a Reference inset
60 void createRef(string const &);
61 /// edit a Reference inset
62 void showRef(InsetCommand * const);
64 /// update the keys list
65 void updateRefs(void);
67 /// Real GUI implementation.
70 /// the LyXView we belong to
73 /** Which Dialogs do we belong to?
74 Used so we can get at the signals we have to connect to.
77 /// pointer to the inset if any
78 InsetCommand * inset_;
80 InsetCommandParams params;
81 /// is the inset we are reading from a readonly buffer ?
86 /// Update connection.
88 /// Inset hide connection.
91 /// to sort or not to sort
100 /// available references
101 std::vector< string > refs;