3 * John Levon, moz@compsoc.man.ac.uk
4 * Adapted for Qt2 frontend by Kalle Dalheimer,
5 * kalle@klaralvdalens-datakonsult.se
8 /***************************************************************************
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
15 ***************************************************************************/
20 #include "DialogBase.h"
22 #include "boost/utility.hpp"
23 #include "insets/insetcommand.h"
29 class FormRef : public DialogBase {
31 /**@name Constructors and Destructors */
34 FormRef(LyXView *, Dialogs *);
39 /// double-click a ref
40 void select(const char *);
42 void highlight(const char *);
45 /// goto a ref (or back)
49 /// update just the refs
53 /// close the connections
58 REF, PAGEREF, VREF, VPAGEREF, PRETTYREF
65 /// Create the dialog if necessary, update it and display it.
70 /// create a Reference inset
71 void createRef(string const &);
72 /// edit a Reference inset
73 void showRef(InsetCommand * const);
75 /// update the keys list
76 void updateRefs(void);
78 /// Real GUI implementation.
79 FormRefDialog * dialog_;
81 /// the LyXView we belong to
84 /** Which Dialogs do we belong to?
85 Used so we can get at the signals we have to connect to.
88 /// pointer to the inset if any
89 InsetCommand * inset_;
91 InsetCommandParams params;
92 /// is the inset we are reading from a readonly buffer ?
97 /// Update connection.
99 /// Inset hide connection.
102 /// to sort or not to sort
111 /// available references
112 std::vector< string > refs;