-// -*- C++ -*-
/* This file is part of
* ======================================================
*
#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;
string const ControlGraphics::Browse(string const & in_name)
{
- string const title = N_("Graphics");
+ string const title = N_("Graphics|#G#g");
// 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");
if (!(fileInfo.isOK() && fileInfo.isDir()))
// No - bail out to system clipart directory
clipdir = AddName (system_lyxdir, "clipart");
- pair<string, string> dir1(N_("Clipart"), clipdir);
+ pair<string, string> dir1(N_("Clipart|#C#c"), clipdir);
// Show the file browser dialog
- return browseFile(&lv_, in_name, title, pattern, dir1,
- make_pair(string(), string()));
+ return browseFile(&lv_, in_name, title, pattern, dir1);
}