*/
class InsetParent : public InsetCommand {
public:
- /// Non-standard LyX macro
- InsetParent() : InsetCommand("lyxparent") {}
///
- explicit
- InsetParent(string const & fn, Buffer * owner = 0);
- ///
- int Latex(Buffer const *, std::ostream &, bool fragile, bool free_spc) const;
- ///
- Inset * Clone() const { return new InsetParent(getContents()); }
+ InsetParent(InsetCommandParams const &, Buffer const &);
+ ///
+ Inset * Clone(Buffer const & buffer) const {
+ return new InsetParent(params(), buffer);
+ }
///
- string getScreenLabel() const;
- ///
- void Edit(BufferView *, int, int, unsigned int);
+ string const getScreenLabel() const;
///
- EDITABLE Editable() const {
- return IS_EDITABLE;
- }
+ EDITABLE Editable() const { return IS_EDITABLE; }
///
Inset::Code LyxCode() const { return Inset::PARENT_CODE; }
///
+ void Edit(BufferView *, int, int, unsigned int);
+ ///
+ int Latex(Buffer const *, std::ostream &,
+ bool fragile, bool free_spc) const;
+ ///
void setParent(string fn) { setContents(fn); }
};
#endif