mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
dd71c1d8f5
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3425 a592a061-630c-0410-9148-cb99ea01b6c8
70 lines
1.2 KiB
C++
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
|