• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

gr_QtGraphics.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 /* AbiWord
00003  * Copyright (C) 2004-2006 Tomas Frydrych <dr.tomas@yahoo.co.uk>
00004  * Copyright (C) 2009 Hubert Figuiere
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301 USA.
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

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1