lyx_mirror/src/graphics/ImageLoaderXPM.h
Lars Gullik Bjønnes 83acbbd523 update copyright year
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2072 a592a061-630c-0410-9148-cb99ea01b6c8
2001-05-30 13:53:44 +00:00

44 lines
1.0 KiB
C++

// -*- C++ -*-
/* This file is part of
* =================================================
*
* LyX, The Document Processor
* Copyright 1995 Matthias Ettrich.
* Copyright 1995-2001 The LyX Team.
*
* ================================================= */
#ifndef IMAGELOADER_XPM_H
#define IMAGELOADER_XPM_H
#ifdef __GNUG__
#pragma interface
#endif
#include "graphics/ImageLoader.h"
/** ImageLoaderXPM is an implementation of ImageLoader that can load XPM images by
* using libXPM.
*
* @Author Baruch Even, <baruch.even@writeme.com>
*/
class ImageLoaderXPM : public ImageLoader {
public:
/// c-tor.
ImageLoaderXPM() {};
/// d-tor.
virtual ~ImageLoaderXPM() {};
/// Return the list of loadable formats.
virtual FormatList const loadableFormats() const;
protected:
/// Verify that the file is one that we can handle.
virtual bool isImageFormatOK(string const & filename) const;
/// Do the actual image loading.
virtual ImageLoader::Result runImageLoader(string const & filename);
};
#endif