mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-04 00:36:17 +00:00
83acbbd523
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2072 a592a061-630c-0410-9148-cb99ea01b6c8
44 lines
1.0 KiB
C++
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
|