LiFan
9 天以前 63eebabbfee1bc84850b36967ecac5116a28b73f
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
#pragma once
 
#include "xbase.hpp"
#include "xnative.hpp"
#include "kobject/knode.hpp"
#include "kobject/kpage.hpp"
 
using knode = Hxsoft::XFrame::IXNode ;
using kwin = Hxsoft::XFrame::IXFWin ;
using kpage = Hxsoft::XFrame::IXPage ;
using kcontrol = Hxsoft::XFrame::IXFControl;
using KXMLDOMElement = Hxsoft::XFrame::KXMLDOMElement;
 
class xpage : public xnative
{
public:
    xpage(void* impl) :xnative(impl) {}
public:
    kpage* getKPage()
    {
        return (kpage*)this->GetNativePtr();
    }
public:
    bool Load(LPCTSTR pStrXPageFile)
    {
        return getKPage()->Load(pStrXPageFile);
    }
 
    bool Load(KXMLDOMElement pElement)
    {
        return getKPage()->Load(pElement);
    }
 
    bool LoadXPage(LPCTSTR pServer,LPCTSTR pStrUrl)
    {
        return getKPage()->LoadXPage(pServer,pStrUrl);
    }
    //bool LoadXPage(ITrans *pTrans,LPCTSTR pStrUrl);
    bool LoadXPage(LPCTSTR pStrPage)
    {
        return getKPage()->LoadXPage(pStrPage);
    }
public:
    kcontrol * GetControl()
    {
         return getKPage()->GetControl();
    }
    kwin *     GetWin()
    {
        return getKPage()->GetWin();
    }
public:
    LPCTSTR GetStrLocal()
    {
        return getKPage()->GetStrLocal();
    }
    LPCTSTR GetUrl()
    {
        return getKPage()->GetUrl();
    }
    LPCTSTR GetWkUrl()
    {
        return getKPage()->GetWkUrl();
    }
public:
    int SetStrLocal(LPCTSTR pStr)
    {
        return getKPage()->SetStrLocal(pStr);
    }
    int SetUrl(LPCTSTR pStr)
    {
        return getKPage()->SetUrl(pStr);
    }
    int SetWkUrl(LPCTSTR pStr)
    {
        return getKPage()->SetWkUrl(pStr);
    }
public:
    int SetXNode(knode * pNode,bool bReCeate = true)
    {
        return getKPage()->SetXNode(pNode,bReCeate);
    }
    int SetElement(knode * pNode,bool bReCeate = false)
    {
        return getKPage()->SetElement(pNode,bReCeate);
    }
public:
    int RemoveControl()
    {
        return getKPage()->RemoveControl();
    }
    int CreateNodeControl(HWND hWnd)
    {
        return getKPage()->CreateNodeControl(hWnd);
    }
public:
    int RemoveChild()
    {
        return getKPage()->RemoveChild();
    }
    int RemoveChild(knode * pParentNode)
    {
        return getKPage()->RemoveChild(pParentNode);
    }
public:
    static knode * CreateNode(KXMLDOMElement * pElement,bool setClassName = true)
    {
        return Hxsoft::XFrame::IXPage::CreateNode(pElement,setClassName);
    }
public:
    static int TransToControl(knode * pNode,LPCTSTR pControlClass)
    {
        return Hxsoft::XFrame::IXPage::TransToControl(pNode,pControlClass);
    }
public:
    BOOL IsControlNode(knode *pNode)
    {
        return getKPage()->IsControlNode(pNode);
    }
public:
    DWORD GetLayerFlow()
    {
        return getKPage()->GetLayerFlow();
    }
    int SetLayerFlow(DWORD dwLayerFlow)
    {
        return getKPage()->SetLayerFlow(dwLayerFlow);
    }
    DWORD GetLayerFlow(knode * pNode)
    {
        return getKPage()->GetLayerFlow(pNode);
    }
    int SetLayerFlow(knode * pNode,DWORD dwLayerFlow)
    {
        return getKPage()->SetLayerFlow(pNode,dwLayerFlow);
    }
public:
    //draw 
    int DrawNode(HDC hDC)
    {
        return getKPage()->DrawNode(hDC);
    }
};