2001-03-29 18:58:47 +00:00
|
|
|
// -*- C++ -*-
|
2001-08-19 13:25:15 +00:00
|
|
|
/**
|
|
|
|
* \file QCitation.h
|
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
2001-03-29 18:58:47 +00:00
|
|
|
*
|
|
|
|
* \author Angus Leeming <a.leeming@ic.ac.uk>
|
|
|
|
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
|
2001-08-19 13:25:15 +00:00
|
|
|
*/
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QCITATION_H
|
|
|
|
#define QCITATION_H
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
2001-03-16 17:20:06 +00:00
|
|
|
|
|
|
|
class QListBox;
|
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
#include "Qt2Base.h"
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
class ControlCitation;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QCitationDialog;
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
class QCitation : public Qt2CB<ControlCitation, Qt2DB<QCitationDialog> >
|
2001-08-25 03:00:19 +00:00
|
|
|
{
|
2001-08-19 13:25:15 +00:00
|
|
|
friend class QCitationDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
public:
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
2001-08-19 13:25:15 +00:00
|
|
|
QCitation(ControlCitation &);
|
2001-03-16 17:20:06 +00:00
|
|
|
|
2001-03-29 18:58:47 +00:00
|
|
|
private:
|
2001-03-16 17:20:06 +00:00
|
|
|
///
|
2001-06-05 17:05:51 +00:00
|
|
|
enum State {
|
|
|
|
///
|
|
|
|
ON,
|
|
|
|
///
|
|
|
|
OFF
|
|
|
|
};
|
2001-03-29 18:58:47 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Set the Params variable for the Controller.
|
|
|
|
virtual void apply();
|
|
|
|
/// Build the dialog.
|
2001-08-26 00:29:39 +00:00
|
|
|
virtual void build_dialog();
|
2001-06-05 17:05:51 +00:00
|
|
|
/// Hide the dialog.
|
|
|
|
virtual void hide();
|
|
|
|
/// Update dialog before/whilst showing it.
|
2001-08-25 20:04:15 +00:00
|
|
|
virtual void update_contents();
|
2001-03-29 18:58:47 +00:00
|
|
|
|
2002-01-20 17:02:09 +00:00
|
|
|
/// fill the styles combo
|
|
|
|
void fillStyles();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-01-20 17:02:09 +00:00
|
|
|
/// set the styles combo
|
|
|
|
void updateStyle();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-08-25 03:00:19 +00:00
|
|
|
void updateBrowser(QListBox *, std::vector<string> const &) const;
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
|
|
|
void setBibButtons(State) const;
|
|
|
|
///
|
|
|
|
void setCiteButtons(State) const;
|
2001-03-29 18:58:47 +00:00
|
|
|
|
2001-06-05 17:05:51 +00:00
|
|
|
///
|
|
|
|
std::vector<string> citekeys;
|
|
|
|
///
|
|
|
|
std::vector<string> bibkeys;
|
2001-03-16 17:20:06 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QCITATION_H
|