lyx_mirror/src/frontends/qt2/QCitation.h
John Levon dd71c1d8f5 natbib support for citation dialog
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3425 a592a061-630c-0410-9148-cb99ea01b6c8
2002-01-20 17:02:09 +00:00

70 lines
1.2 KiB
C++

// -*- C++ -*-
/**
* \file QCitation.h
* Copyright 2001 the LyX Team
* Read the file COPYING
*
* \author Angus Leeming <a.leeming@ic.ac.uk>
* \author Kalle Dalheimer <kalle@klaralvdalens-datakonsult.se>
*/
#ifndef QCITATION_H
#define QCITATION_H
#ifdef __GNUG__
#pragma interface
#endif
class QListBox;
#include "Qt2Base.h"
class ControlCitation;
class QCitationDialog;
class QCitation : public Qt2CB<ControlCitation, Qt2DB<QCitationDialog> >
{
friend class QCitationDialog;
public:
///
QCitation(ControlCitation &);
private:
///
enum State {
///
ON,
///
OFF
};
/// Set the Params variable for the Controller.
virtual void apply();
/// Build the dialog.
virtual void build_dialog();
/// Hide the dialog.
virtual void hide();
/// Update dialog before/whilst showing it.
virtual void update_contents();
/// fill the styles combo
void fillStyles();
/// set the styles combo
void updateStyle();
void updateBrowser(QListBox *, std::vector<string> const &) const;
///
void setBibButtons(State) const;
///
void setCiteButtons(State) const;
///
std::vector<string> citekeys;
///
std::vector<string> bibkeys;
};
#endif // QCITATION_H