Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __GR_QTGRAPHICS_H__
00024 #define __GR_QTGRAPHICS_H__
00025
00026 #include "gr_CairoGraphics.h"
00027
00028 class ABI_EXPORT GR_QtAllocInfo
00029 : public GR_AllocInfo
00030 {
00031 public:
00032 GR_QtAllocInfo(bool bPreview, bool bPrinter, bool double_buffered)
00033 : m_bPreview(bPreview),
00034 m_bPrinter(bPrinter),
00035 m_double_buffered(double_buffered)
00036 {
00037 }
00038 virtual GR_GraphicsId getType() const {return GRID_QT;}
00039 virtual bool isPrinterGraphics() const {return m_bPrinter;}
00040
00041 bool m_bPreview;
00042 bool m_bPrinter;
00043 bool m_double_buffered;
00044 };
00045
00046 class ABI_EXPORT GR_QtGraphics
00047 : public GR_CairoGraphics
00048 {
00049 public:
00050 ~GR_QtGraphics();
00051 static UT_uint32 s_getClassId() {return GRID_QT;}
00052 virtual UT_uint32 getClassId() {return s_getClassId();}
00053
00054 static const char * graphicsDescriptor(){return "Unix Qt";}
00055 static GR_Graphics * graphicsAllocator(GR_AllocInfo&);
00056
00057 virtual GR_Font* getGUIFont(void);
00058 virtual void scroll(UT_sint32, UT_sint32);
00059 virtual void scroll(UT_sint32 x_dest, UT_sint32 y_dest,
00060 UT_sint32 x_src, UT_sint32 y_src,
00061 UT_sint32 width, UT_sint32 height);
00062 virtual void setCursor(Cursor c);
00063 virtual GR_Image * genImageFromRectangle(const UT_Rect & r);
00064
00065 protected:
00066 GR_QtGraphics();
00067
00068 private:
00069 };
00070
00071 #endif