| 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 15 matching lines...) Expand all Loading... |
| 26 class IPWL_NoteHandler; | 26 class IPWL_NoteHandler; |
| 27 class IPWL_NoteItem; | 27 class IPWL_NoteItem; |
| 28 class IPWL_NoteNotify; | 28 class IPWL_NoteNotify; |
| 29 class IPopup_Note; | 29 class IPopup_Note; |
| 30 | 30 |
| 31 class IPWL_NoteNotify | 31 class IPWL_NoteNotify |
| 32 { | 32 { |
| 33 public: | 33 public: |
| 34 virtual ~IPWL_NoteNotify() { } | 34 virtual ~IPWL_NoteNotify() { } |
| 35 virtual void OnNoteMove(const
FX_RECT& rtWin) = 0; | 35 virtual void OnNoteMove(const
FX_RECT& rtWin) = 0; |
| 36 » virtual void» » » » » » OnNoteShow(FX_BO
OL bShow) = 0; | 36 » virtual void» » » » » » OnNoteShow(bool
bShow) = 0; |
| 37 » virtual void» » » » » » OnNoteActivate(F
X_BOOL bActive) = 0; | 37 » virtual void» » » » » » OnNoteActivate(b
ool 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(int3
2_t x, int32_t y) = 0; | 46 virtual void OnPopupMenu(int3
2_t x, int32_t y) = 0; |
| 47 virtual void OnPopupMenu(IPWL
_NoteItem* pItem, int32_t x, int32_t y) = 0; | 47 virtual void OnPopupMenu(IPWL
_NoteItem* pItem, int32_t x, int32_t y) = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 110 » virtual FX_BOOL»» » » » » OnLButtonDown(co
nst CPDF_Point & point, FX_DWORD nFlag); | 110 » virtual bool» » » » » » OnLButtonDown(co
nst CPDF_Point & point, FX_DWORD nFlag); |
| 111 » virtual FX_BOOL»» » » » » OnLButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); | 111 » virtual bool» » » » » » OnLButtonUp(cons
t CPDF_Point & point, FX_DWORD nFlag); |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 » FX_BOOL»» » » » » » » m_bMouse
Down; | 114 » bool» » » » » » » » m_bMouse
Down; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 class CPWL_Note_LBBox : public CPWL_Wnd | 117 class CPWL_Note_LBBox : public CPWL_Wnd |
| 118 { | 118 { |
| 119 public: | 119 public: |
| 120 CPWL_Note_LBBox(); | 120 CPWL_Note_LBBox(); |
| 121 virtual ~CPWL_Note_LBBox(); | 121 virtual ~CPWL_Note_LBBox(); |
| 122 | 122 |
| 123 protected: | 123 protected: |
| 124 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 124 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 class CPWL_Note_RBBox : public CPWL_Wnd | 127 class CPWL_Note_RBBox : public CPWL_Wnd |
| 128 { | 128 { |
| 129 public: | 129 public: |
| 130 CPWL_Note_RBBox(); | 130 CPWL_Note_RBBox(); |
| 131 virtual ~CPWL_Note_RBBox(); | 131 virtual ~CPWL_Note_RBBox(); |
| 132 | 132 |
| 133 protected: | 133 protected: |
| 134 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); | 134 virtual void DrawThisAppearan
ce(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 class CPWL_Note_Edit : public CPWL_Edit | 137 class CPWL_Note_Edit : public CPWL_Edit |
| 138 { | 138 { |
| 139 public: | 139 public: |
| 140 CPWL_Note_Edit(); | 140 CPWL_Note_Edit(); |
| 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(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(const FX
_WCHAR* csText); | 148 virtual void SetText(const FX
_WCHAR* csText); |
| 149 | 149 |
| 150 protected: | 150 protected: |
| 151 virtual void OnNotify(CPWL_Wn
d* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t 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 » bool» » » » » » » » m_bEnabl
eNotify; |
| 158 FX_FLOAT m_fOldIt
emHeight; | 158 FX_FLOAT m_fOldIt
emHeight; |
| 159 » FX_BOOL»» » » » » » » m_bSizeC
hanged; | 159 » 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; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 class CPWL_Note_Options : public CPWL_Wnd | 164 class CPWL_Note_Options : public CPWL_Wnd |
| 165 { | 165 { |
| 166 public: | 166 public: |
| 167 CPWL_Note_Options(); | 167 CPWL_Note_Options(); |
| 168 virtual ~CPWL_Note_Options(); | 168 virtual ~CPWL_Note_Options(); |
| 169 | 169 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 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, intptr_t wParam = 0, intptr_t 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 bool» » » » » » OnLButtonDown(co
nst CPDF_Point& point, FX_DWORD nFlag); |
| 192 | 192 |
| 193 » void» » » » » » » » SetEditF
ocus(FX_BOOL bLast); | 193 » void» » » » » » » » SetEditF
ocus(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 int32_t CountSubItems()
const; | 202 int32_t CountSubItems()
const; |
| 203 IPWL_NoteItem* GetSubItems(int3
2_t 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(bool bEnabled); |
| 207 » void» » » » » » » » EnableMo
dify(FX_BOOL bEnabled); | 207 » void» » » » » » » » EnableMo
dify(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 int32_t CountSubItems() const; | 231 virtual int32_t CountSubItems() const; |
| 232 virtual IPWL_NoteItem* GetSubItems(int32_t inde
x) 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 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 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 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
(int32_t nItemIndex); | 253 virtual void ResetSubjectName
(int32_t nItemIndex); |
| 254 » void» » » » » » » » EnableRe
ad(FX_BOOL bEnabled); | 254 » void» » » » » » » » EnableRe
ad(bool bEnabled); |
| 255 » void» » » » » » » » EnableMo
dify(FX_BOOL bEnabled); | 255 » void» » » » » » » » EnableMo
dify(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, intptr_t wParam = 0, intptr_t 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(bool bLast); |
| 271 void OnConten
tsValidate(); | 271 void OnConten
tsValidate(); |
| 272 | 272 |
| 273 void OnCreate
NoteItem(); | 273 void OnCreate
NoteItem(); |
| 274 | 274 |
| 275 protected: | 275 protected: |
| 276 void PopupNot
eItemMenu(const CPDF_Point& point); | 276 void PopupNot
eItemMenu(const CPDF_Point& point); |
| 277 | 277 |
| 278 virtual const CPWL_Note* GetNote() const; | 278 virtual const CPWL_Note* GetNote() const; |
| 279 virtual IPWL_NoteNotify* GetNoteNotify() const; | 279 virtual IPWL_NoteNotify* GetNoteNotify() const; |
| 280 | 280 |
| 281 protected: | 281 protected: |
| 282 CPWL_Label* m_pSubje
ct; | 282 CPWL_Label* m_pSubje
ct; |
| 283 CPWL_Label* m_pDateT
ime; | 283 CPWL_Label* m_pDateT
ime; |
| 284 CPWL_Note_Contents* m_pContents; | 284 CPWL_Note_Contents* m_pContents; |
| 285 | 285 |
| 286 private: | 286 private: |
| 287 void* m_pPriva
teData; | 287 void* m_pPriva
teData; |
| 288 FX_SYSTEMTIME m_dtNote; | 288 FX_SYSTEMTIME m_dtNote; |
| 289 CFX_WideString m_sAuthor; | 289 CFX_WideString m_sAuthor; |
| 290 | 290 |
| 291 FX_FLOAT m_fOldIt
emHeight; | 291 FX_FLOAT m_fOldIt
emHeight; |
| 292 » FX_BOOL»» » » » » » » m_bSizeC
hanged; | 292 » bool» » » » » » » » m_bSizeC
hanged; |
| 293 » FX_BOOL»» » » » » » » m_bAllow
Modify; | 293 » bool» » » » » » » » m_bAllow
Modify; |
| 294 }; | 294 }; |
| 295 | 295 |
| 296 class PWL_CLASS CPWL_Note : public CPWL_NoteItem | 296 class PWL_CLASS CPWL_Note : public CPWL_NoteItem |
| 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
(int32_t nItemIndex){} | 307 virtual void ResetSubjectName
(int32_t nItemIndex){} |
| 308 » virtual FX_BOOL»» » » » » IsTopItem() cons
t {return TRUE;} | 308 » virtual 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(bool bEnabled); |
| 315 void SetIconT
ype(int32_t 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(bool bEnabled); |
| 318 » void» » » » » » » » EnableMo
dify(FX_BOOL bEnabled); | 318 » void» » » » » » » » EnableMo
dify(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 int32_t NoteHitTest(cons
t 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 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 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 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, intptr_t wParam = 0, intptr_t 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 » bool» » » » » » » » ResetScr
ollBar(); |
| 340 void RePosNot
eChildren(); | 340 void RePosNot
eChildren(); |
| 341 » FX_BOOL»» » » » » » » ScrollBa
rShouldVisible(); | 341 » 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 » 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 » 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 |