OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 7 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 8 #define FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
9 | 9 |
10 #include "PWL_Button.h" | 10 #include "PWL_Button.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 virtual void OnNoteShow(FX_BO
OL bShow) = 0; | 36 virtual void OnNoteShow(FX_BO
OL bShow) = 0; |
37 virtual void OnNoteActivate(F
X_BOOL bActive) = 0; | 37 virtual void OnNoteActivate(F
X_BOOL bActive) = 0; |
38 virtual void OnNoteClose() =
0; | 38 virtual void OnNoteClose() =
0; |
39 virtual void OnItemCreate(IPW
L_NoteItem* pItem) = 0; | 39 virtual void OnItemCreate(IPW
L_NoteItem* pItem) = 0; |
40 virtual void OnItemDelete(IPW
L_NoteItem* pItem) = 0; | 40 virtual void OnItemDelete(IPW
L_NoteItem* pItem) = 0; |
41 virtual void OnSetAuthorName(
IPWL_NoteItem* pItem) = 0; | 41 virtual void OnSetAuthorName(
IPWL_NoteItem* pItem) = 0; |
42 virtual void OnSetBkColor(IPW
L_NoteItem* pItem) = 0; | 42 virtual void OnSetBkColor(IPW
L_NoteItem* pItem) = 0; |
43 virtual void OnSetContents(IP
WL_NoteItem* pItem) = 0; | 43 virtual void OnSetContents(IP
WL_NoteItem* pItem) = 0; |
44 virtual void OnSetDateTime(IP
WL_NoteItem* pItem) = 0; | 44 virtual void OnSetDateTime(IP
WL_NoteItem* pItem) = 0; |
45 virtual void OnSetSubjectName
(IPWL_NoteItem* pItem) = 0; | 45 virtual void OnSetSubjectName
(IPWL_NoteItem* pItem) = 0; |
46 » virtual void» » » » » » OnPopupMenu(FX_I
NT32 x, FX_INT32 y) = 0; | 46 » virtual void» » » » » » OnPopupMenu(int3
2_t x, int32_t y) = 0; |
47 » virtual void» » » » » » OnPopupMenu(IPWL
_NoteItem* pItem, FX_INT32 x, FX_INT32 y) = 0; | 47 » virtual void» » » » » » OnPopupMenu(IPWL
_NoteItem* pItem, int32_t x, int32_t y) = 0; |
48 }; | 48 }; |
49 | 49 |
50 class IPWL_NoteHandler | 50 class IPWL_NoteHandler |
51 { | 51 { |
52 public: | 52 public: |
53 virtual ~IPWL_NoteHandler() { } | 53 virtual ~IPWL_NoteHandler() { } |
54 virtual void OnNoteColorChang
ed(const CPWL_Color& color) = 0; | 54 virtual void OnNoteColorChang
ed(const CPWL_Color& color) = 0; |
55 }; | 55 }; |
56 | 56 |
57 class IPWL_NoteItem | 57 class IPWL_NoteItem |
58 { | 58 { |
59 public: | 59 public: |
60 virtual ~IPWL_NoteItem() { } | 60 virtual ~IPWL_NoteItem() { } |
61 virtual void SetPrivateData(v
oid* pData) = 0; | 61 virtual void SetPrivateData(v
oid* pData) = 0; |
62 virtual void SetBkColor(const
CPWL_Color& color) = 0; | 62 virtual void SetBkColor(const
CPWL_Color& color) = 0; |
63 virtual void SetSubjectName(c
onst CFX_WideString& sName) = 0; | 63 virtual void SetSubjectName(c
onst CFX_WideString& sName) = 0; |
64 virtual void SetAuthorName(co
nst CFX_WideString& sName) = 0; | 64 virtual void SetAuthorName(co
nst CFX_WideString& sName) = 0; |
65 virtual void SetDateTime(FX_S
YSTEMTIME time) = 0; | 65 virtual void SetDateTime(FX_S
YSTEMTIME time) = 0; |
66 virtual void SetContents(cons
t CFX_WideString& sContents) = 0; | 66 virtual void SetContents(cons
t CFX_WideString& sContents) = 0; |
67 | 67 |
68 virtual IPWL_NoteItem* CreateSubItem() = 0; | 68 virtual IPWL_NoteItem* CreateSubItem() = 0; |
69 » virtual FX_INT32» » » » » CountSubItems()
const = 0; | 69 » virtual int32_t»» » » » CountSubItems() const =
0; |
70 » virtual IPWL_NoteItem*» » » » GetSubItems(FX_INT32 ind
ex) const = 0; | 70 » virtual IPWL_NoteItem*» » » » GetSubItems(int32_t inde
x) const = 0; |
71 virtual void DeleteSubItem(IP
WL_NoteItem* pNoteItem) = 0; | 71 virtual void DeleteSubItem(IP
WL_NoteItem* pNoteItem) = 0; |
72 virtual void SetFocus() = 0; | 72 virtual void SetFocus() = 0; |
73 | 73 |
74 virtual IPWL_NoteItem* GetParentItem() const =
0; | 74 virtual IPWL_NoteItem* GetParentItem() const =
0; |
75 virtual void* GetPrivateData()
const = 0; | 75 virtual void* GetPrivateData()
const = 0; |
76 virtual CFX_WideString GetAuthorName() const =
0; | 76 virtual CFX_WideString GetAuthorName() const =
0; |
77 virtual CPWL_Color GetBkColor() con
st = 0; | 77 virtual CPWL_Color GetBkColor() con
st = 0; |
78 virtual CFX_WideString GetContents() const = 0; | 78 virtual CFX_WideString GetContents() const = 0; |
79 virtual FX_SYSTEMTIME GetDateTime() const = 0; | 79 virtual FX_SYSTEMTIME GetDateTime() const = 0; |
80 virtual CFX_WideString GetSubjectName() const =
0; | 80 virtual CFX_WideString GetSubjectName() const =
0; |
81 | 81 |
82 virtual CPWL_Edit* GetEdit() const
= 0; | 82 virtual CPWL_Edit* GetEdit() const
= 0; |
83 }; | 83 }; |
84 | 84 |
85 class PWL_CLASS CPWL_Note_Icon : public CPWL_Wnd | 85 class PWL_CLASS CPWL_Note_Icon : public CPWL_Wnd |
86 { | 86 { |
87 public: | 87 public: |
88 CPWL_Note_Icon(); | 88 CPWL_Note_Icon(); |
89 virtual ~CPWL_Note_Icon(); | 89 virtual ~CPWL_Note_Icon(); |
90 | 90 |
91 » void» » » » » » » » SetIconT
ype(FX_INT32 nType); | 91 » void» » » » » » » » SetIconT
ype(int32_t nType); |
92 | 92 |
93 public: | 93 public: |
94 | 94 |
95 protected: | 95 protected: |
96 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 96 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); |
97 | 97 |
98 private: | 98 private: |
99 » FX_INT32» » » » » » » m_nType; | 99 » int32_t»» » » » » » m_nType; |
100 }; | 100 }; |
101 | 101 |
102 class CPWL_Note_CloseBox : public CPWL_Button | 102 class CPWL_Note_CloseBox : public CPWL_Button |
103 { | 103 { |
104 public: | 104 public: |
105 CPWL_Note_CloseBox(); | 105 CPWL_Note_CloseBox(); |
106 virtual ~CPWL_Note_CloseBox(); | 106 virtual ~CPWL_Note_CloseBox(); |
107 | 107 |
108 protected: | 108 protected: |
109 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 109 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual ~CPWL_Note_Edit(); | 141 virtual ~CPWL_Note_Edit(); |
142 | 142 |
143 void EnableNo
tify(FX_BOOL bEnable) {m_bEnableNotify = bEnable;} | 143 void EnableNo
tify(FX_BOOL bEnable) {m_bEnableNotify = bEnable;} |
144 virtual FX_FLOAT GetItemHeight(FX
_FLOAT fLimitWidth); | 144 virtual FX_FLOAT GetItemHeight(FX
_FLOAT fLimitWidth); |
145 FX_FLOAT GetItemL
eftMargin(); | 145 FX_FLOAT GetItemL
eftMargin(); |
146 FX_FLOAT GetItemR
ightMargin(); | 146 FX_FLOAT GetItemR
ightMargin(); |
147 | 147 |
148 virtual void SetText(FX_LPCWS
TR csText); | 148 virtual void SetText(FX_LPCWS
TR csText); |
149 | 149 |
150 protected: | 150 protected: |
151 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); | 151 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); |
152 virtual void RePosChildWnd(); | 152 virtual void RePosChildWnd(); |
153 virtual void OnSetFocus(); | 153 virtual void OnSetFocus(); |
154 virtual void OnKillFocus(); | 154 virtual void OnKillFocus(); |
155 | 155 |
156 private: | 156 private: |
157 FX_BOOL m_bEnabl
eNotify; | 157 FX_BOOL m_bEnabl
eNotify; |
158 FX_FLOAT m_fOldIt
emHeight; | 158 FX_FLOAT m_fOldIt
emHeight; |
159 FX_BOOL m_bSizeC
hanged; | 159 FX_BOOL m_bSizeC
hanged; |
160 FX_FLOAT m_fOldMi
n; | 160 FX_FLOAT m_fOldMi
n; |
161 FX_FLOAT m_fOldMa
x; | 161 FX_FLOAT m_fOldMa
x; |
(...skipping 18 matching lines...) Expand all Loading... |
180 CPWL_Label* m_pText; | 180 CPWL_Label* m_pText; |
181 }; | 181 }; |
182 | 182 |
183 class CPWL_Note_Contents : public CPWL_ListCtrl | 183 class CPWL_Note_Contents : public CPWL_ListCtrl |
184 { | 184 { |
185 public: | 185 public: |
186 CPWL_Note_Contents(); | 186 CPWL_Note_Contents(); |
187 virtual ~CPWL_Note_Contents(); | 187 virtual ~CPWL_Note_Contents(); |
188 | 188 |
189 virtual CFX_ByteString GetClassName() const; | 189 virtual CFX_ByteString GetClassName() const; |
190 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); | 190 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); |
191 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point& point, FX_DWORD nFlag); | 191 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point& point, FX_DWORD nFlag); |
192 | 192 |
193 void SetEditF
ocus(FX_BOOL bLast); | 193 void SetEditF
ocus(FX_BOOL bLast); |
194 CPWL_Edit* GetEdit(
) const; | 194 CPWL_Edit* GetEdit(
) const; |
195 | 195 |
196 public: | 196 public: |
197 void SetText(
const CFX_WideString& sText); | 197 void SetText(
const CFX_WideString& sText); |
198 CFX_WideString GetText() const; | 198 CFX_WideString GetText() const; |
199 | 199 |
200 CPWL_NoteItem* CreateSubItem(); | 200 CPWL_NoteItem* CreateSubItem(); |
201 void DeleteSu
bItem(IPWL_NoteItem* pNoteItem); | 201 void DeleteSu
bItem(IPWL_NoteItem* pNoteItem); |
202 » FX_INT32» » » » » » » CountSub
Items() const; | 202 » int32_t»» » » » » » CountSubItems()
const; |
203 » IPWL_NoteItem*» » » » » » GetSubItems(FX_I
NT32 index) const; | 203 » IPWL_NoteItem*» » » » » » GetSubItems(int3
2_t index) const; |
204 | 204 |
205 virtual IPWL_NoteItem* GetHitNoteItem(const CPD
F_Point& point); | 205 virtual IPWL_NoteItem* GetHitNoteItem(const CPD
F_Point& point); |
206 void EnableRe
ad(FX_BOOL bEnabled); | 206 void EnableRe
ad(FX_BOOL bEnabled); |
207 void EnableMo
dify(FX_BOOL bEnabled); | 207 void EnableMo
dify(FX_BOOL bEnabled); |
208 | 208 |
209 protected: | 209 protected: |
210 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); | 210 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); |
211 | 211 |
212 private: | 212 private: |
213 CPWL_Note_Edit* m_pEdit; | 213 CPWL_Note_Edit* m_pEdit; |
214 }; | 214 }; |
215 | 215 |
216 class PWL_CLASS CPWL_NoteItem : public CPWL_Wnd, public IPWL_NoteItem | 216 class PWL_CLASS CPWL_NoteItem : public CPWL_Wnd, public IPWL_NoteItem |
217 { | 217 { |
218 public: | 218 public: |
219 CPWL_NoteItem(); | 219 CPWL_NoteItem(); |
220 virtual ~CPWL_NoteItem(); | 220 virtual ~CPWL_NoteItem(); |
221 | 221 |
222 public: | 222 public: |
223 virtual void SetPrivateData(v
oid* pData); | 223 virtual void SetPrivateData(v
oid* pData); |
224 virtual void SetBkColor(const
CPWL_Color& color); | 224 virtual void SetBkColor(const
CPWL_Color& color); |
225 virtual void SetSubjectName(c
onst CFX_WideString& sName); | 225 virtual void SetSubjectName(c
onst CFX_WideString& sName); |
226 virtual void SetAuthorName(co
nst CFX_WideString& sName); | 226 virtual void SetAuthorName(co
nst CFX_WideString& sName); |
227 virtual void SetDateTime(FX_S
YSTEMTIME time); | 227 virtual void SetDateTime(FX_S
YSTEMTIME time); |
228 virtual void SetContents(cons
t CFX_WideString& sContents); | 228 virtual void SetContents(cons
t CFX_WideString& sContents); |
229 | 229 |
230 virtual IPWL_NoteItem* CreateSubItem(); | 230 virtual IPWL_NoteItem* CreateSubItem(); |
231 » virtual FX_INT32» » » » » CountSubItems()
const; | 231 » virtual int32_t»» » » » CountSubItems() const; |
232 » virtual IPWL_NoteItem*» » » » GetSubItems(FX_INT32 ind
ex) const; | 232 » virtual IPWL_NoteItem*» » » » GetSubItems(int32_t inde
x) const; |
233 virtual void DeleteSubItem(IP
WL_NoteItem* pNoteItem); | 233 virtual void DeleteSubItem(IP
WL_NoteItem* pNoteItem); |
234 virtual void SetFocus(){SetNo
teFocus(FALSE);} | 234 virtual void SetFocus(){SetNo
teFocus(FALSE);} |
235 | 235 |
236 virtual IPWL_NoteItem* GetParentItem() const; | 236 virtual IPWL_NoteItem* GetParentItem() const; |
237 virtual void* GetPrivateData()
const; | 237 virtual void* GetPrivateData()
const; |
238 virtual CFX_WideString GetAuthorName() const; | 238 virtual CFX_WideString GetAuthorName() const; |
239 virtual CPWL_Color GetBkColor() con
st; | 239 virtual CPWL_Color GetBkColor() con
st; |
240 virtual CFX_WideString GetContents() const; | 240 virtual CFX_WideString GetContents() const; |
241 virtual FX_SYSTEMTIME GetDateTime() const; | 241 virtual FX_SYSTEMTIME GetDateTime() const; |
242 virtual CFX_WideString GetSubjectName() const; | 242 virtual CFX_WideString GetSubjectName() const; |
243 virtual FX_BOOL IsTopItem() cons
t { return FALSE;} | 243 virtual FX_BOOL IsTopItem() cons
t { return FALSE;} |
244 virtual CPWL_Edit* GetEdit() const; | 244 virtual CPWL_Edit* GetEdit() const; |
245 | 245 |
246 public: | 246 public: |
247 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point& point, FX_DWORD nFlag); | 247 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point& point, FX_DWORD nFlag); |
248 virtual FX_BOOL OnRButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); | 248 virtual FX_BOOL OnRButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); |
249 virtual CFX_ByteString GetClassName() const; | 249 virtual CFX_ByteString GetClassName() const; |
250 virtual IPWL_NoteItem* GetHitNoteItem(const CPD
F_Point& point); | 250 virtual IPWL_NoteItem* GetHitNoteItem(const CPD
F_Point& point); |
251 virtual IPWL_NoteItem* GetFocusedNoteItem() con
st; | 251 virtual IPWL_NoteItem* GetFocusedNoteItem() con
st; |
252 | 252 |
253 » virtual void» » » » » » ResetSubjectName
(FX_INT32 nItemIndex); | 253 » virtual void» » » » » » ResetSubjectName
(int32_t nItemIndex); |
254 void EnableRe
ad(FX_BOOL bEnabled); | 254 void EnableRe
ad(FX_BOOL bEnabled); |
255 void EnableMo
dify(FX_BOOL bEnabled); | 255 void EnableMo
dify(FX_BOOL bEnabled); |
256 | 256 |
257 protected: | 257 protected: |
258 virtual void RePosChildWnd(); | 258 virtual void RePosChildWnd(); |
259 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); | 259 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); |
260 | 260 |
261 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); | 261 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); |
262 | 262 |
263 public: | 263 public: |
264 virtual FX_FLOAT GetItemHeight(FX
_FLOAT fLimitWidth); | 264 virtual FX_FLOAT GetItemHeight(FX
_FLOAT fLimitWidth); |
265 virtual FX_FLOAT GetItemLeftMargi
n(); | 265 virtual FX_FLOAT GetItemLeftMargi
n(); |
266 virtual FX_FLOAT GetItemRightMarg
in(); | 266 virtual FX_FLOAT GetItemRightMarg
in(); |
267 CPWL_NoteItem* CreateNoteItem()
; | 267 CPWL_NoteItem* CreateNoteItem()
; |
268 CPWL_NoteItem* GetParentNoteIte
m() const; | 268 CPWL_NoteItem* GetParentNoteIte
m() const; |
269 | 269 |
270 void SetNoteF
ocus(FX_BOOL bLast); | 270 void SetNoteF
ocus(FX_BOOL bLast); |
271 void OnConten
tsValidate(); | 271 void OnConten
tsValidate(); |
(...skipping 25 matching lines...) Expand all Loading... |
297 { | 297 { |
298 public: | 298 public: |
299 CPWL_Note(IPopup_Note* pPopupNote, IPWL_NoteNotify* pNoteNotify, IPWL_No
teHandler* pNoteHandler); | 299 CPWL_Note(IPopup_Note* pPopupNote, IPWL_NoteNotify* pNoteNotify, IPWL_No
teHandler* pNoteHandler); |
300 virtual ~CPWL_Note(); | 300 virtual ~CPWL_Note(); |
301 | 301 |
302 public: | 302 public: |
303 virtual void SetSubjectName(c
onst CFX_WideString& sName); | 303 virtual void SetSubjectName(c
onst CFX_WideString& sName); |
304 virtual void SetAuthorName(co
nst CFX_WideString& sName); | 304 virtual void SetAuthorName(co
nst CFX_WideString& sName); |
305 virtual CFX_WideString GetAuthorName() const; | 305 virtual CFX_WideString GetAuthorName() const; |
306 virtual void SetBkColor(const
CPWL_Color& color); | 306 virtual void SetBkColor(const
CPWL_Color& color); |
307 » virtual void» » » » » » ResetSubjectName
(FX_INT32 nItemIndex){} | 307 » virtual void» » » » » » ResetSubjectName
(int32_t nItemIndex){} |
308 virtual FX_BOOL IsTopItem() cons
t {return TRUE;} | 308 virtual FX_BOOL IsTopItem() cons
t {return TRUE;} |
309 virtual const CPWL_Note* GetNote() const; | 309 virtual const CPWL_Note* GetNote() const; |
310 virtual IPWL_NoteNotify* GetNoteNotify() const; | 310 virtual IPWL_NoteNotify* GetNoteNotify() const; |
311 | 311 |
312 public: | 312 public: |
313 IPWL_NoteItem* Reply(); | 313 IPWL_NoteItem* Reply(); |
314 void EnableNo
tify(FX_BOOL bEnabled); | 314 void EnableNo
tify(FX_BOOL bEnabled); |
315 » void» » » » » » » » SetIconT
ype(FX_INT32 nType); | 315 » void» » » » » » » » SetIconT
ype(int32_t nType); |
316 void SetOptio
nsText(const CFX_WideString& sText); | 316 void SetOptio
nsText(const CFX_WideString& sText); |
317 void EnableRe
ad(FX_BOOL bEnabled); | 317 void EnableRe
ad(FX_BOOL bEnabled); |
318 void EnableMo
dify(FX_BOOL bEnabled); | 318 void EnableMo
dify(FX_BOOL bEnabled); |
319 | 319 |
320 CFX_WideString GetReplyString()
const; | 320 CFX_WideString GetReplyString()
const; |
321 void SetReply
String(const CFX_WideString& string); | 321 void SetReply
String(const CFX_WideString& string); |
322 | 322 |
323 //0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-
close / 5-options | 323 //0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-
close / 5-options |
324 » FX_INT32» » » » » » » NoteHitT
est(const CPDF_Point& point) const; | 324 » int32_t»» » » » » » NoteHitTest(cons
t CPDF_Point& point) const; |
325 CPDF_Rect GetCapti
onRect() const {return m_rcCaption;} | 325 CPDF_Rect GetCapti
onRect() const {return m_rcCaption;} |
326 IPopup_Note* GetPopupNote() c
onst {return m_pPopupNote;} | 326 IPopup_Note* GetPopupNote() c
onst {return m_pPopupNote;} |
327 | 327 |
328 public: | 328 public: |
329 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point & point, FX_DWORD nFlag); | 329 virtual FX_BOOL OnLButtonDown(co
nst CPDF_Point & point, FX_DWORD nFlag); |
330 virtual FX_BOOL OnRButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); | 330 virtual FX_BOOL OnRButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); |
331 virtual FX_BOOL OnMouseWheel(sho
rt zDelta, const CPDF_Point & point, FX_DWORD nFlag); | 331 virtual FX_BOOL OnMouseWheel(sho
rt zDelta, const CPDF_Point & point, FX_DWORD nFlag); |
332 | 332 |
333 protected: | 333 protected: |
334 virtual void RePosChildWnd(); | 334 virtual void RePosChildWnd(); |
335 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); | 335 virtual void CreateChildWnd(c
onst PWL_CREATEPARAM & cp); |
336 | 336 |
337 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, FX_INTPTR wParam = 0, FX_INTPTR lParam = 0); | 337 » virtual void» » » » » » OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0); |
338 | 338 |
339 FX_BOOL ResetScr
ollBar(); | 339 FX_BOOL ResetScr
ollBar(); |
340 void RePosNot
eChildren(); | 340 void RePosNot
eChildren(); |
341 FX_BOOL ScrollBa
rShouldVisible(); | 341 FX_BOOL ScrollBa
rShouldVisible(); |
342 | 342 |
343 private: | 343 private: |
344 CPWL_Label* m_pAutho
r; | 344 CPWL_Label* m_pAutho
r; |
345 CPWL_Note_Icon* m_pIcon; | 345 CPWL_Note_Icon* m_pIcon; |
346 CPWL_Note_CloseBox* m_pCloseBox; | 346 CPWL_Note_CloseBox* m_pCloseBox; |
347 CPWL_Note_LBBox* m_pLBBox; | 347 CPWL_Note_LBBox* m_pLBBox; |
348 CPWL_Note_RBBox* m_pRBBox; | 348 CPWL_Note_RBBox* m_pRBBox; |
349 CPWL_ScrollBar* m_pContentsBar; | 349 CPWL_ScrollBar* m_pContentsBar; |
350 CPWL_Note_Options* m_pOptions; | 350 CPWL_Note_Options* m_pOptions; |
351 IPWL_NoteNotify* m_pNoteNotify; | 351 IPWL_NoteNotify* m_pNoteNotify; |
352 FX_BOOL m_bResiz
ing; | 352 FX_BOOL m_bResiz
ing; |
353 PWL_SCROLL_INFO m_OldScrollInfo; | 353 PWL_SCROLL_INFO m_OldScrollInfo; |
354 CPDF_Rect m_rcCapt
ion; | 354 CPDF_Rect m_rcCapt
ion; |
355 FX_BOOL m_bEnalb
leNotify; | 355 FX_BOOL m_bEnalb
leNotify; |
356 IPopup_Note* m_pPopupNote; | 356 IPopup_Note* m_pPopupNote; |
357 CFX_WideString m_sReplyString; | 357 CFX_WideString m_sReplyString; |
358 }; | 358 }; |
359 | 359 |
360 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ | 360 #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_ |
OLD | NEW |