]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/FormCitation.h
try this for distinguishing inner and outer tabs
[lyx.git] / src / frontends / xforms / FormCitation.h
index 76781bac88592fafa53430a3145f3df9d897ac8f..5319520f0997260ddcd3b263da09c1b3e892a476 100644 (file)
 #pragma interface
 #endif
 
-#include "FormCommand.h"
+#include "FormInset.h"
 struct FD_form_citation;
 
 /** This class provides an XForms implementation of the FormCitation Dialog.
  */
 class FormCitation : public FormCommand {
 public:
+       ///
+       FormCitation(LyXView *, Dialogs *);
+       ///
+       ~FormCitation();
+private:
        ///
        enum State {
-               DOWN,
-               UP,
-               DELETE,
-               ADD,
-               BIBBRSR,
-               CITEBRSR,
                ON,
+               ///
                OFF
        };
-       /**@name Constructors and Destructors */
-       //@{
-       /// #FormCitation x(LyXFunc ..., Dialogs ...);#
-       FormCitation(LyXView *, Dialogs *);
-       ///
-       ~FormCitation();
-       //@}
+       /// Connect signals etc. Set form's max size.
+       virtual void connect();
+       /// Disconnect signals. Also perform any necessary housekeeping.
+       virtual void disconnect();
 
-private:
-       /**@name Slot Methods */
-       //@{
-       virtual void update();
-       /// Apply from dialog
-       virtual void apply();
-       /// Filter the inputs
-       virtual void input( long );
        /// Build the dialog
        virtual void build();
+       /// Filter the inputs
+       virtual bool input(FL_OBJECT *, long);
+       /// Update dialog before showing it
+       virtual void update();
+       /// Apply from dialog (modify or create inset)
+       virtual void apply();
+       /// Pointer to the actual instantiation of the xform's form
+       virtual FL_FORM * form() const;
+
        ///
-       virtual FL_FORM * const form() const;
-       ///
-       void updateBrowser( FL_OBJECT *, std::vector<string> const & ) const;
-       ///
-       void setBibButtons( State ) const;
+       void updateBrowser(FL_OBJECT *, std::vector<string> const &) const;
        ///
-       void setCiteButtons( State ) const;
+       void setBibButtons(State) const;
        ///
-       void setSize( int, bool ) const;
+       void setCiteButtons(State) const;
        ///
+       void setSize(int, bool) const;
+       /// Type definition from the fdesign produced header file.
        FD_form_citation * build_citation();
-       //@}
 
        /// Real GUI implementation.
        FD_form_citation * dialog_;
+       ///
+       std::vector<string> citekeys;
+       ///
+       std::vector<string> bibkeys;
+       ///
+       std::vector<string> bibkeysInfo;
 };
 
 #endif