3 * Copyright 2001 the LyX Team
4 * Read the file COPYING
12 #include "DialogBase.h"
14 #include "boost/utility.hpp"
15 #include "insets/insetcommand.h"
21 class FormRef : public DialogBase {
23 FormRef(LyXView *, Dialogs *);
27 /// double-click a ref
28 void select(char const *);
30 void highlight(char const *);
33 /// goto a ref (or back)
36 void update(bool = false);
37 /// update just the refs
41 /// close the connections
49 /// Create the dialog if necessary, update it and display it.
54 /// create a Reference inset
55 void createRef(string const &);
56 /// edit a Reference inset
57 void showRef(InsetCommand * const);
59 /// update the keys list
60 void updateRefs(void);
62 /// Real GUI implementation.
65 /// the LyXView we belong to
71 /// pointer to the inset if any
72 InsetCommand * inset_;
74 InsetCommandParams params;
75 /// is the inset we are reading from a readonly buffer ?
80 /// Update connection.
82 /// Inset hide connection.
85 /// to sort or not to sort
91 /// available references
92 std::vector< string > refs;