]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlGraphics.C
The reference dialog now disconnects from the inset on Apply. Its behaviour
[lyx.git] / src / frontends / controllers / ControlGraphics.C
index 8d7acb3ad86d61274435fbba160d0d3c83d50c50..9aa77fa2eacfbc9e8081ba832f25a94a8f6b8fd8 100644 (file)
 #pragma implementation
 #endif 
 
+#include "ViewBase.h"
+#include "ButtonControllerBase.h"
 #include "ControlGraphics.h"
 #include "buffer.h"
 #include "Dialogs.h"
-#include "lyxfunc.h"
 #include "LyXView.h"
 #include "gettext.h"
 
 #include "insets/insetgraphics.h"
+#include "insets/insetgraphicsParams.h" // need operator!=()
 
 #include "support/FileInfo.h"  // for FileInfo
 #include "helper_funcs.h"      // for browseFile
 #include "support/filetools.h" // for AddName
+#include "BufferView.h"
 
 using std::pair;
 using std::make_pair;
@@ -76,7 +79,7 @@ string const ControlGraphics::Browse(string const & in_name)
 {
        string const title = N_("Graphics");
        // FIXME: currently we need the second '|' to prevent mis-interpretation 
-       string const pattern = "*.(ps|png)|";
+       string const pattern = "*.(eps|png|jpeg|jpg|gif)|";
 
        // Does user clipart directory exist?
        string clipdir = AddName (user_lyxdir, "clipart");