*
* LyX, The Document Processor
*
- * Copyright 1997-1999 LyX Team
+ * Copyright 1997-2000 LyX Team
*
* ====================================================== */
#endif
#include "insetcommand.h"
-#include "gettext.h"
class Buffer;
*/
class InsetParent : public InsetCommand {
public:
- /// Non-standard LyX macro
- InsetParent() : InsetCommand("lyxparent") {}
///
- InsetParent(string const & fn, Buffer * owner = 0);
- ///
- int Latex(ostream &, signed char fragile) const;
+ InsetParent(InsetCommandParams const &, Buffer const &);
///
- int Latex(string & file, signed char fragile) const;
- ///
- Inset * Clone() const { return new InsetParent(getContents()); }
- ///
- string getScreenLabel() const {
- return string(_("Parent:")) + getContents();
+ Inset * Clone(Buffer const & buffer) const {
+ return new InsetParent(params(), buffer);
}
+ ///
+ string const getScreenLabel() const;
///
- void Edit(BufferView *, int, int, unsigned int);
- ///
- unsigned char Editable() const {
- return 1;
- }
+ 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