]> www.fi.muni.cz Git - evince.git/blob - pdf/Thumb.h
Hungarian translation added by "Last-Translator: \n".
[evince.git] / pdf / Thumb.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-indent-level: 8; c-basic-offset: 8 -*- */
2 /* 
3  *  Copyright (C) 2003 Remi Cohen-Scali
4  *
5  *  Author:
6  *    Remi Cohen-Scali <Remi@Cohen-Scali.com>
7  *
8  * GPdf is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * GPdf is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
16  * License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
21  */
22
23 #ifndef THUMB_H
24 #define THUMB_H
25
26 class XRef;
27 class GfxColorSpace;
28
29 /* FIXME: Should have a class to avoid reading same colormap for every thumb */
30
31 /*
32  * Thumb
33  */
34
35 class Thumb {
36
37       public:
38         Thumb(XRef *xrefA, Object *obj);
39         ~Thumb();
40
41         int getWidth(void) {return width; };
42         int getHeight(void) {return height; };
43         GfxColorSpace *getColorSpace(void) {return colorMap->getColorSpace(); };
44         int getBitsPerComponent(void) {return colorMap->getBits(); };
45         int getLength(void) {return length; };
46
47         Stream *getStream() {return str; };
48
49         unsigned char *getPixbufData();
50
51         char ok() {return ok_flag != 0; }; 
52
53       private:
54         XRef *xref;
55         Stream *str;
56         GfxImageColorMap *colorMap;
57         int width, height, bits;
58         int length;
59         char ok_flag; 
60 };
61
62 #endif
63