#ifndef GUIHYPERLINK_H
#define GUIHYPERLINK_H
-#include "GuiCommand.h"
+#include "InsetParamsWidget.h"
#include "ui_HyperlinkUi.h"
namespace lyx {
namespace frontend {
-class GuiHyperlink : public GuiCommand, public Ui::HyperlinkUi
+class GuiHyperlink : public InsetParamsWidget, public Ui::HyperlinkUi
{
Q_OBJECT
public:
- /// Constructor
- GuiHyperlink(GuiView & lv);
-
-public Q_SLOTS:
- void changed_adaptor();
+ ///
+ GuiHyperlink(QWidget * parent = 0);
private:
- ///
- bool isValid();
- /// apply dialog
- void applyView();
- /// update dialog
- void updateContents();
+ /// \name InsetParamsWidget inherited methods
+ //@{
+ InsetCode insetCode() const { return HYPERLINK_CODE; }
+ FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+ void paramsToDialog(Inset const *);
+ docstring dialogToParams() const;
+ bool checkWidgets() const;
+ //@}
};
} // namespace frontend