]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetparent.h
prepare for 1.1.6pre2
[lyx.git] / src / insets / insetparent.h
index 15e389e3e4ac9c3ecdd3708c5225f8c06fb96973..1d21a127457b0fed1f77f3787bd1d4f7c40fe322 100644 (file)
@@ -16,9 +16,6 @@
 #endif
 
 #include "insetcommand.h"
-#include "gettext.h"
-
-using std::ostream;
 
 class Buffer;
 
@@ -29,27 +26,24 @@ 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, bool free_spc) const;
-        ///
-        Inset * Clone() const { return new InsetParent(getContents()); }
-       ///
-       string getScreenLabel() const {
-               return string(_("Parent:")) + getContents();
+       InsetParent(InsetCommandParams const &, Buffer const &);
+       ///
+       Inset * Clone(Buffer const & buffer) const {
+               return new InsetParent(params(), buffer);
        }
+       ///
+       string const getScreenLabel() const;
         ///
-       void Edit(BufferView *, int, int, unsigned int);
-        ///
-       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