]> git.lyx.org Git - lyx.git/blob - src/mathed/command_inset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / command_inset.h
1 // -*- C++ -*-
2
3 /**
4  *  \file command_inset.h
5  *
6  *  This file is part of LyX, the document processor.
7  *  Licence details can be found in the file COPYING.
8  *
9  *  \author André Pönitz
10  *
11  *  Full author contact details are available in file CREDITS.
12  */
13
14
15 #ifndef COMMAND_INSET_H
16 #define COMMAND_INSET_H
17
18 #include "button_inset.h"
19
20 /// Inset for things like \name[options]{contents}
21 class CommandInset : public ButtonInset {
22 public:
23         /// name, contents, options deliminited by '|++|'
24         explicit CommandInset(string const & data);
25         ///
26         MathInset * clone() const;
27         ///
28         void write(WriteStream & os) const;
29         ///
30         //void infoize(std::ostream & os) const;
31         ///
32         dispatch_result dispatch(FuncRequest const & cmd, idx_type & idx, pos_type & pos);
33         ///
34         string screenLabel() const;
35 public:
36         string name_;
37 };
38
39 #endif