/**********************************************************************
 
	Copyright (C) 2003-2004
	Hirohisa MORI <joshua@nichibun.ac.jp>
	Tomoki SEKIYAMA <sekiyama@yahoo.co.jp>
 
	This program is free software; you can redistribute it 
	and/or modify it under the terms of the GLOBALBASE 
	Library General Public License (G-LGPL) as published by 

	http://www.globalbase.org/
 
	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.

**********************************************************************/


// ===========================================================================
//	CDataBrowserImp.h                              2004.3.16   Tomoki Sekiyama
// ===========================================================================

#ifndef _H_CDataBrowserImp
#define _H_CDataBrowserImp
#pragma once

#include <LAMControlImp.h>
#include "CDataBrowser.h"

#if PP_Uses_Pragma_Import
	#pragma import on
#endif

PP_Begin_Namespace_PowerPlant

// ---------------------------------------------------------------------------

class	CDataBrowserImp : public LAMControlImp {
public:

						CDataBrowserImp( LStream*	inStream = nil );

	virtual				~CDataBrowserImp();

	virtual void		ResizeFrameBy(
								SInt16			inWidthDelta,
								SInt16			inHeightDelta);

protected:

	virtual void		MakeMacControl(
								ConstStringPtr	inTitle,
								SInt32			inRefCon);

	virtual void		AdjustControlBounds( Rect& ioBounds );

	static DataBrowserCallbacks	sCallbacks;
	static bool					sCallbacksInited;
};

PP_End_Namespace_PowerPlant


#if PP_Uses_Pragma_Import
	#pragma import reset
#endif

#endif
