]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/controllers/ControlGraphics.C
John's character.C patch (bug fix).
[lyx.git] / src / frontends / controllers / ControlGraphics.C
index f5d3991142605696dce804cac1b06bca8719b17f..ba54e93ad96682b18575239d1b553a1d9b41200b 100644 (file)
@@ -17,6 +17,8 @@
 #pragma implementation
 #endif 
 
+#include "ViewBase.h"
+#include "ButtonControllerBase.h"
 #include "ControlGraphics.h"
 #include "buffer.h"
 #include "Dialogs.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;
@@ -75,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|gif)|";
 
        // Does user clipart directory exist?
        string clipdir = AddName (user_lyxdir, "clipart");