#include "GuiDialog.h"
#include "ui_HyperlinkUi.h"
+
#include "insets/InsetCommandParams.h"
namespace lyx {
namespace frontend {
-class GuiHyperlink : public GuiCommand, public Ui::HyperlinkUi
+class GuiHyperlink : public GuiDialog, public Ui::HyperlinkUi
{
Q_OBJECT
public:
- GuiHyperlink(LyXView & lv);
+ /// Constructor
+ GuiHyperlink(GuiView & lv);
public Q_SLOTS:
void changed_adaptor();
private:
- void closeEvent(QCloseEvent *);
///
bool isValid();
/// apply dialog
void applyView();
/// update dialog
- void updateContents();
+ void updateContents() {}
+ ///
+ bool initialiseParams(std::string const & data);
+ ///
+ void paramsToDialog(InsetCommandParams const & icp);
+ /// clean-up on hide.
+ void clearParams() { params_.clear(); }
+ /// clean-up on hide.
+ void dispatchParams();
+ ///
+ bool isBufferDependent() const { return true; }
+
+private:
+ ///
+ InsetCommandParams params_;
};
} // namespace frontend