]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlInclude.h
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlInclude.h
index 137db0bb7a2dd0e1cae30b0eb8e200423bb6f3da..57a52a7d87c2313776afba4124540fd0147996b2 100644 (file)
@@ -1,3 +1,4 @@
+// -*- C++ -*-
 /**
  * \file ControlInclude.h
  * Copyright 2001 the LyX Team
@@ -24,11 +25,23 @@ 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.