1 #ifndef _ML_TEXT_VIEW_SERVICE_PROVIDER_ 2 #define _ML_TEXT_VIEW_SERVICE_PROVIDER_ 3 4 class screen_generator; // forward reference 5 6 class ml_text_view_service_provider : public window_service_provider 7 { 8 public: 9 ml_text_view_service_provider(); 10 GetType()11 virtual int GetType() {return GX_TYPE_MULTI_LINE_TEXT_VIEW;} GetTypeName(widget_info *)12 virtual CString GetTypeName(widget_info *) {return CString("GX_TYPE_MULTI_LINE_TEXT_VIEW");} GetShortName()13 virtual CString GetShortName() {return CString("ml_text_view");} 14 virtual CString GetVarDeclaration(); GetControlBlockName()15 virtual CString GetControlBlockName() {return CString("GX_MULTI_LINE_TEXT_VIEW");} 16 17 virtual CString DeclarePropertiesStruct(); 18 virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info); 19 virtual CString GetCreateFromDefFunctionName(); 20 virtual CString GetCreateFromDefFunction(int version); 21 22 virtual widget_info *CreateNewInstance(GX_WIDGET *parent); 23 virtual GX_WIDGET *GenerateFromInfo(GX_WIDGET *parent, widget_info *info); 24 25 virtual void SaveToProject(xml_writer &, studiox_project *project, int display, widget_info *); 26 virtual void ReadFromProject(xml_reader &, studiox_project *project, int display, widget_info *info, ULONG valid_styles); 27 28 virtual void AssignText(widget_info *info, int index, GX_RESOURCE_ID string_id); 29 virtual void AssignFont(widget_info *info, int index, GX_RESOURCE_ID font_id); 30 virtual void AssignColor(widget_info *info, int index, GX_RESOURCE_ID color_id); 31 }; 32 33 #endif 34