]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.h
major GUII cleanup + Baruchs patch + Angus's patch + removed a couple of generated...
[lyx.git] / src / frontends / Dialogs.h
index 07bd1b480ca78acc8c4629991694898ef4693d39..a01394b0be5c0c4c75913b1d1f6c61e3c636a8d6 100644 (file)
 #include <vector>
 #include <sigc++/signal_system.h>
 
-using std::vector;
-
-#ifdef SIGC_CXX_NAMESPACES
-using SigC::Signal0;
-using SigC::Signal1;
-#endif
-
 #include "LString.h"
+#include "support/utility.hpp"
 
 class DialogBase;
 
 // Maybe this should be a UIFunc modelled on LyXFunc
 class LyXView;
 
-class InsetInclude;
-class InsetIndex;
+class InsetGraphics;
 class InsetBibKey;
-class InsetCitation;
 class InsetBibtex;
+class InsetInclude;
 class InsetInfo;
 class InsetTabular;
+class InsetCommand;
+
+using std::vector;
+
+#ifdef SIGC_CXX_NAMESPACES
+using SigC::Signal0;
+using SigC::Signal1;
+#endif
 
 /** Container of all dialogs and signals a LyXView needs or uses to access them
     The list of dialog signals isn't comprehensive but should be a good guide
     for any future additions.  Remember don't go overboard -- think minimal.
  */
-class Dialogs
+class Dialogs : public noncopyable
 {
 public:
        /**@name Constructors and Deconstructors */
@@ -90,8 +91,6 @@ public:
        Signal0<void> updateCharacter;  // allow update as cursor moves
        ///
        Signal0<void> showParagraph;
-       ///
-       Signal0<void> showDocument;
        /// Do we really have to push this?
        Signal1<void, vector<string> const &> SetDocumentClassChoice;
        ///
@@ -103,25 +102,39 @@ public:
        ///
        Signal0<void> showPreferences;
        ///
+       Signal0<void> showLayoutDocument;
+       ///
+       Signal1<void, InsetGraphics *> showGraphics;
+       ///
        Signal1<void, InsetInclude *> showInclude;
        ///
-       Signal1<void, InsetIndex *> showIndex;
+       Signal1<void, InsetCommand *> showIndex;
+       ///
+       Signal1<void, string const &> createIndex;
        ///
        Signal1<void, InsetBibKey *> showBibkey;
        ///
-       Signal1<void, InsetCitation *> showCitation;
+       Signal1<void, InsetCommand *> showCitation;
        ///
        Signal1<void, string const &> createCitation;
        ///
+       Signal1<void, InsetCommand *> showRef;
+       ///
+       Signal1<void, string const &> createRef;
+       ///
+       Signal1<void, InsetCommand *> showTOC;
+       ///
+       Signal1<void, string const &> createTOC;
+       ///
+       Signal1<void, InsetCommand *> showUrl;
+       ///
+       Signal1<void, string const &> createUrl;
+       ///
        Signal1<void, InsetBibtex *> showBibtex;
        ///
        Signal1<void, InsetInfo *> showInfo;
        //@}
 private:
-       /// Disallow default constructor
-       Dialogs() {}
-       /// Disallow copy constructor
-       Dialogs(Dialogs &) {}
        ///
        vector<DialogBase *> dialogs_;
 };