3 * John Levon, moz@compsoc.man.ac.uk
6 /***************************************************************************
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
13 ***************************************************************************/
18 #include "DialogBase.h"
20 #include "support/utility.hpp"
21 #include "insets/insetcommand.h"
27 class FormRef : public DialogBase, public noncopyable {
29 /**@name Constructors and Destructors */
32 FormRef(LyXView *, Dialogs *);
38 void select(const char *);
41 /// goto a ref (or back)
47 /// close the connections
52 REF, PAGEREF, VREF, VPAGEREF, PRETTYREF,
59 /// Create the dialog if necessary, update it and display it.
64 /// create a Reference inset
65 void createRef(string const &);
66 /// edit a Reference inset
67 void showRef(InsetCommand * const);
69 /// update the keys list
70 void updateRefs(void);
72 /// Real GUI implementation.
73 FormRefDialog * dialog_;
75 /// the LyXView we belong to
78 /** Which Dialogs do we belong to?
79 Used so we can get at the signals we have to connect to.
82 /// pointer to the inset if any
83 InsetCommand * inset_;
85 InsetCommandParams params;
86 /// is the inset we are reading from a readonly buffer ?
91 /// Update connection.
93 /// Inset hide connection.
96 /// to sort or not to sort
105 /// available references
106 std::vector< string > refs;