mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-24 00:50:29 +00:00
e4f6bf299b
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6299 a592a061-630c-0410-9148-cb99ea01b6c8
65 lines
1.3 KiB
C++
65 lines
1.3 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file FormCitation.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef FORMCITATION_H
|
|
#define FORMCITATION_H
|
|
|
|
|
|
#include "FormDialogView.h"
|
|
#include "biblio.h"
|
|
|
|
/** This class provides an XForms implementation of the Citation Dialog.
|
|
*/
|
|
class ControlCitation;
|
|
struct FD_citation;
|
|
|
|
class FormCitation : public FormController<ControlCitation, FormView<FD_citation> > {
|
|
public:
|
|
///
|
|
FormCitation(Dialog &);
|
|
private:
|
|
///
|
|
enum State {
|
|
///
|
|
ON,
|
|
///
|
|
OFF
|
|
};
|
|
|
|
/// Set the Params variable for the Controller.
|
|
virtual void apply();
|
|
/// Build the dialog.
|
|
virtual void build();
|
|
/// Hide the dialog.
|
|
virtual void hide();
|
|
/// Update dialog before/whilst showing it.
|
|
virtual void update();
|
|
/// Filter the inputs on callback from xforms
|
|
virtual ButtonPolicy::SMInput input(FL_OBJECT *, long);
|
|
|
|
/// search for a citation
|
|
void findBiblio(biblio::Direction const dir);
|
|
|
|
///
|
|
void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
|
|
///
|
|
void setBibButtons(State) const;
|
|
///
|
|
void setCiteButtons(State) const;
|
|
|
|
/// used keys (left panel)
|
|
std::vector<string> citekeys;
|
|
/// available keys (right panel)
|
|
std::vector<string> bibkeys;
|
|
};
|
|
|
|
#endif // FORMCITATION_H
|