//----------------------------------------------------------------------------
// wxTreebook
// extracted from treebook.tex
//----------------------------------------------------------------------------
#include "stdafx.h"

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class derivation
//----------------------------------------------------------------------------
class wx_Treebook: public wxTreebook, public GuraObjectObserver {
private:
	Gura::Signal _sig;
	Object_wx_Treebook *_pObj;
public:
	inline wx_Treebook() : wxTreebook(), _sig(NULL), _pObj(NULL) {}
	inline wx_Treebook(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxTreebook(parent, id, pos, size, style, name), _sig(NULL), _pObj(NULL) {}
	~wx_Treebook();
	inline void AssocWithGura(Gura::Signal &sig, Object_wx_Treebook *pObj) {
		_sig = sig, _pObj = pObj;
	}
	// virtual function of GuraObjectObserver
	virtual void GuraObjectDeleted();
};

wx_Treebook::~wx_Treebook()
{
	if (_pObj != NULL) _pObj->InvalidateEntity();
}

void wx_Treebook::GuraObjectDeleted()
{
	_pObj = NULL;
}

//----------------------------------------------------------------------------
// Gura interfaces for wxTreebook
//----------------------------------------------------------------------------
Gura_DeclareFunction(TreebookEmpty)
{
	SetMode(RSLTMODE_Normal, FLAG_None);
	SetClassToConstruct(Gura_UserClass(wx_Treebook));
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementFunction(TreebookEmpty)
{
	wx_Treebook *pEntity = new wx_Treebook();
	Object_wx_Treebook *pObj = Object_wx_Treebook::GetSelfObj(args);
	if (pObj == NULL) {
		pObj = new Object_wx_Treebook(pEntity, pEntity, OwnerFalse);
		pEntity->AssocWithGura(sig, pObj);
		return ReturnValue(env, sig, args, Value(pObj));
	}
	pObj->SetEntity(pEntity, pEntity, OwnerFalse);
	pEntity->AssocWithGura(sig, pObj);
	return ReturnValue(env, sig, args, args.GetSelf());
}

Gura_DeclareFunction(Treebook)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	SetClassToConstruct(Gura_UserClass(wx_Treebook));
	DeclareArg(env, "parent", VTYPE_wx_Window, OCCUR_Once);
	DeclareArg(env, "id", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "pos", VTYPE_wx_Point, OCCUR_ZeroOrOnce);
	DeclareArg(env, "size", VTYPE_wx_Size, OCCUR_ZeroOrOnce);
	DeclareArg(env, "style", VTYPE_number, OCCUR_ZeroOrOnce);
	DeclareArg(env, "name", VTYPE_string, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementFunction(Treebook)
{
	wxWindow *parent = Object_wx_Window::GetObject(args, 0)->GetEntity();
	wxWindowID id = static_cast<wxWindowID>(args.GetInt(1));
	wxPoint *pos = (wxPoint *)(&wxDefaultPosition);
	if (args.IsValid(2)) pos = Object_wx_Point::GetObject(args, 2)->GetEntity();
	wxSize *size = (wxSize *)(&wxDefaultSize);
	if (args.IsValid(3)) size = Object_wx_Size::GetObject(args, 3)->GetEntity();
	long style = wxBK_DEFAULT;
	if (args.IsValid(4)) style = args.GetLong(4);
	wxString name = wxEmptyString;
	if (args.IsValid(5)) name = wxString::FromUTF8(args.GetString(5));
	wx_Treebook *pEntity = new wx_Treebook(parent, id, *pos, *size, style, name);
	Object_wx_Treebook *pObj = Object_wx_Treebook::GetSelfObj(args);
	if (pObj == NULL) {
		pObj = new Object_wx_Treebook(pEntity, pEntity, OwnerFalse);
		pEntity->AssocWithGura(sig, pObj);
		return ReturnValue(env, sig, args, Value(pObj));
	}
	pObj->SetEntity(pEntity, pEntity, OwnerFalse);
	pEntity->AssocWithGura(sig, pObj);
	return ReturnValue(env, sig, args, args.GetSelf());
}

Gura_DeclareMethod(wx_Treebook, AddPage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "page", VTYPE_wx_Window, OCCUR_Once);
	DeclareArg(env, "text", VTYPE_string, OCCUR_Once);
	DeclareArg(env, "bSelect", VTYPE_boolean, OCCUR_ZeroOrOnce);
	DeclareArg(env, "imageId", VTYPE_number, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, AddPage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	wxWindow *page = Object_wx_Window::GetObject(args, 0)->GetEntity();
	wxString text = wxString::FromUTF8(args.GetString(1));
	bool bSelect = false;
	if (args.IsValid(2)) bSelect = args.GetBoolean(2);
	int imageId = wxNOT_FOUND;
	if (args.IsValid(3)) imageId = args.GetInt(3);
	bool rtn = pSelf->GetEntity()->AddPage(page, text, bSelect, imageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, AddSubPage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "page", VTYPE_wx_Window, OCCUR_Once);
	DeclareArg(env, "text", VTYPE_string, OCCUR_Once);
	DeclareArg(env, "bSelect", VTYPE_boolean, OCCUR_ZeroOrOnce);
	DeclareArg(env, "imageId", VTYPE_number, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, AddSubPage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	wxWindow *page = Object_wx_Window::GetObject(args, 0)->GetEntity();
	wxString text = wxString::FromUTF8(args.GetString(1));
	bool bSelect = false;
	if (args.IsValid(2)) bSelect = args.GetBoolean(2);
	int imageId = wxNOT_FOUND;
	if (args.IsValid(3)) imageId = args.GetInt(3);
	bool rtn = pSelf->GetEntity()->AddSubPage(page, text, bSelect, imageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, AssignImageList)
{
	SetMode(RSLTMODE_Void, FLAG_Map);
	DeclareArg(env, "imageList", VTYPE_wx_ImageList, OCCUR_Once);
}

Gura_ImplementMethod(wx_Treebook, AssignImageList)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	wxImageList *imageList = Object_wx_ImageList::GetObject(args, 0)->GetEntity();
	pSelf->GetEntity()->AssignImageList(imageList);
	return Value::Null;
}

Gura_DeclareMethod(wx_Treebook, ChangeSelection)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "page", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, ChangeSelection)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t page = args.GetSizeT(0);
	int rtn = pSelf->GetEntity()->ChangeSelection(page);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, CollapseNode)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "pageId", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, CollapseNode)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t pageId = args.GetSizeT(0);
	bool rtn = pSelf->GetEntity()->CollapseNode(pageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, Create)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "parent", VTYPE_wx_Window, OCCUR_Once);
	DeclareArg(env, "id", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "pos", VTYPE_wx_Point, OCCUR_ZeroOrOnce);
	DeclareArg(env, "size", VTYPE_wx_Size, OCCUR_ZeroOrOnce);
	DeclareArg(env, "style", VTYPE_number, OCCUR_ZeroOrOnce);
	DeclareArg(env, "name", VTYPE_string, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, Create)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	wxWindow *parent = Object_wx_Window::GetObject(args, 0)->GetEntity();
	wxWindowID id = static_cast<wxWindowID>(args.GetInt(1));
	wxPoint *pos = (wxPoint *)(&wxDefaultPosition);
	if (args.IsValid(2)) pos = Object_wx_Point::GetObject(args, 2)->GetEntity();
	wxSize *size = (wxSize *)(&wxDefaultSize);
	if (args.IsValid(3)) size = Object_wx_Size::GetObject(args, 3)->GetEntity();
	long style = wxBK_DEFAULT;
	if (args.IsValid(4)) style = args.GetLong(4);
	wxString name = wxEmptyString;
	if (args.IsValid(5)) name = wxString::FromUTF8(args.GetString(5));
	bool rtn = pSelf->GetEntity()->Create(parent, id, *pos, *size, style, name);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, DeleteAllPages)
{
	SetMode(RSLTMODE_Normal, FLAG_None);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, DeleteAllPages)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	bool rtn = pSelf->GetEntity()->DeleteAllPages();
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, DeletePage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "pagePos", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, DeletePage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t pagePos = args.GetSizeT(0);
	bool rtn = pSelf->GetEntity()->DeletePage(pagePos);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, ExpandNode)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "pageId", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "expand", VTYPE_boolean, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, ExpandNode)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t pageId = args.GetSizeT(0);
	bool expand = true;
	if (args.IsValid(1)) expand = args.GetBoolean(1);
	bool rtn = pSelf->GetEntity()->ExpandNode(pageId, expand);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, GetPageImage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "n", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, GetPageImage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t n = args.GetSizeT(0);
	int rtn = pSelf->GetEntity()->GetPageImage(n);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, GetPageParent)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "page", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, GetPageParent)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t page = args.GetSizeT(0);
	int rtn = pSelf->GetEntity()->GetPageParent(page);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, GetPageText)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "n", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, GetPageText)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t n = args.GetSizeT(0);
	wxString rtn = pSelf->GetEntity()->GetPageText(n);
	return ReturnValue(env, sig, args, Value(env, static_cast<const char *>(rtn.ToUTF8())));
}

Gura_DeclareMethod(wx_Treebook, GetSelection)
{
	SetMode(RSLTMODE_Normal, FLAG_None);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, GetSelection)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	int rtn = pSelf->GetEntity()->GetSelection();
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, InsertPage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "pagePos", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "page", VTYPE_wx_Window, OCCUR_Once);
	DeclareArg(env, "text", VTYPE_string, OCCUR_Once);
	DeclareArg(env, "bSelect", VTYPE_boolean, OCCUR_ZeroOrOnce);
	DeclareArg(env, "imageId", VTYPE_number, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, InsertPage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t pagePos = args.GetSizeT(0);
	wxWindow *page = Object_wx_Window::GetObject(args, 1)->GetEntity();
	wxString text = wxString::FromUTF8(args.GetString(2));
	bool bSelect = false;
	if (args.IsValid(3)) bSelect = args.GetBoolean(3);
	int imageId = wxNOT_FOUND;
	if (args.IsValid(4)) imageId = args.GetInt(4);
	bool rtn = pSelf->GetEntity()->InsertPage(pagePos, page, text, bSelect, imageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, InsertSubPage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "pagePos", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "page", VTYPE_wx_Window, OCCUR_Once);
	DeclareArg(env, "text", VTYPE_string, OCCUR_Once);
	DeclareArg(env, "bSelect", VTYPE_boolean, OCCUR_ZeroOrOnce);
	DeclareArg(env, "imageId", VTYPE_number, OCCUR_ZeroOrOnce);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, InsertSubPage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t pagePos = args.GetSizeT(0);
	wxWindow *page = Object_wx_Window::GetObject(args, 1)->GetEntity();
	wxString text = wxString::FromUTF8(args.GetString(2));
	bool bSelect = false;
	if (args.IsValid(3)) bSelect = args.GetBoolean(3);
	int imageId = wxNOT_FOUND;
	if (args.IsValid(4)) imageId = args.GetInt(4);
	bool rtn = pSelf->GetEntity()->InsertSubPage(pagePos, page, text, bSelect, imageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, IsNodeExpanded)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "pageId", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, IsNodeExpanded)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t pageId = args.GetSizeT(0);
	bool rtn = pSelf->GetEntity()->IsNodeExpanded(pageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, SetImageList)
{
	SetMode(RSLTMODE_Void, FLAG_Map);
	DeclareArg(env, "imageList", VTYPE_wx_ImageList, OCCUR_Once);
}

Gura_ImplementMethod(wx_Treebook, SetImageList)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	wxImageList *imageList = Object_wx_ImageList::GetObject(args, 0)->GetEntity();
	pSelf->GetEntity()->SetImageList(imageList);
	return Value::Null;
}

Gura_DeclareMethod(wx_Treebook, SetPageImage)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "page", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "imageId", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, SetPageImage)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t page = args.GetSizeT(0);
	int imageId = args.GetInt(1);
	bool rtn = pSelf->GetEntity()->SetPageImage(page, imageId);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, SetPageText)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "page", VTYPE_number, OCCUR_Once);
	DeclareArg(env, "text", VTYPE_string, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, SetPageText)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t page = args.GetSizeT(0);
	wxString text = wxString::FromUTF8(args.GetString(1));
	bool rtn = pSelf->GetEntity()->SetPageText(page, text);
	return ReturnValue(env, sig, args, Value(rtn));
}

Gura_DeclareMethod(wx_Treebook, SetSelection)
{
	SetMode(RSLTMODE_Normal, FLAG_Map);
	DeclareArg(env, "n", VTYPE_number, OCCUR_Once);
	DeclareBlock(OCCUR_ZeroOrOnce);
}

Gura_ImplementMethod(wx_Treebook, SetSelection)
{
	Object_wx_Treebook *pSelf = Object_wx_Treebook::GetSelfObj(args);
	if (pSelf->IsInvalid(sig)) return Value::Null;
	size_t n = args.GetSizeT(0);
	int rtn = pSelf->GetEntity()->SetSelection(n);
	return ReturnValue(env, sig, args, Value(rtn));
}

//----------------------------------------------------------------------------
// Object implementation for wxTreebook
//----------------------------------------------------------------------------
Object_wx_Treebook::~Object_wx_Treebook()
{
}

Object *Object_wx_Treebook::Clone() const
{
	return NULL;
}

String Object_wx_Treebook::ToString(Signal sig, bool exprFlag)
{
	String rtn("<wx.Treebook:");
	if (GetEntity() == NULL) {
		rtn += "invalid>";
	} else {
		char buff[64];
		::sprintf(buff, "%p>", GetEntity());
		rtn += buff;
	}
	return rtn;
}

void Object_wx_Treebook::OnModuleEntry(Environment &env, Signal sig)
{
	Gura_AssignFunction(TreebookEmpty);
	Gura_AssignFunction(Treebook);
}

//----------------------------------------------------------------------------
// Class implementation for wxTreebook
//----------------------------------------------------------------------------
Gura_ImplementUserInheritableClass(wx_Treebook)
{
	Gura_AssignMethod(wx_Treebook, AddPage);
	Gura_AssignMethod(wx_Treebook, AddSubPage);
	Gura_AssignMethod(wx_Treebook, AssignImageList);
	Gura_AssignMethod(wx_Treebook, ChangeSelection);
	Gura_AssignMethod(wx_Treebook, CollapseNode);
	Gura_AssignMethod(wx_Treebook, Create);
	Gura_AssignMethod(wx_Treebook, DeleteAllPages);
	Gura_AssignMethod(wx_Treebook, DeletePage);
	Gura_AssignMethod(wx_Treebook, ExpandNode);
	Gura_AssignMethod(wx_Treebook, GetPageImage);
	Gura_AssignMethod(wx_Treebook, GetPageParent);
	Gura_AssignMethod(wx_Treebook, GetPageText);
	Gura_AssignMethod(wx_Treebook, GetSelection);
	Gura_AssignMethod(wx_Treebook, InsertPage);
	Gura_AssignMethod(wx_Treebook, InsertSubPage);
	Gura_AssignMethod(wx_Treebook, IsNodeExpanded);
	Gura_AssignMethod(wx_Treebook, SetImageList);
	Gura_AssignMethod(wx_Treebook, SetPageImage);
	Gura_AssignMethod(wx_Treebook, SetPageText);
	Gura_AssignMethod(wx_Treebook, SetSelection);
}

Gura_ImplementDescendantCreator(wx_Treebook)
{
	return new Object_wx_Treebook((pClass == NULL)? this : pClass, NULL, NULL, OwnerFalse);
}

}}
