2 /* This file is part of
3 * =================================================
5 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich.
7 * Copyright 1995-2000 The LyX Team.
9 * This file Copyright 2000 Baruch Even
10 * ================================================= */
13 #pragma implementation
17 #include "EPS_Renderer.h"
19 #include FORMS_H_LOCATION
23 #include "support/LAssert.h"
30 EPS_Renderer::EPS_Renderer()
35 bool EPS_Renderer::renderImage()
41 bool EPS_Renderer::isImageFormatOK(string const & filename) const
43 std::ifstream is(filename.c_str());
45 // The signature of the file without the spaces.
46 static const char str[] = "%!PS";
47 const char * ptr = str;
57 } while (*ptr != '\0');