2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlRef.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-26 13:16:57 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author Angus Leeming
|
2001-03-26 13:16:57 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-26 13:16:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLREF_H
|
|
|
|
#define CONTROLREF_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "ControlCommand.h"
|
2003-02-25 14:51:38 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2001-03-26 13:16:57 +00:00
|
|
|
|
|
|
|
/** A controller for the Ref Dialog.
|
|
|
|
*/
|
|
|
|
class ControlRef : public ControlCommand {
|
|
|
|
public:
|
|
|
|
///
|
2003-02-25 14:51:38 +00:00
|
|
|
ControlRef(Dialog &);
|
2001-03-26 13:16:57 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> const getLabelList(std::string const &) const;
|
2001-03-26 13:16:57 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
void gotoRef(std::string const &);
|
2001-03-26 13:16:57 +00:00
|
|
|
///
|
2002-08-12 20:17:41 +00:00
|
|
|
void gotoBookmark();
|
2001-09-13 09:57:06 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::vector<std::string> const getBufferList() const;
|
2001-09-13 09:57:06 +00:00
|
|
|
///
|
|
|
|
int getBufferNum() const;
|
2002-02-06 15:12:40 +00:00
|
|
|
///
|
2003-10-06 15:43:21 +00:00
|
|
|
std::string const getBufferName(int num) const;
|
2001-09-21 16:23:31 +00:00
|
|
|
private:
|
|
|
|
/** disconnect from the inset when the Apply button is pressed.
|
|
|
|
Allows easy insertion of multiple references. */
|
2003-02-25 14:51:38 +00:00
|
|
|
virtual bool disconnectOnApply() const { return true; }
|
2001-03-26 13:16:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLREF_H
|