mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-22 07:57:22 +00:00
e4c3ce4627
Don't limit citation keys to ASCII anymore, since InsetBibitem can generate non-ASCII keys. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16310 a592a061-630c-0410-9148-cb99ea01b6c8
64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file ControlCitation.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 CONTROLCITATION_H
|
|
#define CONTROLCITATION_H
|
|
|
|
|
|
#include "ControlCommand.h"
|
|
#include "biblio.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
/** A controller for Citation dialogs.
|
|
*/
|
|
class ControlCitation : public ControlCommand {
|
|
public:
|
|
///
|
|
ControlCitation(Dialog &);
|
|
|
|
///
|
|
virtual bool initialiseParams(std::string const & data);
|
|
/// clean-up on hide.
|
|
virtual void clearParams();
|
|
|
|
/** Disconnect from the inset when the Apply button is pressed.
|
|
* Allows easy insertion of multiple citations.
|
|
*/
|
|
virtual bool disconnectOnApply() const { return true; }
|
|
|
|
/// Returns a reference to the map of stored keys
|
|
biblio::InfoMap const & bibkeysInfo() const;
|
|
|
|
///
|
|
biblio::CiteEngine_enum getEngine() const;
|
|
|
|
/// Possible citations based on this key
|
|
std::vector<docstring> const getCiteStrings(std::string const & key) const;
|
|
|
|
/// available CiteStyle-s (depends on availability of Natbib/Jurabib)
|
|
static std::vector<biblio::CiteStyle> const & getCiteStyles() {
|
|
return citeStyles_;
|
|
}
|
|
private:
|
|
/// The info associated with each key
|
|
biblio::InfoMap bibkeysInfo_;
|
|
|
|
///
|
|
static std::vector<biblio::CiteStyle> citeStyles_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // CONTROLCITATION_H
|