xj qian
2024-06-27 51faca7cff4ce6b848fcbd8f7fe881f6fc59b4f3
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
#pragma once
 
#include "kcontrol.hpp"
namespace Hxsoft {    namespace XFrame {    namespace XOffice {    namespace XCell{
 
class  IXCell : public IXFControl
{
public:
    int GetRow();
    int GetColumn();
 
    int GetAnchorRow();
    int GetAnchorCol();
 
    int SetRowColumn(int ARow, int ACol);
    int SetAnchorRowColumn(int ARow, int ACol);
 
    int GetRowCount();
    int SetRowCount(int columnCount);
 
    int GetColumnCount();
    int SetColumnCount(int columnCount);
 
    LPCTSTR GetItemString(int ARow, int ACol);
    int SetItemString(int ARow, int ACol, LPTSTR pText);
    LPCTSTR GetItemDisplayString(int ARow, int ACol);
    int SetItemDisplayString(int ARow, int ACol, LPTSTR pText);
 
    int SetBorder(int nBorder);
 
    int Copy();
    int Cut();
    int Paste();
 
    int GetColumnWidth(int nCol);
    bool SetColumnWidth(int nCol, int nWidth);
    int GetRowHeight(int nRow);
    bool SetRowHeight(int nRow, int nHeight);
public:
    int SetRowSelectorWidth(int nWidth);
    int ResetRowSelector();
    int GetRowSelectorWidth();
    int GetRowSelectorDefaultWidth();
 
    int SetColHeaderHeight(int nHeight);
    int GetColHeaderDefaultHeight();
    int ResetColHeaderHeight();
    int GetColHeaderHeight();
public:
    LPTSTR GetCellProps(int nRow, int nCol); //µÃµ½µ¥ÔªÕûÌåXMLÊôÐÔ
    int SetCellProps(int nRow, int nCol, LPCTSTR pXmlProp); //µÃµ½µ¥ÔªÕûÌåXMLÊôÐÔ
    LPTSTR GetCellProp(int nRow, int nCol, LPCTSTR pItem); //µÃµ½µ¥ÔªÊôÐÔ
    int SetCellProp(int nRow, int nCol, LPCTSTR pItem, LPCTSTR pProp);//µÃµ½µ¥ÔªÊôÐÔ
public:
    LPTSTR GetHtml();
    LPTSTR GetData();
public:
    void* GetSheetSvr();
public:
    void        SetSchmaSource(LPCTSTR pSchema);
    LPCTSTR        GetSchemaSource();
    void        SetSchmaString(LPCTSTR pSchemaStr);
    LPCTSTR        GetSchemaString();
public:
    int            GetSpanRight(int ARow, int ACol);
    int            GetSpanBottom(int ARow, int ACol);
    int            GetSpanLeft(int ARow, int ACol);
    int            GetSpanTop(int ARow, int ACol);
    bool        IsSpanCell(int ARow, int ACol);
public:
    int            GetValidRow();
    int            GetValidCol(int ARow);
    int            GetValidRowCol(int& ARow, int& ACol);
    int            GetValidCol();
public:
    int            LoadTemplate(KXMLDOMDocument  pDoc, LPTSTR strState);
    int            LoadTemplate(KXMLDOMElement pElement, LPTSTR strState);
public:
    int SaveFileAs();
    int SaveFile();
    int SaveFile(wchar_t* fileName);
public:
    int OpenFile(wchar_t* fileName);
    int OpenFile();
public:
    wchar_t* m_pFileName;
public:
    int SetReadOnly(bool bReadOnly);
    int SetRunState();
    int SetRunState(int runstate);
public:
    void SetEditUpperMode(bool upper);
    bool GetEditUpperMode();
public:
    LPCTSTR GetSortColumns();
    void SortData(LPCTSTR sortColumn, LPTSTR strType, bool bAsc);
};
}}}}