]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBox.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiBox.h
index badaf7eb5dea5c133c6811ccc1f4e4ba78572b3f..9feb84bc357ee83d37ce07e34f122399682e639a 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author Jürgen Spitzmüller
- * \ author Martin Vermeer
+ * \author Martin Vermeer (with useful hints from Angus Leeming)
  *
  * Full author contact details are available in file CREDITS.
  */
 #define GUIBOX_H
 
 #include "GuiDialog.h"
-#include "ControlBox.h"
 #include "ui_BoxUi.h"
+#include "insets/InsetBox.h"
 
-#include <vector>
 
 namespace lyx {
 namespace frontend {
 
-class GuiBoxDialog : public GuiDialog, public Ui::BoxUi
+class GuiBox : public GuiDialog, public Ui::BoxUi
 {
        Q_OBJECT
 
 public:
-       GuiBoxDialog(LyXView & lv);
+       GuiBox(GuiView & lv);
 
 private Q_SLOTS:
        void change_adaptor();
-       void innerBoxChanged(const QString &);
+       void innerBoxChanged(QString const &);
        void typeChanged(int);
        void restoreClicked();
+       void pagebreakClicked();
 
 private:
-       void closeEvent(QCloseEvent * e);
-
-       /// parent controller
-       ControlBox & controller() const;
        /// add and remove special lengths
        void setSpecial(bool ibox);
        /// only show valid inner box items
@@ -48,16 +44,28 @@ private:
        /// Apply changes
        void applyView();
        /// update
-       void update_contents();
+       void updateContents();
+
+       ///
+       bool initialiseParams(std::string const & data);
+       ///
+       void clearParams();
+       ///
+       void dispatchParams();
+       ///
+       bool isBufferDependent() const { return true; }
 
        ///
-       std::vector<std::string> ids_;
+       QStringList ids_;
        ///
-       std::vector<docstring> gui_names_;
+       QStringList gui_names_;
        ///
-       std::vector<std::string> ids_spec_;
+       QStringList ids_spec_;
+       ///
+       QStringList gui_names_spec_;
+
        ///
-       std::vector<docstring> gui_names_spec_;
+       InsetBoxParams params_;
 };
 
 } // namespace frontend