00001 /* AbiWord 00002 * Copyright (C) 1998-2000 AbiSource, Inc. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301 USA. 00018 */ 00019 00020 00021 #ifndef AP_FRAMEDATA_H 00022 #define AP_FRAMEDATA_H 00023 00024 #include "ut_types.h" 00025 #include "fv_View.h" 00026 00027 class GR_Graphics; 00028 class FL_DocLayout; 00029 class AP_TopRuler; 00030 class AP_LeftRuler; 00031 class AP_StatusBar; 00032 class XAP_App; 00033 class EV_Toolbar; 00034 00035 // A trivial helper class to hold app-specific frame data. 00036 // We need this because we factored the Frame classes 00037 // XAP/XP --> XAP/platform --> WP/AP/platform 00038 // The stuff here is WP/AP/XP that we could have put 00039 // in the Frame class if we had factored the other way 00040 // or built a lattice... 00041 00042 class ABI_EXPORT AP_FrameData 00043 { 00044 public: 00045 AP_FrameData(); 00046 ~AP_FrameData(void); 00047 00048 FL_DocLayout * m_pDocLayout; 00049 AV_View* m_pRootView; // set for cloned frames ... must not be freed !!! 00050 GR_Graphics * m_pG; 00051 00052 bool m_bInsertMode; 00053 bool m_bShowRuler; 00054 bool m_bShowBar[4]; // TODO: 4 = NB_OF_TOOLBARS... 00055 bool m_bShowStatusBar; 00056 bool m_bShowPara; 00057 bool m_bIsFullScreen; 00058 AP_TopRuler * m_pTopRuler; 00059 AP_LeftRuler * m_pLeftRuler; 00060 EV_Toolbar * m_pToolbar[4]; // TODO: 4 = NB_OF_TOOLBARS... 00061 AP_StatusBar * m_pStatusBar; 00062 ViewMode m_pViewMode; 00063 bool m_bIsWidget; 00064 }; 00065 00066 #endif /* AP_FRAMEDATA_H */