#ifndef GUIHYPERLINK_H
#define GUIHYPERLINK_H
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
#include "ui_HyperlinkUi.h"
-#include "insets/InsetCommandParams.h"
namespace lyx {
namespace frontend {
-class GuiHyperlink : public GuiCommand, public Ui::HyperlinkUi
+class GuiHyperlink : public InsetParamsWidget, public Ui::HyperlinkUi
{
Q_OBJECT
public:
- GuiHyperlink(LyXView & lv);
-
-public Q_SLOTS:
- void changed_adaptor();
+ ///
+ GuiHyperlink(QWidget * parent = 0);
private:
- void closeEvent(QCloseEvent *);
- ///
- 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(bool readonly) const;
+ bool initialiseParams(std::string const & data);
+ //@}
};
} // namespace frontend