1 #ifndef _MLT_BUTTON_SERVICE_PROVIDER_ 2 #define _MLT_BUTTON_SERVICE_PROVIDER_ 3 4 class screen_generator; // forward reference 5 6 class mlt_button_service_provider : public text_button_service_provider 7 { 8 public: 9 mlt_button_service_provider(); 10 GetType()11 virtual int GetType() {return GX_TYPE_MULTI_LINE_TEXT_BUTTON;} GetTypeName(widget_info *)12 virtual CString GetTypeName(widget_info *) {return CString("GX_TYPE_MULTI_LINE_TEXT_BUTTON");} GetShortName()13 virtual CString GetShortName() {return CString("multi_line_text_button");} 14 virtual CString GetVarDeclaration(); GetControlBlockName()15 virtual CString GetControlBlockName() {return CString("GX_MULTI_LINE_TEXT_BUTTON");} 16 17 virtual CString DeclarePropertiesStruct(); 18 virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info); 19 20 virtual CString GetCreateFromDefFunctionName(); 21 virtual CString GetCreateFromDefFunction(int version); 22 23 virtual widget_info *CreateNewInstance(GX_WIDGET *parent); 24 virtual GX_WIDGET *GenerateFromInfo(GX_WIDGET *parent, widget_info *info); 25 26 virtual void AssignText(widget_info *info, int index, GX_RESOURCE_ID string_id); 27 }; 28 29 #endif 30