namespace lyx {
namespace frontend {
-class GuiRef : public GuiDialog, public Ui::RefUi, public Controller
+class GuiRef : public GuiCommand, public Ui::RefUi
{
Q_OBJECT
public:
- GuiRef(LyXView & lv);
+ GuiRef(GuiView & lv);
private Q_SLOTS:
void changed_adaptor();
void reset_dialog();
private:
- ///
- bool initialiseParams(std::string const & data);
- /// clean-up on hide.
- void clearParams();
- /// clean-up on hide.
- void dispatchParams();
///
bool isBufferDependent() const { return true; }
-
/** disconnect from the inset when the Apply button is pressed.
Allows easy insertion of multiple references. */
bool disconnectOnApply() const { return true; }
void gotoRef(std::string const &);
///
void gotoBookmark();
- ///
- int bufferNum() const;
-
///
void closeEvent(QCloseEvent * e);
- /// parent controller
- Controller & controller() { return *static_cast<Controller*>(this); }
///
bool isValid();
/// apply changes
int restored_buffer_;
/// the references
std::vector<docstring> refs_;
-
- ///
- InsetCommandParams params_;
};
} // namespace frontend