#include <fstream>
#include <cstdlib>
+using namespace lyx::support;
+
using std::ostream;
using std::ifstream;
using std::getline;
}
+std::auto_ptr<InsetBase> InsetBibtex::clone() const
+{
+ return std::auto_ptr<InsetBase>(new InsetBibtex(*this));
+}
+
+
dispatch_result InsetBibtex::localDispatch(FuncRequest const & cmd)
{
switch (cmd.action) {
InsetCommandMailer::string2params(cmd.argument, p);
if (p.getCmdName().empty())
return DISPATCHED;
-
- if (view() && p.getContents() != params().getContents()) {
- view()->ChangeCitationsIfUnique(params().getContents(),
- p.getContents());
- }
-
setParams(p);
- cmd.view()->updateInset(this);
return DISPATCHED;
}
vector<string> const InsetBibtex::getFiles(Buffer const & buffer) const
{
- // Doesn't appear to be used (Angus, 31 July 2001)
Path p(buffer.filePath());
vector<string> vec;
void InsetBibtex::fillWithBibKeys(Buffer const * buffer,
std::vector<std::pair<string, string> > & keys) const
{
- lyx::Assert(buffer);
+ Assert(buffer);
vector<string> const files = getFiles(*buffer);
for (vector<string>::const_iterator it = files.begin();
it != files.end(); ++ it) {