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