/* AbiWord * Copyright (C) 1998-2000 AbiSource, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #ifndef AP_FRAMEDATA_H #define AP_FRAMEDATA_H #include "ut_types.h" class GR_Graphics; class FL_DocLayout; class AP_TopRuler; class AP_LeftRuler; class AP_StatusBar; class XAP_App; class EV_Toolbar; // A trivial helper class to hold app-specific frame data. // We need this because we factored the Frame classes // XAP/XP --> XAP/platform --> WP/AP/platform // The stuff here is WP/AP/XP that we could have put // in the Frame class if we had factored the other way // or built a lattice... class AP_FrameData { public: AP_FrameData(XAP_App * pApp); ~AP_FrameData(void); FL_DocLayout * m_pDocLayout; GR_Graphics * m_pG; UT_Bool m_bInsertMode; UT_Bool m_bShowRuler; UT_Bool m_bShowBar[3]; // TODO: 3 = NB_OF_TOOLBARS... UT_Bool m_bShowStatusBar; UT_Bool m_bShowPara; AP_TopRuler * m_pTopRuler; AP_LeftRuler * m_pLeftRuler; EV_Toolbar * m_pToolbar[3]; // TODO: 3 = NB_OF_TOOLBARS... AP_StatusBar * m_pStatusBar; }; #endif /* AP_FRAMEDATA_H */