]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetparent.h
some reindentation, revert workarea xpos++, constify, remove all traces of LyXParagra...
[lyx.git] / src / insets / insetparent.h
index 48bccbd0f071faf01c8812c6f27e5def8f17195b..1d21a127457b0fed1f77f3787bd1d4f7c40fe322 100644 (file)
@@ -26,26 +26,24 @@ class Buffer;
  */
 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