DCL 3.7.4
Loading...
Searching...
No Matches
LinkUtility.h
Go to the documentation of this file.
1#ifndef __DCL_HS_LINK_UTILITY_H__
2#define __DCL_HS_LINK_UTILITY_H__ 20060315
3
4#ifndef __DCL_STRING_H__
5#include <dcl/String.h>
6#endif
7#ifndef __DCL_SQL_H__
8#include <dcl/SQL.h>
9#endif
10#ifndef __DCL_TEXT_TEMPLATE_H__
11#include <dcl/TextTemplate.h>
12#endif
13
14#ifndef __DCL_HS_MESSAGE_TREE_H__
15#include "MessageTree.h"
16#endif
17#ifndef __DCL_HS_SESSION_H__
18#include "Session.h"
19#endif
20
21__DCL_BEGIN_NAMESPACE
22
23#define DEFAULT_PARTS 5
24#define DEFAULT_ROWS 20
25#define DEFAULT_SHORT_STRING 20
26
28{
29 // FIRST PREV 1 2 3 4 5 6 7 8 9 10 NEXT LAST
30 // PARTS == 10
31 // nCurrentPart == 6 일때
32 // nStartPart 1
33 // nEndPart 10
34
35 // ?page=$THIS$PART$_LIST
36protected:
38public:
40 TextTemplate* pSource, // "PART_LINK"
41 const String& strThis, // "n[&msg=][&rows=]"
42 const String& strLinkEnc // URLEncode(strToList)
43 );
44
45 void assign(
46 TextTemplate* pDest,
47 int nTotalPart,
48 int nCurrentPart,
49 int nNumberPart // PARTS
50 );
51};
52
54{
55protected:
57
60
63
64public:
66 TextTemplate* pSource,
67 const String& strDetailPage,
68 const String& strListEnc
69 );
70
71 void assign(
72 TextTemplate* pDest,
73 _CONST SQLFields& fields
74 );
75
76 void assign(
77 TextTemplate* pDest,
78 _CONST SQLFields& fields,
79 const String& strListEnc
80 );
81};
82
84{
85protected:
87
94
101
102public:
104 TextTemplate* pSource,
105 const String& strDetailPage,
106 const String& strToEdit,
107 const String& strThisEnc,
108 const String& strListEnc
109 );
110
111 void assign(
112 TextTemplate* pDest,
113 _CONST SQLFields& fields,
114 const Session& session,
115 const String& strMessageID,
116 const String& strToList,
117 const MessageTree& mt,
118 const MessageTree::Position& pos
119 );
120
121};
122
124{
125protected:
129public:
131 TextTemplate* pSource,
132 int nRecentHour
133 );
134
135 void assign(
136 TextTemplate* pDest,
137 DateTime dt
138 );
139};
140
142{
143protected:
147public:
148 RowGroup(
149 TextTemplate* pSource,
150 int nGroup
151 );
152
153 void assign(
154 TextTemplate* pDest,
155 int nRow
156 );
157};
158
159__DCL_END_NAMESPACE
160
161#endif // __DCL_HS_LINK_UTILITY_H__
#define _CONST
Definition Config.h:325
DateTime __dtBase
TextTemplate * __pOld
void assign(TextTemplate *pDest, DateTime dt)
TextTemplate * __pNew
RecentIcon(TextTemplate *pSource, int nRecentHour)
void assign(TextTemplate *pDest, int nRow)
TextTemplate * __pOdd
RowGroup(TextTemplate *pSource, int nGroup)
TextTemplate * __pEven