1 2 #ifndef _PROGRESS_BAR_SERVICE_PROVIDER_ 3 #define _PROGRESS_BAR_SERVICE_PROVIDER_ 4 5 class screen_generator; // forward reference 6 7 class progress_bar_service_provider : public widget_service_provider 8 { 9 public: 10 progress_bar_service_provider(); 11 GetType()12 virtual int GetType() {return GX_TYPE_PROGRESS_BAR;} GetTypeName(widget_info *)13 virtual CString GetTypeName(widget_info *) {return CString("GX_TYPE_PROGRESS_BAR");} GetShortName()14 virtual CString GetShortName() {return CString("progress_bar");} 15 virtual CString GetVarDeclaration(); GetControlBlockName()16 virtual CString GetControlBlockName() {return CString("GX_PROGRESS_BAR");} 17 18 virtual CString DeclarePropertiesStruct(); 19 virtual CString WriteExtendedProperties(screen_generator *gen, CString &scope, widget_info *info); 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 SaveToProject(xml_writer &, studiox_project *project, int display, widget_info *); 27 virtual void ReadFromProject(xml_reader &, studiox_project *project, int display, widget_info *info, ULONG valid_styles); 28 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 virtual void AssignPixelmap(widget_info *info, int index, GX_RESOURCE_ID pixmap_id); 32 virtual void Autosize(widget_info *info); 33 34 }; 35 36 #endif 37