X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsTypes.h;h=90d390cae1c01192a3b32b41887eaeaacab6530f;hb=f9c60d477d18a73c85fd277d75aeafb8edc1fbec;hp=81c2503593e09cb3132c039498e53aa608e8eb5e;hpb=607ad8d3a778a23013f5c5a9382e9af3cb64350d;p=lyx.git diff --git a/src/graphics/GraphicsTypes.h b/src/graphics/GraphicsTypes.h index 81c2503593..90d390cae1 100644 --- a/src/graphics/GraphicsTypes.h +++ b/src/graphics/GraphicsTypes.h @@ -1,57 +1,55 @@ // -*- C++ -*- /** - * \file GraphicsTypes.h - * Copyright 2002 the LyX Team - * Read the file COPYING + * \file GraphicsTypes.h + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * \author Angus Leeming + * \author Angus Leeming * - * All that header files outside the graphics subdirectory should need to - * access. That just leaves insetgraphics.C to access GraphicsCache.h. - * It also makes life easier for files inside the graphics subdirectory! + * Full author contact details are available in file CREDITS. + * + * All that header files outside the graphics subdirectory should need to + * access. */ #ifndef GRAPHICSTYPES_H #define GRAPHICSTYPES_H -#include +#include "support/strfwd.h" -#ifdef __GNUG__ -#pragma interface -#endif -namespace grfx { +namespace lyx { +namespace graphics { +/// The status of the loading process +enum ImageStatus { + /** The data is in the cache, but no request to display it + * has been received. + */ + WaitingToLoad, + /// The image is in a loadable format and is being loaded. + Loading, + /// The image is being converted to a loadable format. + Converting, + /// The image has been loaded into memory. + Loaded, + /// The image is in memory and is being scaled, rotated, etc. + ScalingEtc, + /// All finished. Can display the image. + Ready, + /// + ErrorNoFile, + /// + ErrorConverting, /// - class GImage; + ErrorLoading, /// - typedef boost::shared_ptr ImagePtr; + ErrorGeneratingPixmap, + /// The data is not in the cache at all! + ErrorUnknown +}; - /// The status of the loading process - enum ImageStatus { - /** The data is in the cache, but no request to display it - * has been received. - */ - WaitingToLoad, - /// The image is in a loadable format and is being loaded. - Loading, - /// The image is being converted to a loadable format. - Converting, - /// The image is in memory and is being scaled, rotated, etc. - ScalingEtc, - /// All finished. Can display the image. - Loaded, - /// - ErrorNoFile, - /// - ErrorConverting, - /// - ErrorLoading, - /// Fall back on the unmodified image? - ErrorScalingEtc, - /// The data is not in the cache at all! - ErrorUnknown - }; -} +} // namespace graphics +} // namespace lyx #endif // GRAPHICSTYPES_H