]> git.lyx.org Git - lyx.git/blob - src/graphics/ImageLoaderXPM.h
small fix with footnote, use stringstream some more
[lyx.git] / src / graphics / ImageLoaderXPM.h
1 // -*- C++ -*-
2 /* This file is part of
3  * =================================================
4  * 
5  *          LyX, The Document Processor
6  *          Copyright 1995 Matthias Ettrich.
7  *          Copyright 1995-2000 The LyX Team.
8  *
9  * ================================================= */
10
11 #ifndef IMAGELOADER_XPM_H
12 #define IMAGELOADER_XPM_H
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "graphics/ImageLoader.h"
19
20 /** ImageLoaderXPM is an implementation of ImageLoader that can load XPM images by
21  * using libXPM.
22  *  
23  *  @Author Baruch Even, <baruch.even@writeme.com>
24  */
25 class ImageLoaderXPM : public ImageLoader {
26 public:
27         /// c-tor.
28         ImageLoaderXPM() {};
29         /// d-tor.
30         virtual ~ImageLoaderXPM() {};
31
32         /// Return the list of loadable formats.
33         virtual FormatList const loadableFormats() const;
34         
35 protected:
36         /// Verify that the file is one that we can handle.
37         virtual bool isImageFormatOK(string const & filename) const;
38
39         /// Do the actual image loading.
40         virtual ImageLoader::Result runImageLoader(string const & filename);
41 };
42
43 #endif