define mime strings at one place only

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24928 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2008-05-24 22:04:58 +00:00
parent 6abce3ec85
commit 3ddfbb8cc0
2 changed files with 12 additions and 9 deletions

View File

@ -102,14 +102,15 @@
using namespace std; using namespace std;
using namespace lyx::support; using namespace lyx::support;
// FIXME: These strings are also used in GuiClipboard.cpp.
static char const * const lyx_mime_type = "application/x-lyx";
static char const * const pdf_mime_type = "application/pdf";
static char const * const emf_mime_type = "image/x-emf";
static char const * const wmf_mime_type = "image/x-wmf";
namespace lyx { namespace lyx {
// defined in GuiClipboard.cpp.
extern char const * const lyx_mime_type;
extern char const * const pdf_mime_type;
extern char const * const emf_mime_type;
extern char const * const wmf_mime_type;
frontend::Application * createApplication(int & argc, char * argv[]) frontend::Application * createApplication(int & argc, char * argv[])
{ {
return new frontend::GuiApplication(argc, argv); return new frontend::GuiApplication(argc, argv);

View File

@ -50,13 +50,15 @@
using namespace std; using namespace std;
using namespace lyx::support; using namespace lyx::support;
static char const * const lyx_mime_type = "application/x-lyx";
static char const * const pdf_mime_type = "application/pdf";
static char const * const emf_mime_type = "image/x-emf";
static char const * const wmf_mime_type = "image/x-wmf";
namespace lyx { namespace lyx {
char const * const lyx_mime_type = "application/x-lyx";
char const * const pdf_mime_type = "application/pdf";
char const * const emf_mime_type = "image/x-emf";
char const * const wmf_mime_type = "image/x-wmf";
namespace frontend { namespace frontend {