]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathRef.h
Rename files in src/mathed and src/graphics from .C to .cpp, step 2
[lyx.git] / src / mathed / InsetMathRef.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathRef.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef REF_INSET_H
13 #define REF_INSET_H
14
15
16 #include "InsetMathCommand.h"
17
18
19 namespace lyx {
20 class Buffer;
21
22 // for \ref
23 class RefInset : public CommandInset {
24 public:
25         ///
26         RefInset();
27         ///
28         explicit RefInset(docstring const & data);
29         ///
30         //void write(WriteStream & os) const;
31         ///
32         void infoize(odocstream & os) const;
33         ///
34         docstring const screenLabel() const;
35         ///
36         void validate(LaTeXFeatures & features) const;
37         ///
38         virtual RefInset * asRefInset() { return this; }
39
40         /// docbook output
41         int docbook(Buffer const & buf, odocstream & os, OutputParams const &) const;
42         /// generate something that will be understood by the Dialogs.
43         std::string const createDialogStr(std::string const & name) const;
44
45         struct ref_type_info {
46                 ///
47                 docstring latex_name;
48                 ///
49                 docstring gui_name;
50                 ///
51                 docstring short_gui_name;
52         };
53         static ref_type_info types[];
54         ///
55         static int getType(docstring const & name);
56         ///
57         static docstring const & getName(int type);
58 protected:
59         ///
60         virtual void doDispatch(LCursor & cur, FuncRequest & cmd);
61         ///
62         bool getStatus(LCursor &, FuncRequest const &, FuncStatus &) const;
63 private:
64         ///
65         virtual std::auto_ptr<InsetBase> doClone() const;
66 };
67
68
69
70 } // namespace lyx
71 #endif