lyx_mirror/src/frontends/controllers/ControlBibtex.h
Jürgen Spitzmüller 4c4b3e3cff frontends/controllers/ControlBibtex.[Ch]: new members bibtotoc(), getStylefile(),
which hold functionality that has been moved from the frontends
	and implement a method to use a default stylefile for new bibtex 
	insets (bug 2322).

frontends/gtk/GBibtex.C:
frontends/qt2/QBibtex.C:
frontends/qt4/QBibtex.C:
frontends/xforms/FormBibTex.C: Move parsing of Options (stylefile, bibtotoc) to the 
	controller (bug 2322).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13427 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-20 10:24:23 +00:00

61 lines
1.4 KiB
C++

// -*- C++ -*-
/**
* \file ControlBibtex.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author John Levon
* \author Angus Leeming
*
* Full author contact details are available in file CREDITS.
*/
#ifndef CONTROLBIBTEX_H
#define CONTROLBIBTEX_H
#include "ControlCommand.h"
#include <vector>
namespace lyx {
namespace support {
class FileFilterList;
} // namespace support
namespace frontend {
/** A controller for Bibtex dialogs.
*/
class ControlBibtex : public ControlCommand {
public:
///
ControlBibtex(Dialog &);
/// Browse for a .bib file
std::string const browseBib(std::string const & in_name) const;
/// Browse for a .bst file
std::string const browseBst(std::string const & in_name) const;
/// get the list of bst files
void getBibStyles(std::vector<std::string> & data) const;
/// get the list of bib files
void getBibFiles(std::vector<std::string> & data) const;
/// build filelists of all availabe bib/bst/cls/sty-files. done through
/// kpsewhich and an external script, saved in *Files.lst
void rescanBibStyles() const;
/// do we use bibtopic (for sectioned bibliography)?
bool usingBibtopic() const;
/// should we put the bibliography to the TOC?
bool bibtotoc() const;
/// which stylefile do we use?
std::string const getStylefile() const;
};
} // namespace frontend
} // namespace lyx
#endif // CONTROLBIBTEX_H