]> git.lyx.org Git - lyx.git/blob - src/mathed/ref_inset.h
split inset -> inset + updatableinset
[lyx.git] / src / mathed / ref_inset.h
1 #ifndef REF_INSET_H
2 #define REF_INSET_H
3
4
5 #include "command_inset.h"
6
7 // for \ref
8 class RefInset : public CommandInset {
9 public:
10         ///
11         RefInset();
12         ///
13         explicit RefInset(string const & data);
14         ///
15         MathInset * clone() const;
16         ///
17         //void write(WriteStream & os) const;
18         ///
19         void infoize(std::ostream & os) const;
20         ///
21         dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
22         ///
23         string screenLabel() const;
24         ///
25         void validate(LaTeXFeatures & features) const;
26
27         /// plain ascii output
28         int ascii(std::ostream & os, int) const;
29         /// linuxdoc output
30         int linuxdoc(std::ostream & os) const;
31         /// docbook output
32         int docbook(std::ostream & os, bool) const;
33
34
35         struct ref_type_info {
36                 ///
37                 string latex_name;
38                 ///
39                 string gui_name;
40                 ///
41                 string short_gui_name;
42         };
43         static ref_type_info types[];
44         ///
45         static int getType(string const & name);
46         ///
47         static string const & getName(int type);
48 };
49
50 #endif