// -*- C++ -*-
/**
* \file ControlConnections.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
* \author Angus Leeming
*
#ifndef CONTROLCONNECTIONS_H
#define CONTROLCONNECTIONS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include "ControlButtons.h"
kernel. It is meant to be used solely as the parent class to
ControlConnectBI and ControlConnectBD.
*/
-class ControlConnectBase : public ControlButtons
-{
+class ControlConnectBase : public ControlButtons {
public:
///
enum DocTypes {
bool bufferIsReadonly() const;
///
DocTypes docType() const;
-
protected:
/// True if the dialog depends on the buffer, else false.
virtual bool isBufferDependent() const = 0;
LyXFunc & lyxfunc();
///
LyXFunc const & lyxfunc() const;
-
///
LyXView & lv_;
an update() function which is also supported by the Restore button.
*/
-class ControlConnectBI : public ControlConnectBase
-{
+class ControlConnectBI : public ControlConnectBase {
public:
///
ControlConnectBI(LyXView &, Dialogs &);
-
protected:
///
virtual bool isBufferDependent() const { return false; }
/** Base class to control connection/disconnection of signals with the LyX
kernel for Buffer Dependent dialogs.
*/
-class ControlConnectBD : public ControlConnectBase
-{
+class ControlConnectBD : public ControlConnectBase {
public:
///
ControlConnectBD(LyXView &, Dialogs &);
-
protected:
///
virtual bool isBufferDependent() const { return true; }
virtual void connect();
/// Disconnect signals
virtual void disconnect();
-
private:
/** Slot connected to update signal.
Bool indicates if a buffer switch took place.