]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlConnections.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlConnections.h
index ff8a805a09c1ac560570e62749e112e85daf1c67..ca27eeed33dd9527889b412feaca86724c38cd4a 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /* This file is part of
  * ====================================================== 
  *
  * ControlConnectBase, ControlConnectBI and ControlConnectBD.
  *
  * Together they control the connection/disconnection of signals with the LyX
- * kernel. Controllers of individual popups interacting with the kernel through
+ * kernel. Controllers of individual dialogs interacting with the kernel through
  * signals/slots will all be derived from ControlConnectBI or ControlConnectBD.
  *
- * A popup is classed as "Buffer Dependent" if its contents change with the
- * buffer (document). An example would be the Citation popup. Such a popup
+ * A dialog is classed as "Buffer Dependent" if its contents change with the
+ * buffer (document). An example would be the Citation dialog. Such a dialog
  * would be derived, therefore, from ControlConnectBD.
  *
- * Conversely, a popup is "Buffer Independent" if its contents do not change
- * when the buffer changes. An example would be the Copyright popup. Such a
- * popup, is therefore derived from ControlConnectBI.
+ * Conversely, a dialog is "Buffer Independent" if its contents do not change
+ * when the buffer changes. An example would be the Copyright dialog. Such a
+ * dialog is therefore derived from ControlConnectBI.
  *
  */
 
@@ -34,7 +35,7 @@
 #pragma interface
 #endif
 
-#include "ControlBase.h"
+#include "ControlButtons.h"
 
 class Dialogs;
 class LyXView;
@@ -43,13 +44,26 @@ class LyXView;
     kernel. It is meant to be used solely as the parent class to
     ControlConnectBI and ControlConnectBD.
 */
-class ControlConnectBase : public ControlBase
+class ControlConnectBase : public ControlButtons
 {
 public:
+       ///
+       enum DocTypes {
+               ///
+               LATEX,
+               ///
+               LITERATE,
+               ///
+               LINUXDOC,
+               ///
+               DOCBOOK
+       };
        ///
        ControlConnectBase(LyXView &, Dialogs &);
        /// The View may need to know if the buffer is read-only.
        bool isReadonly() const;
+       /// 
+       DocTypes docType() const;
 
 protected:
        /// True if the dialog depends on the buffer, else false.