xj qian
2024-06-27 b8e6a7bb37d04f1e974e231a5caffc1854cf7f41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
#pragma once
 
#include "wobject/xcontrol.hpp"
#include "kobject/kcell.hpp"
#include "wobject/xurl.hpp"
 
using kcell = Hxsoft::XFrame::XOffice::XCell::IXCell;
class xcell : public xcontrol
{
public:
    xcell(void* impl=nullptr) :xcontrol(impl) {}
public:
    kcell* GetKCell()
    {
        return (kcell*)this->GetNativePtr();
    }
public:
    xstring GetHtml() //alias "?GetHtml@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WXZ";
    {
        return GetKCell()->GetHtml();
    }
    xstring GetData() //alias "?GetData@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WXZ";
    {
        return GetKCell()->GetData();
    }
    int GetAnchorCol() //alias "?GetAnchorCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->GetAnchorCol();
 
    }
    int GetAnchorRow() //alias "?GetAnchorRow@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->GetAnchorRow();
 
    }
    int GetColumn() //alias "?GetColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->GetColumn();
 
    }
    int GetColumnCount() //alias "?GetColumnCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->GetColumnCount();
 
    }
    xstring GetItemString(int ARow, int ACol) //alias "?GetItemString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPB_WHH@Z";
    {
        return GetKCell()->GetItemString(ARow, ACol);
    }
    int GetRow() //alias "?GetRow@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->GetRow();
    }
    int GetRowCount() //alias "?GetRowCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->GetRowCount();
    }
    int SetAnchorRowColumn(int ARow, int ACol) //alias "?SetAnchorRowColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    {
        return GetKCell()->SetAnchorRowColumn(ARow,ACol);
    }
    int SetRowColumn(int ARow, int ACol) //alias "?SetRowColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    {
        return GetKCell()->SetRowColumn(ARow,ACol);
    }
    int SetBorder(int nBorder) //alias "?SetBorder@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    {
        return GetKCell()->SetBorder(nBorder);
    }
 
    int SetColumnCount(int columnCount) //alias "?SetColumnCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    {
        return GetKCell()->SetColumnCount(columnCount);
    }
    int SetRowCount(int rowCount) //alias "?SetRowCount@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    {
        return GetKCell()->SetRowCount(rowCount);
    }
 
    int SetItemString(int ARow, int ACol, xstring value) //alias "?SetItemString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHHPA_W@Z";
    {
        return GetKCell()->SetItemString(ARow,ACol,(LPTSTR)value.c_str());
    }
    int SetRowColumn(int ARow, int ACol) //alias "?SetRowColumn@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    {
        return GetKCell()->SetRowColumn(ARow,ACol);
    }
    int Copy() //alias "?Copy@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->Copy() ;
    }
    int Cut() //alias "?Cut@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->Cut() ;
    }
    int Paste() //alias "?Paste@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    {
        return GetKCell()->Paste() ;
    }
    xstring  GetCellProp(int nRow, int nCol, xstring Item) //alias "?GetCellProp@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WHHPB_W@Z";
    {
        return GetKCell()->GetCellProp(nRow,nCol,Item);
    }
    xstring  GetCellProps(int nRow, int nCol) //alias "?GetCellProps@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPA_WHH@Z";
    {
        return GetKCell()->GetCellProps(nRow,nCol);
    }
    int   SetCellProp(int nRow, int nCol, xstring Item, xstring val) //alias "?SetCellProp@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHHPB_W0@Z";
    {
        return GetKCell()->SetCellProp(nRow,nCol,Item,val);
    }
    int   SetCellProps(int nRow, int nCol, xstring val) //alias "?SetCellProps@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHHPB_W@Z";
    {
        return GetKCell()->SetCellProps(nRow,nCol,val);
    }
    int   GetColumnWidth(int nCol) //alias "?GetColumnWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    {
        return GetKCell()->GetColumnWidth(nCol);
    }
    bool   SetColumnWidth(int nCol, int nWidth) //alias "?SetColumnWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAE_NHH@Z";
    {
        return GetKCell()->SetColumnWidth(nCol,nWidth) ;
    }
    bool   SetRowHeight(int nRow, int nHeight) //alias "?SetRowHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAE_NHH@Z";
    {
        return GetKCell()->SetRowHeight(nRow,nHeight);
    }
    int   GetRowHeight(int nRow) //alias "?GetRowHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    {
        return GetKCell()->GetRowHeight(nRow);
    }
    int SetRowSelectorWidth(int nWidth) //alias "?SetRowSelectorWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    {
        return GetKCell()->SetRowSelectorWidth(nWidth);
    }
    int ResetRowSelector() //alias "?ResetRowSelector@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->ResetRowSelector();
 
    }
    int GetRowSelectorWidth() //alias "?GetRowSelectorWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->GetRowSelectorWidth();
 
    }
    int GetRowSelectorDefaultWidth() //alias "?GetRowSelectorDefaultWidth@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->GetRowSelectorDefaultWidth();
 
    }
    int SetColHeaderHeight(int nHeight) //alias "?SetColHeaderHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    { return GetKCell()->SetColHeaderHeight(nHeight);
 
    }
    int GetColHeaderDefaultHeight() //alias "?GetColHeaderDefaultHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->GetColHeaderDefaultHeight();
 
    }
    int ResetColHeaderHeight() //alias "?ResetColHeaderHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->ResetColHeaderHeight();
 
    }
    int GetColHeaderHeight() //alias "?GetColHeaderHeight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->GetColHeaderHeight();
 
    }
    //param GetSheetSvr() //alias "?GetSheetSvr@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPAXXZ";
    void SetSchmaSource(xstring schemasource) //alias "?SetSchmaSource@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEXPB_W@Z";
    { return GetKCell()->SetSchmaSource(schemasource);
 
    }
    void SetSchmaString(xstring schemasstr) //alias "?SetSchmaString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEXPB_W@Z";
    { return GetKCell()->SetSchmaString(schemasstr);
 
    }
    xstring GetSchemaSource() //alias "?GetSchemaSource@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPB_WXZ";
    { return GetKCell()->GetSchemaSource();
 
    }
    xstring GetSchemaString() //alias "?GetSchemaString@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEPB_WXZ";
    { return GetKCell()->GetSchemaString();
 
    }
 
    int GetSpanBottom(int nRow, int nCol) //alias "?GetSpanBottom@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    { return GetKCell()->GetSpanBottom(nRow, nCol);
 
    }
    int GetSpanLeft(int nRow, int nCol) //alias "?GetSpanLeft@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    { return GetKCell()->GetSpanLeft(nRow,nCol);
 
    }
    int GetSpanRight(int ARow, int ACol) //alias "?GetSpanRight@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    { return GetKCell()->GetSpanRight(ARow,ACol);
 
    }
    int GetSpanTop(int ARow, int ACol) //alias "?GetSpanTop@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHHH@Z";
    { return GetKCell()->GetSpanTop(ARow,ACol);
 
    }
    bool IsSpanCell(int ARow, int ACol) //alias "?IsSpanCell@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAE_NHH@Z";
    { return GetKCell()->IsSpanCell(ARow,ACol);
 
    }
    int GetValidCol(int ARow) //alias "?GetValidCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    { return GetKCell()->GetValidCol();
 
    }
    int GetValidCol() //alias "?GetValidCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->GetValidCol();
 
    }
    int GetValidRow() //alias "?GetValidRow@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->GetValidRow();
 
    }
    int GetValidRowCol(int &ARow, int &ACol) //alias "?GetValidRowCol@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHAAH0@Z";
    { return GetKCell()->GetValidRowCol(ARow,ACol) ; 
 
    }
    void SetEditUpperMode(bool upper) //alias "?SetEditUpperMode@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEX_N@Z";
    { return GetKCell()->SetEditUpperMode(upper);
 
    }
 
    int LoadTemplate(KXMLDOMDocument xmldoc, xstring state) //alias "?LoadTemplate@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPAUIXMLDOMDocument@@PA_W@Z";
    { return GetKCell()->LoadTemplate(xmldoc,(LPTSTR)state.c_str());
 
    }
    int LoadTemplate(KXMLDOMElement ele, xstring state) //alias "?LoadTemplate@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPAUIXMLDOMElement@@PA_W@Z";
    { return GetKCell()->LoadTemplate(ele, (LPTSTR)state.c_str());
 
    }
    int LoadTemplateEx(KXMLDOMElement ele)
    { 
        return LoadTemplate(ele, L"design");
    }
 
    int LoadTemplate(KXMLDOMDocument xmldoc)
    { 
        return LoadTemplate(xmldoc, L"design");
    }
 
    int openUrl(xstring aurl)
    {
        KXMLDOMDocument x;
        xurl::get(aurl, L"", x);
        return LoadTemplate(x);
    }
 
    int openUrl(xstring aurl, xstring arg)
    {
        KXMLDOMDocument x;
        xurl::get(aurl, arg, x);
        return LoadTemplate(x);
    }
 
    int OpenFile(xstring fileUrl) //alias "?OpenFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPA_W@Z";
    { return GetKCell()->OpenFile((LPTSTR)fileUrl.c_str());
 
    }
    int OpenFile() //alias "?OpenFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->OpenFile();
 
    }
    int SaveFile(xstring fileUrl) //alias "?SaveFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHPA_W@Z";
    { return GetKCell()->SaveFile((LPTSTR)fileUrl.c_str());
 
    }
    int SaveFile() //alias "?SaveFile@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->SaveFile();
 
    }
    int SaveFileAs() //alias "?SaveFileAs@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->SaveFileAs();
 
    }
 
    int SetRunState(int state) // "?SetRunState@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHH@Z";
    { return GetKCell()->SetRunState(state);
 
    }
 
    int SetRunState() //alias "?SetRunState@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEHXZ";
    { return GetKCell()->SetRunState();
 
    }
 
    int SetReadOnly(bool bReadOnly) //alias "?SetReadOnly@IXCell@XCell@XOffice@XFrame@Hxsoft@@QAEH_N@Z";
    { return GetKCell()->SetReadOnly(bReadOnly);
 
    }
};