]> git.lyx.org Git - lyx.git/blob - src/insets/InsetFlex.h
Get rid of "CharStyle:", "Custom:", and "Element:" prefixes, per a
[lyx.git] / src / insets / InsetFlex.h
1 // -*- C++ -*-
2 /**
3  * \file InsetFlex.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  * \author Martin Vermeer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef INSETFLEX_H
14 #define INSETFLEX_H
15
16 #include "InsetCollapsable.h"
17
18 namespace lyx {
19
20 /** The Flex inset, e.g., CharStyle, Custom inset or XML short element
21
22 */
23 class InsetFlex : public InsetCollapsable {
24 public:
25         ///
26         InsetFlex(Buffer *, std::string const & layoutName);
27         ///
28         docstring name() const;
29         ///
30         InsetCode lyxCode() const { return FLEX_CODE; }
31         /// Default looks
32         InsetLayout::InsetDecoration decoration() const;
33         ///
34         void write(std::ostream &) const;
35         /// should paragraph indendation be ommitted in any case?
36         bool neverIndent() const { return true; }       
37         ///
38         bool hasSettings() const { return false; }
39         ///
40         bool getStatus(Cursor & cur, FuncRequest const & cmd,
41                 FuncStatus &) const;
42         ///
43         void doDispatch(Cursor & cur, FuncRequest & cmd);
44
45 protected:
46         ///
47         InsetFlex(InsetFlex const &);
48
49 private:
50         ///
51         Inset * clone() const { return new InsetFlex(*this); }
52         ///
53         std::string name_;
54 };
55
56
57 } // namespace lyx
58
59 #endif