// -*- C++ -*-
-/* This file is part of
- * ======================================================
- *
- * LyX, The Document Processor
- *
- * Copyright 2001 The LyX Team.
+/**
+ * \file ControlRef.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
*
- * ======================================================
+ * \author Angus Leeming
*
- * \file ControlRef.h
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * Full author contact details are available in file CREDITS
*/
#ifndef CONTROLREF_H
#define CONTROLREF_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include "ControlCommand.h"
+#include <vector>
+
/** A controller for the Ref Dialog.
*/
class ControlRef : public ControlCommand {
public:
///
- ControlRef(LyXView &, Dialogs &);
-
+ ControlRef(Dialog &);
///
std::vector<string> const getLabelList(string const &) const;
///
- void gotoRef(string const &) const;
+ void gotoRef(string const &);
///
- void gotoBookmark() const;
+ void gotoBookmark();
///
std::vector<string> const getBufferList() const;
///
private:
/** disconnect from the inset when the Apply button is pressed.
Allows easy insertion of multiple references. */
- virtual bool disconnectOnApply() { return true; }
+ virtual bool disconnectOnApply() const { return true; }
};
#endif // CONTROLREF_H