]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiHyperlink.h
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiHyperlink.h
index ac018ae318558f7e4c68529804b2033c3d9537b3..6c02ad23c9b916a72154673352c3f81363567260 100644 (file)
 
 #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