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
|
|
|
|
2004-01-08 10:59:51 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace support {
|
|
|
|
|
|
|
|
class FileFilterList;
|
|
|
|
|
|
|
|
} // namespace support
|
|
|
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
namespace frontend {
|
|
|
|
|
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
|
2004-01-08 10:59:51 +00:00
|
|
|
std::string const browse(std::string const & in_name,
|
|
|
|
std::string const & title,
|
2004-05-19 15:11:37 +00:00
|
|
|
support::FileFilterList const & filters) const;
|
2002-06-20 20:41:00 +00:00
|
|
|
/// get the list of bst files
|
2003-10-06 15:43:21 +00:00
|
|
|
void getBibStyles(std::vector<std::string> & data) const;
|
2003-02-14 17:23:50 +00:00
|
|
|
/// get the list of bib files
|
2003-10-06 15:43:21 +00:00
|
|
|
void getBibFiles(std::vector<std::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;
|
2004-03-29 13:17:25 +00:00
|
|
|
/// do we use bibtopic (for sectioned bibliography)?
|
|
|
|
bool usingBibtopic() const;
|
2001-03-19 16:37:01 +00:00
|
|
|
};
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
2003-02-25 14:51:38 +00:00
|
|
|
|
2001-03-19 16:37:01 +00:00
|
|
|
#endif // CONTROLBIBTEX_H
|