00001 /*************************************************************************** 00002 * * 00003 * bibliography.h * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * Read the file COPYING for details. * 00011 * * 00012 * copyright: (C) 2003 by Jan Mueller * 00013 * email: janmueller7@hotmail.com * 00014 * * 00015 ***************************************************************************/ 00016 00017 #include "bibliographyform.h" 00018 #include "readwriteformbase.h" 00019 00020 class QToolBar; 00021 class MainWindow; 00022 class QCloseEvent; 00023 class Bibliography: public ReadWriteFormBase { 00024 Q_OBJECT 00025 00026 private: 00027 Bibliography(const Bibliography&); 00028 Bibliography& operator=(const Bibliography&); 00029 00030 protected: 00031 BibliographyForm *biblioform; 00032 QToolBar *toolbar; 00033 QAction *showPublAction; 00034 bool setData(); 00035 00036 void initToolBar(); 00037 void insertBibtexField(QString label, QString field, QFrame *frame, QSqlForm *form); 00038 00039 public: 00040 Bibliography(LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name); 00041 ~Bibliography(); 00042 00043 protected slots: 00044 virtual void setWorkingGui(bool work); 00045 virtual void setReadonlyGui(bool ro); 00046 virtual void setInvalidGui(bool inv); 00047 virtual void showPubl(); 00048 virtual void chooseOrgPublisher(); 00049 virtual void generateBibTex(); 00050 };