]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/FileDialog.h
include sys/time.h
[lyx.git] / src / frontends / FileDialog.h
index 0edb3687adb211ffcb6672aadef7b1833c33a038..06397a848e81246877aaa6be3c062824a3e5e757 100644 (file)
@@ -1,7 +1,8 @@
 // -*- C++ -*-
 /**
  * \file FileDialog.h
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author unknown
  * \author John Levon
@@ -12,9 +13,6 @@
 #ifndef FILEDIALOG_H
 #define FILEDIALOG_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
 
 #include <utility>
 
@@ -46,7 +44,7 @@ public:
        /**
         * Constructs a file dialog attached to LyXView \param lv, with
         * title \param title. If \param a is \const LFUN_SELECT_FILE_SYNC
-        * then a value will be returned immediately upon performing a Select(),
+        * then a value will be returned immediately upon performing a open(),
         * otherwise a callback Dispatch() will be invoked with the filename as
         * argument, of action \param a.
         *
@@ -63,7 +61,7 @@ public:
        ~FileDialog();
 
        /**
-        * Choose a file for selection, starting in directory \param
+        * Choose a file for opening, starting in directory \param
         * path, with the file selection \param mask. The \param mask
         * string is of the form :
         *
@@ -73,7 +71,27 @@ public:
         *
         * FIXME: should support multiple lines of these for different file types.
         */
-       Result const Select(string const & path = string(),
+       Result const open(string const & path = string(),
+               string const & mask = string(),
+               string const & suggested = string());
+               
+       /**
+        * Choose a directory, starting in directory \param
+        * path.
+        */
+       Result const opendir(string const & path = string(),
+               string const & suggested = string());
+
+       /**
+        * Choose a file for saving, starting in directory \param
+        * path, with the file selection \param mask. The \param mask
+        * string is of the form :
+        *
+        * <glob to match> | <description>
+        *
+        * for example, "*.ps | PostScript files (*.ps)".
+        */
+       Result const save(string const & path = string(),
                string const & mask = string(),
                string const & suggested = string());