]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/kde/FormRef.h
formskdepatchthingie
[lyx.git] / src / frontends / kde / FormRef.h
index e3049b27c80ebaf7b16cf18075042fa2164fe778..110a8d1ed35efcad093501aa0f68636a69fd3461 100644 (file)
@@ -1,49 +1,39 @@
-/* FormRef.h
- * (C) 2000 LyX Team
- * John Levon, moz@compsoc.man.ac.uk
+/**
+ * \file FormRef.h
+ * Copyright 2001 the LyX Team
+ * Read the file COPYING
+ *
+ * \author John Levon
  */
 
-/***************************************************************************
- *                                                                         *
- *   This program is free software; you can redistribute it and/or modify  *
- *   it under the terms of the GNU General Public License as published by  *
- *   the Free Software Foundation; either version 2 of the License, or     *
- *   (at your option) any later version.                                   *
- *                                                                         *
- ***************************************************************************/
-
 #ifndef FORMREF_H
 #define FORMREF_H
 
 #include "DialogBase.h"
 #include "LString.h"
-#include "support/utility.hpp"
+#include "boost/utility.hpp"
 #include "insets/insetcommand.h"
 
 class Dialogs;
 class LyXView;
-class FormRefDialog;
+class RefDialog;
 
 class FormRef : public DialogBase, public noncopyable {
 public: 
-       /**@name Constructors and Destructors */
-       //@{
-       ///
        FormRef(LyXView *, Dialogs *);
-       /// 
+
        ~FormRef();
-       //@}
 
        /// double-click a ref
-       void select(const char *);
+       void select(char const *);
        /// highlight a ref
-       void highlight(const char *);
+       void highlight(char const *);
        /// set sort
        void set_sort(bool);
        /// goto a ref (or back)
        void goto_ref(); 
        /// update dialog
-       void update(); 
+       void update(bool = false); 
        /// update just the refs
        void do_ref_update();
        /// Apply changes
@@ -52,12 +42,8 @@ public:
        void close();
  
 private: 
-       enum Type {
-               REF, PAGEREF, VREF, VPAGEREF, PRETTYREF,
-       }; 
-
        enum GotoType {
-               GOTOREF, GOTOBACK,
+               GOTOREF, GOTOBACK
        };
  
        /// Create the dialog if necessary, update it and display it.
@@ -74,15 +60,14 @@ private:
        void updateRefs(void);
  
        /// Real GUI implementation.
-       FormRefDialog * dialog_;
+       RefDialog * dialog_;
 
        /// the LyXView we belong to
        LyXView * lv_;
  
-       /** Which Dialogs do we belong to?
-           Used so we can get at the signals we have to connect to.
-       */
+       /// dialogs object
        Dialogs * d_;
        /// pointer to the inset if any
        InsetCommand * inset_;
        /// insets params
@@ -103,11 +88,8 @@ private:
        /// where to go
        GotoType gotowhere;
  
-       /// current type
-       Type type;
        /// available references
        std::vector< string > refs;
 };
 
-#endif
+#endif // FORMREF_H