2001-03-19 16:37:01 +00:00
|
|
|
// -*- C++ -*-
|
2002-09-05 14:10:50 +00:00
|
|
|
/**
|
|
|
|
* \file ControlBibtex.h
|
2002-09-05 15:14:23 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-19 16:37:01 +00:00
|
|
|
*
|
2002-09-05 14:10:50 +00:00
|
|
|
* \author John Levon
|
|
|
|
* \author Angus Leeming
|
2001-03-19 16:37:01 +00:00
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
* Full author contact details are available in file CREDITS.
|
2001-03-19 16:37:01 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONTROLBIBTEX_H
|
|
|
|
#define CONTROLBIBTEX_H
|
|
|
|
|
|
|
|
|
2003-09-03 17:40:58 +00:00
|
|
|
#include "ControlCommand.h"
|
2003-06-20 14:03:49 +00:00
|
|
|
#include <vector>
|
2001-03-19 16:37:01 +00:00
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
|
2001-03-19 16:37:01 +00:00
|
|
|
/** A controller for Bibtex dialogs.
|
|
|
|
*/
|
2003-09-03 17:40:58 +00:00
|
|
|
class ControlBibtex : public ControlCommand {
|
2001-03-19 16:37:01 +00:00
|
|
|
public:
|
|
|
|
///
|
2003-02-25 14:51:38 +00:00
|
|
|
ControlBibtex(Dialog &);
|
|
|
|
|
2001-08-20 13:39:29 +00:00
|
|
|
/// Browse for a file
|
|
|
|
string const Browse(string const &, string const &, string const &);
|
2002-06-20 20:41:00 +00:00
|
|
|
/// get the list of bst files
|
2003-06-20 14:03:49 +00:00
|
|
|
void getBibStyles(std::vector<string> & data) const;
|
2003-02-14 17:23:50 +00:00
|
|
|
/// get the list of bib files
|
2003-06-20 14:03:49 +00:00
|
|
|
void getBibFiles(std::vector<string> & data) const;
|
2003-02-14 17:23:50 +00:00
|
|
|
/// build filelists of all availabe bib/bst/cls/sty-files. done through
|
2002-06-20 20:41:00 +00:00
|
|
|
/// kpsewhich and an external script, saved in *Files.lst
|
|
|
|
void rescanBibStyles() const;
|
2001-03-19 16:37:01 +00:00
|
|
|
};
|
|
|
|
|
2003-02-25 14:51:38 +00:00
|
|
|
|
2001-03-19 16:37:01 +00:00
|
|
|
#endif // CONTROLBIBTEX_H
|