//----------------------------------------------------------------------------
// wxControlWithItems
// extracted from ctrlsub.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_CONTROLWITHITEMS_H__
#define __OBJECT_WX_CONTROLWITHITEMS_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxControlWithItems
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_ControlWithItems);

//----------------------------------------------------------------------------
// Object declaration for wxControlWithItems
//----------------------------------------------------------------------------
class Object_wx_ControlWithItems : public Object_wx_Control {
public:
	Gura_DeclareObjectAccessor(wx_ControlWithItems)
public:
	inline Object_wx_ControlWithItems(wxControlWithItems *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_Control(Gura_UserClass(wx_ControlWithItems), pEntity, pObserver, ownerFlag) {}
	inline Object_wx_ControlWithItems(Class *pClass, wxControlWithItems *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_Control(pClass, pEntity, pObserver, ownerFlag) {}
	virtual ~Object_wx_ControlWithItems();
	virtual Object *Clone() const;
	virtual String ToString(Signal sig, bool exprFlag);
	inline wxControlWithItems *GetEntity() {
		return dynamic_cast<wxControlWithItems *>(_pEntity);
	}
	inline wxControlWithItems *ReleaseEntity() {
		wxControlWithItems *pEntity = GetEntity();
		InvalidateEntity();
		return pEntity;
	}
	inline bool IsInvalid(Signal sig) const {
		if (_pEntity != NULL) return false;
		SetError_InvalidWxObject(sig, "wxControlWithItems");
		return true;
	}
public:
	static void OnModuleEntry(Environment &env, Signal sig);
};

}}

#endif
