1#ifndef __DCL_HS_HTML_VIEW_H__
2#define __DCL_HS_HTML_VIEW_H__ 20050904
7#ifndef __DCL_LISTED_HASH_MAP_H__
14#ifndef __DCL_TEXT_TEMPLATE_H__
17#ifndef __DCL_HS_SESSION_H__
32#define DECLARE_CLASSINFO_EX(class_name) \
33DECLARE_CLASSINFO(class_name) \
35 static HtmlView* createObject(HtmlPage* pPage);
37#define IMPLEMENT_CLASSINFO_EX(class_name, base_class_name) \
38IMPLEMENT_CLASSINFO(class_name, base_class_name) \
39HtmlView* class_name::createObject(HtmlPage* pPage) \
41 return new class_name(pPage); \
58 HEAD_SIGN_MENU_FORM = 14,
62 DATA_SOURCE_LIST_VIEW = 26,
63 DATA_SOURCE_WRITE_FORM = 27,
64 DATA_SOURCE_DETAIL_VIEW = 28,
66 PAGE_CATEGORY_FORM = 30,
69 PAGE_DETAIL_VIEW = 33,
71 ZIPCODE_LIST_VIEW = 41,
76 USER_DETAIL_VIEW = 53,
77 USER_SEARCH_FORM = 54,
78 USER_ACTIVITY_VIEW = 55,
86 MESSAGE_LIST_VIEW = 76,
87 MESSAGE_WRITE_FORM = 77,
88 MESSAGE_DETAIL_VIEW = 78,
95 const wchar_t* pszClassName;
97 const wchar_t* pszDesc;
101 static const CLASS_INFO __aClasses[];
102 static const int __nClassCount;
104 static const CLASS_INFO* getClassInfo(
int nClassID);
105 static const wchar_t*
className(
int nClassID);
123 static size_t split(
const String& str, StringStringArray& v);
125 static String
getDefault(ListedStringToStringArrayMap& map,
126 const String& strKey);
129 String& strLong, String& strShort);
161 virtual void onPrint(
Session& session)
164 virtual void onPost(
Session& session)
181 virtual void onPrint(
Session& session)
191 virtual void onPrint(
Session& session)
194 static void __onPrint(
HtmlView* pView)
204 virtual void onPrint(
Session& session)
207 virtual void onGet(
Session& session)
210 virtual void onPost(
Session& session)
232 virtual void onPrint(
Session& session)
235 static void __onPrint(
236 const String& strMenuFile,
269 String __strInnerPageID;
289 virtual void onPrint(
Session& session)
#define DECLARE_CLASSINFO_EX(class_name)
DialogWrapper(HtmlPage *pPage)
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
virtual void onPost(Session &session) __DCL_THROWS1(Exception *)
HtmlView(HtmlPage *pPage)
virtual void onGet(Session &session) __DCL_THROWS1(Exception *)
const HtmlPage * page() const
StringToStringMap __mapParams
static void dump(Session &session)
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
static String getDefault(ListedStringToStringArrayMap &map, const String &strKey)
static HtmlView * createObject(HtmlPage *pPage, int nClassID, int nIndex)
static size_t split(const String &str, StringStringArray &v)
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
static size_t getShortString(SQLField &field, size_t _len, String &strLong, String &strShort)