You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tellico/src/translators/bibtexmlimporter.h

56 lines
1.5 KiB

/***************************************************************************
copyright : (C) 2003-2006 by Robby Stephenson
email : robby@periapsis.org
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of version 2 of the GNU General Public License as *
* published by the Free Software Foundation; *
* *
***************************************************************************/
#ifndef BIBTEXMLIMPORTER_H
#define BIBTEXMLIMPORTER_H
#include "xmlimporter.h"
#include "../datavectors.h"
class TQDomNode;
namespace Tellico {
namespace Import {
/**
*@author Robby Stephenson
*/
class BibtexmlImporter : public XMLImporter {
TQ_OBJECT
public:
/**
*/
BibtexmlImporter(const KURL& url) : Import::XMLImporter(url), m_coll(0), m_cancelled(false) {}
/**
*/
virtual Data::CollPtr collection();
virtual bool canImport(int type) const;
public slots:
void slotCancel();
private:
void loadDomDocument();
void readEntry(const TQDomNode& entryNode);
Data::CollPtr m_coll;
bool m_cancelled : 1;
};
} // end namespace
} // end namespace
#endif