2001-06-13 14:33:31 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-26 13:16:57 +00:00
|
|
|
/* This file is part of
|
2002-03-21 21:21:28 +00:00
|
|
|
* ======================================================
|
2001-03-26 13:16:57 +00:00
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* \file ControlRef.h
|
2002-08-15 16:02:22 +00:00
|
|
|
* \author Angus Leeming <leeming@lyx.org>
|
2001-03-26 13:16:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLREF_H
|
|
|
|
#define CONTROLREF_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ControlCommand.h"
|
|
|
|
|
|
|
|
/** A controller for the Ref Dialog.
|
|
|
|
*/
|
|
|
|
class ControlRef : public ControlCommand {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
ControlRef(LyXView &, Dialogs &);
|
|
|
|
|
|
|
|
///
|
2001-09-13 09:57:06 +00:00
|
|
|
std::vector<string> const getLabelList(string const &) const;
|
2001-03-26 13:16:57 +00:00
|
|
|
///
|
2002-08-12 20:17:41 +00:00
|
|
|
void gotoRef(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
|
|
|
///
|
|
|
|
std::vector<string> const getBufferList() const;
|
|
|
|
///
|
|
|
|
int getBufferNum() const;
|
2002-02-06 15:12:40 +00:00
|
|
|
///
|
|
|
|
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. */
|
|
|
|
virtual bool disconnectOnApply() { return true; }
|
2001-03-26 13:16:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONTROLREF_H
|