4 * John Levon, moz@compsoc.man.ac.uk
5 * Adapted for Qt2 frontend by Kalle Dalheimer,
6 * kalle@klaralvdalens-datakonsult.se
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
21 #include "DialogBase.h"
23 #include "boost/utility.hpp"
24 #include "insets/insetcommand.h"
30 class FormRef : public DialogBase {
32 /**@name Constructors and Destructors */
35 FormRef(LyXView *, Dialogs *);
40 /// double-click a ref
41 void select(const char *);
43 void highlight(const char *);
46 /// goto a ref (or back)
50 /// update just the refs
54 /// close the connections
59 REF, PAGEREF, VREF, VPAGEREF, PRETTYREF
66 /// Create the dialog if necessary, update it and display it.
71 /// create a Reference inset
72 void createRef(string const &);
73 /// edit a Reference inset
74 void showRef(InsetCommand * const);
76 /// update the keys list
77 void updateRefs(void);
79 /// Real GUI implementation.
80 FormRefDialog * dialog_;
82 /// the LyXView we belong to
85 /** Which Dialogs do we belong to?
86 Used so we can get at the signals we have to connect to.
89 /// pointer to the inset if any
90 InsetCommand * inset_;
92 InsetCommandParams params;
93 /// is the inset we are reading from a readonly buffer ?
98 /// Update connection.
100 /// Inset hide connection.
103 /// to sort or not to sort
112 /// available references
113 std::vector< string > refs;