]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlInclude.h
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlInclude.h
index 06bb86eb4282a1960ba756e66289a84c3f5368b5..57a52a7d87c2313776afba4124540fd0147996b2 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file ControlInclude.h
  * Copyright 2001 the LyX Team
@@ -24,19 +25,29 @@ class ControlInclude
        : public ControlInset<InsetInclude, InsetInclude::Params>
 {
 public:
+       ///
+       enum Type {
+               ///
+               INPUT,
+               ///
+               VERBATIM,
+               ///
+               INCLUDE
+       };
        ///
        ControlInclude(LyXView &, Dialogs &);
 
-       /// The file dialog popup requires a LyXView * ???
-       LyXView * lv() const;
+       /// Browse for a file
+       string const Browse(string const &, Type);
+
+       /// load a file
+       void load(string const & file); 
 
 private:
        /// Dispatch the changed parameters to the kernel.
        virtual void applyParamsToInset();
        /// Should be used but currently isn't
        virtual void applyParamsNoInset() {}
-       /// not needed.
-       virtual void clearDaughterParams() {}
        /// get the parameters from the string passed to createInset.
        virtual InsetInclude::Params const getParams(string const &)
                { return InsetInclude::Params(); }