]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetparent.h
Rename LatexRunParams::fragile as moving_arg.
[lyx.git] / src / insets / insetparent.h
index 2e863c1deab46702289576f0dbc701b6a8378ba9..ec2be9c618b6854ef9d24b4c5463f55aca8b2959 100644 (file)
@@ -1,55 +1,47 @@
 // -*- C++ -*-
-/* This file is part of*
- * ====================================================== 
+/**
+ * \file insetparent.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
- *      
- *           Copyright 1997-1999 LyX Team
- * 
- * ====================================================== */
+ * \author Alejandro Aguilar Sierra
+ *
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef INSET_PARENT_H
 #define INSET_PARENT_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include "insetcommand.h"
-#include "gettext.h"
 
 class Buffer;
 
 /** Reference to the parent document.
 
   Useful to load a parent document from a child document and to
-  share parent's properties between preambleless children. 
+  share parent's properties between preambleless children.
  */
 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;
-       ///
-       int Latex(string & file, signed char fragile) const;
-        ///
-        Inset * Clone() const { return new InsetParent(getContents()); }
-       ///
-       string getScreenLabel() const {
-               return string(_("Parent:")) + getContents();
-       }
-        ///
-       void Edit(BufferView *, int, int, unsigned int);
-        ///
-       unsigned char Editable() const {
-               return 1;
+       ///
+       InsetParent(InsetCommandParams const &, Buffer const &, bool same_id = false);
+       ///
+       virtual Inset * clone(Buffer const & buffer, bool same_id = false) const {
+               return new InsetParent(params(), buffer, same_id);
        }
-        ///
-        Inset::Code LyxCode() const { return Inset::PARENT_CODE; }
-        ///
-        void setParent(string fn) { setContents(fn); }
+       ///
+       dispatch_result localDispatch(FuncRequest const & cmd);
+       ///
+       string const getScreenLabel(Buffer const *) const;
+       ///
+       EDITABLE editable() const { return IS_EDITABLE; }
+       ///
+       Inset::Code lyxCode() const { return Inset::PARENT_CODE; }
+       ///
+       int latex(Buffer const *, std::ostream &,
+                 LatexRunParams const &) const;
+       ///
+       void setParent(string const & fn) { setContents(fn); }
 };
 #endif