]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlabel.h
My patch from yesterday
[lyx.git] / src / insets / insetlabel.h
index 92c8b43003ecebc9464693412edaa8beca5465b2..b4478c3d82c099206c864ddb4536d1a0fbb186f5 100644 (file)
@@ -1,54 +1,53 @@
 // -*- C++ -*-
-/* This file is part of*
- * ======================================================
+/**
+ * \file insetlabel.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
- *      
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team
+ * \author Lars Gullik Bjønnes
  *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef INSET_LABEL_H
 #define INSET_LABEL_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "insetcommand.h"
-#include "LString.h"
-
-using std::ostream;
 
-///
 class InsetLabel : public InsetCommand {
 public:
        ///
-       InsetLabel(string const & cmd);
+       InsetLabel(InsetCommandParams const &, bool same_id = false);
+       ///
+       ~InsetLabel();
+       ///
+       virtual Inset * clone(Buffer const &, bool same_id = false) const {
+               return new InsetLabel(params(), same_id);
+       }
+       ///
+       virtual dispatch_result localDispatch(FuncRequest const & cmd);
        ///
-       InsetLabel() : InsetCommand("label") {}
+       string const getScreenLabel(Buffer const *) const { return getContents(); }
        ///
-       Inset * Clone() const;
+       EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       Inset::Code LyxCode() const { return Inset::LABEL_CODE; }
+       Inset::Code lyxCode() const { return Inset::LABEL_CODE; }
        ///
-       int GetNumberOfLabels() const;
+       void edit(BufferView *, int, int, mouse_button::state);
        ///
-       string getLabel(int) const;
+       void edit(BufferView * bv, bool front = true);
        ///
-       string getScreenLabel() const { return getContents(); }
+       std::vector<string> const getLabelList() const;
        ///
-       EDITABLE Editable() const { return NOT_EDITABLE; }
+       int latex(Buffer const *, std::ostream &,
+                 bool fragile, bool free_spc) const;
        ///
-       int Latex(ostream &, signed char fragile, bool free_spc) const;
+       int ascii(Buffer const *, std::ostream &, int linelen) const;
        ///
-       int Linuxdoc(ostream &) const;
+       int linuxdoc(Buffer const *, std::ostream &) const;
        ///
-       int DocBook(ostream &) const;
-private:
-       /// This function escapes 8-bit characters
-       string escape(string const &) const;
+       int docbook(Buffer const *, std::ostream &, bool mixcont) const;
 };
 
 #endif