DCL 3.7.4
Loading...
Searching...
No Matches
MessageView.cpp
Go to the documentation of this file.
1#include <dcl/Config.h>
2
3#ifdef __WINNT__
4#include <windows.h>
5#endif
6
7#include "HtmlPage.h"
8#include "MessageView.h"
9
10#if __DCL_HAVE_THIS_FILE__
11#undef __THIS_FILE__
12static const char_t __THIS_FILE__[] = __T("fastpage/MessageView.cpp");
13#endif
14
15__DCL_BEGIN_NAMESPACE
16
18
19MessageView::MessageView(HtmlPage* pPage)
20 : HtmlView(pPage)
21{
22 __nDsID = 0;
23 __nTableID = 0;
24 __nReplyDepth = 0;
25 __nSequence = 0;
26}
27
30{
31 HtmlView::init(fields);
32
33 __nDsID = fields.byName(L"DS_ID").asInteger();
34 __nTableID = fields.byName(L"TABLE_ID").asInteger();
35 __nReplyDepth = fields.byName(L"REPLY_DEPTH").asInteger();
36 __nSequence = fields.byName(L"SEQUENCE").asInteger();
37
38 __strDsName = fields.byName(L"DS_NAME").asString();
39}
40
43{
44 assign(L"_DS_NAME", __strDsName);
45 HtmlView::onPrint(session);
46}
47
48__DCL_END_NAMESPACE
#define __THIS_FILE__
Definition _trace.h:14
wchar_t char_t
Definition Config.h:247
#define __DCL_THROWS1(e)
Definition Config.h:152
#define IMPLEMENT_CLASSINFO_EX(class_name, base_class_name)
Definition HtmlView.h:37
#define __T(str)
Definition Object.h:60
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
Definition HtmlView.cpp:349
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
Definition HtmlView.cpp:298
virtual void init(SQLFields &fields) __DCL_THROWS1(Exception *)
virtual void onPrint(Session &session) __DCL_THROWS1(Exception *)
int __nReplyDepth
Definition MessageView.h:37
String __strDsName
Definition MessageView.h:34