00001 /* 00002 * A plugin to Allow AbiWord to make presentations. 00003 * Copyright (C) 2007 by Martin Sevior 00004 * 00005 * This program is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * as published by the Free Software Foundation; either version 2 00008 * of the License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00018 * 02110-1301 USA. 00019 */ 00020 00021 #ifndef PLUGIN_PRESENTATION_H 00022 #define PLUGIN_PRESENTATION_H 00023 #include "ut_string_class.h" 00024 #include "ev_EditEventMapper.h" 00025 #include "ev_EditBinding.h" 00026 #include "xap_Frame.h" 00027 00028 class AV_View; 00029 class FV_View; 00030 class XAP_App; 00031 class XAP_Frame; 00032 class GR_Image; 00033 00034 class Presentation 00035 { 00036 public: 00037 Presentation(void); 00038 ~Presentation(void); 00039 bool showNext(void); 00040 bool showNextPage(void); 00041 bool start(AV_View * pView); 00042 bool gotoPage(UT_sint32 iPage); 00043 bool drawNthPage(UT_sint32 i); 00044 bool showPrev(void); 00045 bool showPrevPage(void); 00046 00047 bool end(void); 00048 GR_Image * renderPageToImage(UT_sint32 iPage, UT_uint32 izoom); 00049 private: 00050 bool _loadPresentationBindings(AV_View * view); 00051 XAP_App * m_pApp; 00052 FV_View * m_pView; 00053 UT_sint32 m_iPage; 00054 UT_String m_sPrevBindings; 00055 UT_sint32 m_iOldZoom; 00056 XAP_Frame::tZoomType m_OldZoomType; 00057 bool m_bDrewNext; 00058 bool m_bDrewPrev; 00059 }; 00060 00061 #endif /* PLUGIN_PRESENTATION_H */ 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073