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