/* 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"
#include "fv_View.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 ABI_EXPORT AP_FrameData
{
public:
	AP_FrameData();
	~AP_FrameData(void);

	FL_DocLayout *		m_pDocLayout;
	AV_View*            m_pRootView; // set for cloned frames ... must not be freed !!!
	GR_Graphics *		m_pG;

	bool				m_bInsertMode;
	bool				m_bShowRuler;
	bool				m_bShowBar[4]; // TODO: 4 = NB_OF_TOOLBARS...
	bool				m_bShowStatusBar;
	bool                m_bShowPara;
	bool                m_bIsFullScreen;
	AP_TopRuler *		m_pTopRuler;
	AP_LeftRuler *		m_pLeftRuler;
	EV_Toolbar *		m_pToolbar[4]; // TODO: 4 = NB_OF_TOOLBARS...
	AP_StatusBar *		m_pStatusBar;
	ViewMode            m_pViewMode;
        bool                m_bIsWidget;
};

#endif /* AP_FRAMEDATA_H */