]> git.lyx.org Git - lyx.git/blob - src/graphics/GraphicsTypes.h
dc6a05bfd611e8ae44c6b3c0c908a3f572014544
[lyx.git] / src / graphics / GraphicsTypes.h
1 // -*- C++ -*-
2 /**
3  * \file GraphicsTypes.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Angus Leeming
8  *
9  * Full author contact details are available in file CREDITS.
10  *
11  * All that header files outside the graphics subdirectory should need to
12  * access.
13  */
14
15 #ifndef GRAPHICSTYPES_H
16 #define GRAPHICSTYPES_H
17
18 #include "LString.h"
19
20 namespace lyx {
21 namespace graphics {
22
23 /// The status of the loading process
24 enum ImageStatus {
25         /** The data is in the cache, but no request to display it
26          *  has been received.
27          */
28         WaitingToLoad,
29         /// The image is in a loadable format and is being loaded.
30         Loading,
31         /// The image is being converted to a loadable format.
32         Converting,
33         /// The image has been loaded into memory.
34         Loaded,
35         /// The image is in memory and is being scaled, rotated, etc.
36         ScalingEtc,
37         /// All finished. Can display the image.
38         Ready,
39         ///
40         ErrorNoFile,
41         ///
42         ErrorConverting,
43         ///
44         ErrorLoading,
45         ///
46         ErrorGeneratingPixmap,
47         /// The data is not in the cache at all!
48         ErrorUnknown
49 };
50
51 /// How is the image to be displayed on the LyX screen?
52 enum DisplayType {
53         ///
54         DefaultDisplay,
55         ///
56         MonochromeDisplay,
57         ///
58         GrayscaleDisplay,
59         ///
60         ColorDisplay,
61         ///
62         NoDisplay
63 };
64
65
66 ///
67 void setDisplayTranslator();
68
69 } // namespace graphics
70 } // namespace lyx
71
72 #endif // GRAPHICSTYPES_H