]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCitation.h
merge booktabs branch
[lyx.git] / src / frontends / xforms / FormCitation.h
index 88676ed2d51549fea1e256cdac5fa8ca19f4b227..382c9fd58a2cda88d43c5ac75cc680f2b1836458 100644 (file)
@@ -1,31 +1,33 @@
 // -*- C++ -*-
 /**
- * \file xforms/FormCitation.h
- * Copyright 2000-2002 the LyX Team
- * Read the file COPYING
+ * \file FormCitation.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Angus Leeming <leeming@lyx.org>
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FORMCITATION_H
 #define FORMCITATION_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#include "FormBase.h"
+#include "FormDialogView.h"
 #include "biblio.h"
 
-/** This class provides an XForms implementation of the Citation Dialog.
- */
+namespace lyx {
+namespace frontend {
+
 class ControlCitation;
 struct FD_citation;
 
-class FormCitation : public FormCB<ControlCitation, FormDB<FD_citation> > {
+/** This class provides an XForms implementation of the Citation Dialog.
+ */
+class FormCitation
+       : public FormController<ControlCitation, FormView<FD_citation> > {
 public:
        ///
-       FormCitation();
+       FormCitation(Dialog &);
 private:
        ///
        enum State {
@@ -50,16 +52,19 @@ private:
        void findBiblio(biblio::Direction const dir);
 
        ///
-       void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
+       void updateBrowser(FL_OBJECT *, std::vector<std::string> const &) const;
        ///
        void setBibButtons(State) const;
        ///
        void setCiteButtons(State) const;
 
-       ///
-       std::vector<string> citekeys;
-       ///
-       std::vector<string> bibkeys;
+       /// used keys (left panel)
+       std::vector<std::string> citekeys;
+       /// available keys (right panel)
+       std::vector<std::string> bibkeys;
 };
 
+} // namespace frontend
+} // namespace lyx
+
 #endif // FORMCITATION_H