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 #include "../../include/pdfwindow/PDFWindow.h" | 7 #include "../../include/pdfwindow/PDFWindow.h" |
8 #include "../../include/pdfwindow/PWL_Wnd.h" | 8 #include "../../include/pdfwindow/PWL_Wnd.h" |
9 #include "../../include/pdfwindow/PWL_Button.h" | 9 #include "../../include/pdfwindow/PWL_Button.h" |
10 #include "../../include/pdfwindow/PWL_EditCtrl.h" | 10 #include "../../include/pdfwindow/PWL_EditCtrl.h" |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 172 |
173 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pGrand; | 173 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pGrand; |
174 | 174 |
175 pNoteItem->OnContentsValidate(); | 175 pNoteItem->OnContentsValidate(); |
176 } | 176 } |
177 } | 177 } |
178 | 178 |
179 CPWL_Edit::OnKillFocus(); | 179 CPWL_Edit::OnKillFocus(); |
180 } | 180 } |
181 | 181 |
182 void CPWL_Note_Edit::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, FX_INTPTR wParam, FX
_INTPTR lParam) | 182 void CPWL_Note_Edit::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam, int
ptr_t lParam) |
183 { | 183 { |
184 if (m_bEnableNotify) | 184 if (m_bEnableNotify) |
185 { | 185 { |
186 if (wParam == SBT_VSCROLL) | 186 if (wParam == SBT_VSCROLL) |
187 { | 187 { |
188 switch (msg) | 188 switch (msg) |
189 { | 189 { |
190 case PNM_SETSCROLLINFO: | 190 case PNM_SETSCROLLINFO: |
191 if (PWL_SCROLL_INFO* pInfo = (PWL_SCROLL_INFO*)l
Param) | 191 if (PWL_SCROLL_INFO* pInfo = (PWL_SCROLL_INFO*)l
Param) |
192 { | 192 { |
(...skipping 24 matching lines...) Expand all Loading... |
217 case PNM_SETCARETINFO: | 217 case PNM_SETCARETINFO: |
218 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) | 218 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) |
219 { | 219 { |
220 PWL_CARET_INFO newInfo = *pInfo; | 220 PWL_CARET_INFO newInfo = *pInfo; |
221 newInfo.bVisible = TRUE; | 221 newInfo.bVisible = TRUE; |
222 newInfo.ptHead = this->ChildToParent(pInfo->ptHe
ad); | 222 newInfo.ptHead = this->ChildToParent(pInfo->ptHe
ad); |
223 newInfo.ptFoot = this->ChildToParent(pInfo->ptFo
ot); | 223 newInfo.ptFoot = this->ChildToParent(pInfo->ptFo
ot); |
224 | 224 |
225 if (CPWL_Wnd * pParent = this->GetParentWindow()
) | 225 if (CPWL_Wnd * pParent = this->GetParentWindow()
) |
226 { | 226 { |
227 » » » » » pParent->OnNotify(this, PNM_SETCARETINFO
, (FX_INTPTR)&newInfo, 0); | 227 » » » » » pParent->OnNotify(this, PNM_SETCARETINFO
, (intptr_t)&newInfo, 0); |
228 } | 228 } |
229 } | 229 } |
230 break; | 230 break; |
231 } | 231 } |
232 } | 232 } |
233 } | 233 } |
234 | 234 |
235 FX_FLOAT CPWL_Note_Edit::GetItemHeight(FX_FLOAT fLimitWidth) | 235 FX_FLOAT CPWL_Note_Edit::GetItemHeight(FX_FLOAT fLimitWidth) |
236 { | 236 { |
237 if (fLimitWidth > 0) | 237 if (fLimitWidth > 0) |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 /* --------------------------------- CPWL_Note_Icon ----------------------------
------ */ | 333 /* --------------------------------- CPWL_Note_Icon ----------------------------
------ */ |
334 | 334 |
335 CPWL_Note_Icon::CPWL_Note_Icon() : m_nType(0) | 335 CPWL_Note_Icon::CPWL_Note_Icon() : m_nType(0) |
336 { | 336 { |
337 } | 337 } |
338 | 338 |
339 CPWL_Note_Icon::~CPWL_Note_Icon() | 339 CPWL_Note_Icon::~CPWL_Note_Icon() |
340 { | 340 { |
341 } | 341 } |
342 | 342 |
343 void CPWL_Note_Icon::SetIconType(FX_INT32 nType) | 343 void CPWL_Note_Icon::SetIconType(int32_t nType) |
344 { | 344 { |
345 m_nType = nType; | 345 m_nType = nType; |
346 } | 346 } |
347 | 347 |
348 void CPWL_Note_Icon::DrawThisAppearance(CFX_RenderDevice* pDevice, CPDF_Matrix*
pUser2Device) | 348 void CPWL_Note_Icon::DrawThisAppearance(CFX_RenderDevice* pDevice, CPDF_Matrix*
pUser2Device) |
349 { | 349 { |
350 CPWL_Utils::DrawIconAppStream(pDevice, pUser2Device, m_nType, GetClientR
ect(), | 350 CPWL_Utils::DrawIconAppStream(pDevice, pUser2Device, m_nType, GetClientR
ect(), |
351 this->GetBackgroundColor(), PWL_DEFAULT_BLACKCOLOR, this->GetTra
nsparency()); | 351 this->GetBackgroundColor(), PWL_DEFAULT_BLACKCOLOR, this->GetTra
nsparency()); |
352 } | 352 } |
353 | 353 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 st = pSH->GetLocalTime(); | 474 st = pSH->GetLocalTime(); |
475 pNoteItem->SetDateTime(st); | 475 pNoteItem->SetDateTime(st); |
476 | 476 |
477 pNoteItem->SetContents(L""); | 477 pNoteItem->SetContents(L""); |
478 | 478 |
479 this->OnNotify(pNoteItem, PNM_NOTEEDITCHANGED, 0, 0); | 479 this->OnNotify(pNoteItem, PNM_NOTEEDITCHANGED, 0, 0); |
480 | 480 |
481 return pNoteItem; | 481 return pNoteItem; |
482 } | 482 } |
483 | 483 |
484 FX_INT32 CPWL_Note_Contents::CountSubItems() const | 484 int32_t CPWL_Note_Contents::CountSubItems() const |
485 { | 485 { |
486 return m_aChildren.GetSize() - 1; | 486 return m_aChildren.GetSize() - 1; |
487 } | 487 } |
488 | 488 |
489 IPWL_NoteItem* CPWL_Note_Contents::GetSubItems(FX_INT32 index) const | 489 IPWL_NoteItem* CPWL_Note_Contents::GetSubItems(int32_t index) const |
490 { | 490 { |
491 » FX_INT32 nIndex = index + 1; | 491 » int32_t nIndex = index + 1; |
492 | 492 |
493 if (nIndex > 0 && nIndex < m_aChildren.GetSize()) | 493 if (nIndex > 0 && nIndex < m_aChildren.GetSize()) |
494 if (CPWL_Wnd* pChild = m_aChildren.GetAt(nIndex)) | 494 if (CPWL_Wnd* pChild = m_aChildren.GetAt(nIndex)) |
495 { | 495 { |
496 ASSERT(pChild->GetClassName() == "CPWL_NoteItem"); | 496 ASSERT(pChild->GetClassName() == "CPWL_NoteItem"); |
497 CPWL_NoteItem* pItem = (CPWL_NoteItem*)pChild; | 497 CPWL_NoteItem* pItem = (CPWL_NoteItem*)pChild; |
498 return pItem; | 498 return pItem; |
499 } | 499 } |
500 return NULL; | 500 return NULL; |
501 } | 501 } |
502 | 502 |
503 void CPWL_Note_Contents::DeleteSubItem(IPWL_NoteItem* pNoteItem) | 503 void CPWL_Note_Contents::DeleteSubItem(IPWL_NoteItem* pNoteItem) |
504 { | 504 { |
505 » FX_INT32 nIndex = this->GetItemIndex((CPWL_NoteItem*)pNoteItem); | 505 » int32_t nIndex = this->GetItemIndex((CPWL_NoteItem*)pNoteItem); |
506 | 506 |
507 if (nIndex > 0) | 507 if (nIndex > 0) |
508 { | 508 { |
509 if (CPWL_NoteItem* pPWLNoteItem = (CPWL_NoteItem*)pNoteItem) | 509 if (CPWL_NoteItem* pPWLNoteItem = (CPWL_NoteItem*)pNoteItem) |
510 { | 510 { |
511 pPWLNoteItem->KillFocus(); | 511 pPWLNoteItem->KillFocus(); |
512 pPWLNoteItem->Destroy(); | 512 pPWLNoteItem->Destroy(); |
513 delete pPWLNoteItem; | 513 delete pPWLNoteItem; |
514 } | 514 } |
515 | 515 |
516 » » for (FX_INT32 i=nIndex,sz=m_aChildren.GetSize(); i<sz; i++) | 516 » » for (int32_t i=nIndex,sz=m_aChildren.GetSize(); i<sz; i++) |
517 { | 517 { |
518 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) | 518 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) |
519 { | 519 { |
520 ASSERT(pChild->GetClassName() == "CPWL_NoteItem"
); | 520 ASSERT(pChild->GetClassName() == "CPWL_NoteItem"
); |
521 CPWL_NoteItem* pItem = (CPWL_NoteItem*)pChild; | 521 CPWL_NoteItem* pItem = (CPWL_NoteItem*)pChild; |
522 pItem->ResetSubjectName(i); | 522 pItem->ResetSubjectName(i); |
523 } | 523 } |
524 } | 524 } |
525 | 525 |
526 this->OnNotify(this, PNM_NOTEEDITCHANGED, 0, 0); | 526 this->OnNotify(this, PNM_NOTEEDITCHANGED, 0, 0); |
527 } | 527 } |
528 } | 528 } |
529 | 529 |
530 IPWL_NoteItem* CPWL_Note_Contents::GetHitNoteItem(const CPDF_Point& point) | 530 IPWL_NoteItem* CPWL_Note_Contents::GetHitNoteItem(const CPDF_Point& point) |
531 { | 531 { |
532 CPDF_Point pt = this->ParentToChild(point); | 532 CPDF_Point pt = this->ParentToChild(point); |
533 | 533 |
534 » for (FX_INT32 i=0,sz=m_aChildren.GetSize(); i<sz; i++) | 534 » for (int32_t i=0,sz=m_aChildren.GetSize(); i<sz; i++) |
535 { | 535 { |
536 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) | 536 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) |
537 { | 537 { |
538 if (pChild->GetClassName() == "CPWL_NoteItem") | 538 if (pChild->GetClassName() == "CPWL_NoteItem") |
539 { | 539 { |
540 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pChil
d; | 540 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pChil
d; |
541 if (IPWL_NoteItem* pRet = pNoteItem->GetHitNoteI
tem(pt)) | 541 if (IPWL_NoteItem* pRet = pNoteItem->GetHitNoteI
tem(pt)) |
542 return pRet; | 542 return pRet; |
543 } | 543 } |
544 } | 544 } |
545 } | 545 } |
546 return NULL; | 546 return NULL; |
547 } | 547 } |
548 | 548 |
549 void CPWL_Note_Contents::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, FX_INTPTR wParam
, FX_INTPTR lParam) | 549 void CPWL_Note_Contents::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam,
intptr_t lParam) |
550 { | 550 { |
551 switch (msg) | 551 switch (msg) |
552 { | 552 { |
553 case PNM_NOTEEDITCHANGED: | 553 case PNM_NOTEEDITCHANGED: |
554 { | 554 { |
555 » » » FX_INT32 nIndex = this->GetItemIndex(pWnd); | 555 » » » int32_t nIndex = this->GetItemIndex(pWnd); |
556 if (nIndex < 0) nIndex = 0; | 556 if (nIndex < 0) nIndex = 0; |
557 | 557 |
558 m_pEdit->EnableNotify(FALSE); | 558 m_pEdit->EnableNotify(FALSE); |
559 this->ResetContent(nIndex); | 559 this->ResetContent(nIndex); |
560 m_pEdit->EnableNotify(TRUE); | 560 m_pEdit->EnableNotify(TRUE); |
561 | 561 |
562 » » » for (FX_INT32 i=nIndex+1, sz=m_aChildren.GetSize(); i<sz
; i++) | 562 » » » for (int32_t i=nIndex+1, sz=m_aChildren.GetSize(); i<sz;
i++) |
563 { | 563 { |
564 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) | 564 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) |
565 pChild->OnNotify(this, PNM_NOTERESET, 0,
0); | 565 pChild->OnNotify(this, PNM_NOTERESET, 0,
0); |
566 } | 566 } |
567 | 567 |
568 if (CPWL_Wnd * pParent = this->GetParentWindow()) | 568 if (CPWL_Wnd * pParent = this->GetParentWindow()) |
569 { | 569 { |
570 pParent->OnNotify(this, PNM_NOTEEDITCHANGED, 0,
0); | 570 pParent->OnNotify(this, PNM_NOTEEDITCHANGED, 0,
0); |
571 } | 571 } |
572 } | 572 } |
573 return; | 573 return; |
574 case PNM_SCROLLWINDOW: | 574 case PNM_SCROLLWINDOW: |
575 this->SetScrollPos(CPDF_Point(0.0f, *(FX_FLOAT*)lParam)); | 575 this->SetScrollPos(CPDF_Point(0.0f, *(FX_FLOAT*)lParam)); |
576 this->ResetFace(); | 576 this->ResetFace(); |
577 InvalidateRect(NULL); | 577 InvalidateRect(NULL); |
578 return; | 578 return; |
579 case PNM_SETCARETINFO: | 579 case PNM_SETCARETINFO: |
580 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) | 580 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) |
581 { | 581 { |
582 PWL_CARET_INFO newInfo = *pInfo; | 582 PWL_CARET_INFO newInfo = *pInfo; |
583 newInfo.bVisible = TRUE; | 583 newInfo.bVisible = TRUE; |
584 newInfo.ptHead = this->ChildToParent(pInfo->ptHead); | 584 newInfo.ptHead = this->ChildToParent(pInfo->ptHead); |
585 newInfo.ptFoot = this->ChildToParent(pInfo->ptFoot); | 585 newInfo.ptFoot = this->ChildToParent(pInfo->ptFoot); |
586 | 586 |
587 if (CPWL_Wnd * pParent = this->GetParentWindow()) | 587 if (CPWL_Wnd * pParent = this->GetParentWindow()) |
588 { | 588 { |
589 » » » » pParent->OnNotify(this, PNM_SETCARETINFO, (FX_IN
TPTR)&newInfo, 0); | 589 » » » » pParent->OnNotify(this, PNM_SETCARETINFO, (intpt
r_t)&newInfo, 0); |
590 } | 590 } |
591 } | 591 } |
592 return; | 592 return; |
593 case PNM_NOTERESET: | 593 case PNM_NOTERESET: |
594 { | 594 { |
595 m_pEdit->EnableNotify(FALSE); | 595 m_pEdit->EnableNotify(FALSE); |
596 this->ResetContent(0); | 596 this->ResetContent(0); |
597 m_pEdit->EnableNotify(TRUE); | 597 m_pEdit->EnableNotify(TRUE); |
598 | 598 |
599 » » » for (FX_INT32 i=1, sz=m_aChildren.GetSize(); i<sz; i++) | 599 » » » for (int32_t i=1, sz=m_aChildren.GetSize(); i<sz; i++) |
600 { | 600 { |
601 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) | 601 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) |
602 pChild->OnNotify(this, PNM_NOTERESET, 0,
0); | 602 pChild->OnNotify(this, PNM_NOTERESET, 0,
0); |
603 } | 603 } |
604 | 604 |
605 m_pEdit->EnableNotify(FALSE); | 605 m_pEdit->EnableNotify(FALSE); |
606 this->ResetContent(0); | 606 this->ResetContent(0); |
607 m_pEdit->EnableNotify(TRUE); | 607 m_pEdit->EnableNotify(TRUE); |
608 } | 608 } |
609 return; | 609 return; |
(...skipping 28 matching lines...) Expand all Loading... |
638 return m_pEdit; | 638 return m_pEdit; |
639 } | 639 } |
640 | 640 |
641 void CPWL_Note_Contents::EnableModify(FX_BOOL bEnabled) | 641 void CPWL_Note_Contents::EnableModify(FX_BOOL bEnabled) |
642 { | 642 { |
643 if (!bEnabled) | 643 if (!bEnabled) |
644 m_pEdit->AddFlag(PWS_READONLY); | 644 m_pEdit->AddFlag(PWS_READONLY); |
645 else | 645 else |
646 m_pEdit->RemoveFlag(PWS_READONLY); | 646 m_pEdit->RemoveFlag(PWS_READONLY); |
647 | 647 |
648 » for (FX_INT32 i=0,sz=m_aChildren.GetSize(); i<sz; i++) | 648 » for (int32_t i=0,sz=m_aChildren.GetSize(); i<sz; i++) |
649 { | 649 { |
650 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) | 650 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) |
651 { | 651 { |
652 if (pChild->GetClassName() == "CPWL_NoteItem") | 652 if (pChild->GetClassName() == "CPWL_NoteItem") |
653 { | 653 { |
654 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pChil
d; | 654 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pChil
d; |
655 pNoteItem->EnableModify(bEnabled); | 655 pNoteItem->EnableModify(bEnabled); |
656 } | 656 } |
657 } | 657 } |
658 } | 658 } |
659 } | 659 } |
660 | 660 |
661 void CPWL_Note_Contents::EnableRead(FX_BOOL bEnabled) | 661 void CPWL_Note_Contents::EnableRead(FX_BOOL bEnabled) |
662 { | 662 { |
663 if (!bEnabled) | 663 if (!bEnabled) |
664 m_pEdit->AddFlag(PES_NOREAD); | 664 m_pEdit->AddFlag(PES_NOREAD); |
665 else | 665 else |
666 m_pEdit->RemoveFlag(PES_NOREAD); | 666 m_pEdit->RemoveFlag(PES_NOREAD); |
667 | 667 |
668 » for (FX_INT32 i=0,sz=m_aChildren.GetSize(); i<sz; i++) | 668 » for (int32_t i=0,sz=m_aChildren.GetSize(); i<sz; i++) |
669 { | 669 { |
670 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) | 670 if (CPWL_Wnd* pChild = m_aChildren.GetAt(i)) |
671 { | 671 { |
672 if (pChild->GetClassName() == "CPWL_NoteItem") | 672 if (pChild->GetClassName() == "CPWL_NoteItem") |
673 { | 673 { |
674 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pChil
d; | 674 CPWL_NoteItem* pNoteItem = (CPWL_NoteItem*)pChil
d; |
675 pNoteItem->EnableRead(bEnabled); | 675 pNoteItem->EnableRead(bEnabled); |
676 } | 676 } |
677 } | 677 } |
678 } | 678 } |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 { | 824 { |
825 m_sAuthor = sName; | 825 m_sAuthor = sName; |
826 ResetSubjectName(-1); | 826 ResetSubjectName(-1); |
827 | 827 |
828 if (IPWL_NoteNotify* pNotify = GetNoteNotify()) | 828 if (IPWL_NoteNotify* pNotify = GetNoteNotify()) |
829 { | 829 { |
830 pNotify->OnSetAuthorName(this); | 830 pNotify->OnSetAuthorName(this); |
831 } | 831 } |
832 } | 832 } |
833 | 833 |
834 void CPWL_NoteItem::ResetSubjectName(FX_INT32 nItemIndex) | 834 void CPWL_NoteItem::ResetSubjectName(int32_t nItemIndex) |
835 { | 835 { |
836 if (nItemIndex < 0) | 836 if (nItemIndex < 0) |
837 { | 837 { |
838 if (CPWL_Wnd* pParent = this->GetParentWindow()) | 838 if (CPWL_Wnd* pParent = this->GetParentWindow()) |
839 { | 839 { |
840 ASSERT(pParent->GetClassName() == "CPWL_Note_Contents"); | 840 ASSERT(pParent->GetClassName() == "CPWL_Note_Contents"); |
841 | 841 |
842 CPWL_Note_Contents* pContents = (CPWL_Note_Contents*)pPa
rent; | 842 CPWL_Note_Contents* pContents = (CPWL_Note_Contents*)pPa
rent; |
843 nItemIndex = pContents->GetItemIndex(this); | 843 nItemIndex = pContents->GetItemIndex(this); |
844 } | 844 } |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 return m_pContents->CreateSubItem(); | 959 return m_pContents->CreateSubItem(); |
960 | 960 |
961 return NULL; | 961 return NULL; |
962 } | 962 } |
963 | 963 |
964 IPWL_NoteItem* CPWL_NoteItem::CreateSubItem() | 964 IPWL_NoteItem* CPWL_NoteItem::CreateSubItem() |
965 { | 965 { |
966 return CreateNoteItem(); | 966 return CreateNoteItem(); |
967 } | 967 } |
968 | 968 |
969 FX_INT32 CPWL_NoteItem::CountSubItems() const | 969 int32_t CPWL_NoteItem::CountSubItems() const |
970 { | 970 { |
971 if (m_pContents) | 971 if (m_pContents) |
972 return m_pContents->CountSubItems(); | 972 return m_pContents->CountSubItems(); |
973 | 973 |
974 return 0; | 974 return 0; |
975 } | 975 } |
976 | 976 |
977 IPWL_NoteItem* CPWL_NoteItem::GetSubItems(FX_INT32 index) const | 977 IPWL_NoteItem* CPWL_NoteItem::GetSubItems(int32_t index) const |
978 { | 978 { |
979 if (m_pContents) | 979 if (m_pContents) |
980 return m_pContents->GetSubItems(index); | 980 return m_pContents->GetSubItems(index); |
981 | 981 |
982 return NULL; | 982 return NULL; |
983 } | 983 } |
984 | 984 |
985 void CPWL_NoteItem::DeleteSubItem(IPWL_NoteItem* pNoteItem) | 985 void CPWL_NoteItem::DeleteSubItem(IPWL_NoteItem* pNoteItem) |
986 { | 986 { |
987 this->KillFocus(); | 987 this->KillFocus(); |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1088 { | 1088 { |
1089 SetNoteFocus(FALSE); | 1089 SetNoteFocus(FALSE); |
1090 PopupNoteItemMenu(point); | 1090 PopupNoteItemMenu(point); |
1091 | 1091 |
1092 return TRUE; | 1092 return TRUE; |
1093 } | 1093 } |
1094 | 1094 |
1095 return CPWL_Wnd::OnRButtonUp(point,nFlag); | 1095 return CPWL_Wnd::OnRButtonUp(point,nFlag); |
1096 } | 1096 } |
1097 | 1097 |
1098 void CPWL_NoteItem::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, FX_INTPTR wParam, FX_
INTPTR lParam) | 1098 void CPWL_NoteItem::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam, intp
tr_t lParam) |
1099 { | 1099 { |
1100 switch (msg) | 1100 switch (msg) |
1101 { | 1101 { |
1102 case PNM_NOTEEDITCHANGED: | 1102 case PNM_NOTEEDITCHANGED: |
1103 m_bSizeChanged = TRUE; | 1103 m_bSizeChanged = TRUE; |
1104 | 1104 |
1105 if (CPWL_Wnd* pParent = this->GetParentWindow()) | 1105 if (CPWL_Wnd* pParent = this->GetParentWindow()) |
1106 { | 1106 { |
1107 pParent->OnNotify(this, PNM_NOTEEDITCHANGED, 0, 0); | 1107 pParent->OnNotify(this, PNM_NOTEEDITCHANGED, 0, 0); |
1108 } | 1108 } |
1109 return; | 1109 return; |
1110 case PNM_SETCARETINFO: | 1110 case PNM_SETCARETINFO: |
1111 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) | 1111 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) |
1112 { | 1112 { |
1113 PWL_CARET_INFO newInfo = *pInfo; | 1113 PWL_CARET_INFO newInfo = *pInfo; |
1114 newInfo.bVisible = TRUE; | 1114 newInfo.bVisible = TRUE; |
1115 newInfo.ptHead = this->ChildToParent(pInfo->ptHead); | 1115 newInfo.ptHead = this->ChildToParent(pInfo->ptHead); |
1116 newInfo.ptFoot = this->ChildToParent(pInfo->ptFoot); | 1116 newInfo.ptFoot = this->ChildToParent(pInfo->ptFoot); |
1117 | 1117 |
1118 if (CPWL_Wnd * pParent = this->GetParentWindow()) | 1118 if (CPWL_Wnd * pParent = this->GetParentWindow()) |
1119 { | 1119 { |
1120 » » » » pParent->OnNotify(this, PNM_SETCARETINFO, (FX_IN
TPTR)&newInfo, 0); | 1120 » » » » pParent->OnNotify(this, PNM_SETCARETINFO, (intpt
r_t)&newInfo, 0); |
1121 } | 1121 } |
1122 } | 1122 } |
1123 return; | 1123 return; |
1124 case PNM_NOTERESET: | 1124 case PNM_NOTERESET: |
1125 m_bSizeChanged = TRUE; | 1125 m_bSizeChanged = TRUE; |
1126 m_pContents->OnNotify(this, PNM_NOTERESET, 0, 0); | 1126 m_pContents->OnNotify(this, PNM_NOTERESET, 0, 0); |
1127 | 1127 |
1128 return; | 1128 return; |
1129 } | 1129 } |
1130 | 1130 |
1131 CPWL_Wnd::OnNotify(pWnd, msg, wParam, lParam); | 1131 CPWL_Wnd::OnNotify(pWnd, msg, wParam, lParam); |
1132 } | 1132 } |
1133 | 1133 |
1134 void CPWL_NoteItem::PopupNoteItemMenu(const CPDF_Point& point) | 1134 void CPWL_NoteItem::PopupNoteItemMenu(const CPDF_Point& point) |
1135 { | 1135 { |
1136 if (IPWL_NoteNotify* pNotify = GetNoteNotify()) | 1136 if (IPWL_NoteNotify* pNotify = GetNoteNotify()) |
1137 { | 1137 { |
1138 » » FX_INT32 x,y; | 1138 » » int32_t x,y; |
1139 PWLtoWnd(point, x, y); | 1139 PWLtoWnd(point, x, y); |
1140 if (IFX_SystemHandler* pSH = GetSystemHandler()) | 1140 if (IFX_SystemHandler* pSH = GetSystemHandler()) |
1141 pSH->ClientToScreen(GetAttachedHWnd(), x, y); | 1141 pSH->ClientToScreen(GetAttachedHWnd(), x, y); |
1142 pNotify->OnPopupMenu(this, x, y); | 1142 pNotify->OnPopupMenu(this, x, y); |
1143 } | 1143 } |
1144 } | 1144 } |
1145 | 1145 |
1146 const CPWL_Note* CPWL_NoteItem::GetNote() const | 1146 const CPWL_Note* CPWL_NoteItem::GetNote() const |
1147 { | 1147 { |
1148 if (const CPWL_Wnd* pRoot = this->GetRootWnd()) | 1148 if (const CPWL_Wnd* pRoot = this->GetRootWnd()) |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1240 //ͬ²½ | 1240 //ͬ²½ |
1241 if (const CPWL_Wnd* pWnd = this->GetFocused()) | 1241 if (const CPWL_Wnd* pWnd = this->GetFocused()) |
1242 { | 1242 { |
1243 if (pWnd->GetClassName() == "CPWL_Edit") | 1243 if (pWnd->GetClassName() == "CPWL_Edit") |
1244 { | 1244 { |
1245 CPWL_Edit* pEdit = (CPWL_Edit*)pWnd; | 1245 CPWL_Edit* pEdit = (CPWL_Edit*)pWnd; |
1246 pEdit->SetCaret(pEdit->GetCaret()); | 1246 pEdit->SetCaret(pEdit->GetCaret()); |
1247 } | 1247 } |
1248 } | 1248 } |
1249 //CPDF_Point ptNew = m_pContents->GetScrollPos(); | 1249 //CPDF_Point ptNew = m_pContents->GetScrollPos(); |
1250 » //m_pContentsBar->OnNotify(this, PNM_SETSCROLLPOS, SBT_VSCROLL, (FX_INTP
TR)&ptNew.y); | 1250 » //m_pContentsBar->OnNotify(this, PNM_SETSCROLLPOS, SBT_VSCROLL, (intptr_
t)&ptNew.y); |
1251 } | 1251 } |
1252 | 1252 |
1253 FX_BOOL CPWL_Note::ResetScrollBar() | 1253 FX_BOOL CPWL_Note::ResetScrollBar() |
1254 { | 1254 { |
1255 FX_BOOL bScrollChanged = FALSE; | 1255 FX_BOOL bScrollChanged = FALSE; |
1256 | 1256 |
1257 if (ScrollBarShouldVisible()) | 1257 if (ScrollBarShouldVisible()) |
1258 { | 1258 { |
1259 if (!m_pContentsBar->IsVisible()) | 1259 if (!m_pContentsBar->IsVisible()) |
1260 { | 1260 { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1413 m_pContentsBar->Move(rcContentsBar, TRUE, FALSE); | 1413 m_pContentsBar->Move(rcContentsBar, TRUE, FALSE); |
1414 | 1414 |
1415 m_rcCaption = rcClient; | 1415 m_rcCaption = rcClient; |
1416 m_rcCaption.bottom = rcContents.top; | 1416 m_rcCaption.bottom = rcContents.top; |
1417 } | 1417 } |
1418 | 1418 |
1419 m_bResizing = FALSE; | 1419 m_bResizing = FALSE; |
1420 } | 1420 } |
1421 | 1421 |
1422 //0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close /
5-options | 1422 //0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close /
5-options |
1423 FX_INT32 CPWL_Note::NoteHitTest(const CPDF_Point& point) const | 1423 int32_t CPWL_Note::NoteHitTest(const CPDF_Point& point) const |
1424 { | 1424 { |
1425 ASSERT(m_pSubject != NULL); | 1425 ASSERT(m_pSubject != NULL); |
1426 ASSERT(m_pDateTime != NULL); | 1426 ASSERT(m_pDateTime != NULL); |
1427 ASSERT(m_pContents != NULL); | 1427 ASSERT(m_pContents != NULL); |
1428 ASSERT(m_pAuthor != NULL); | 1428 ASSERT(m_pAuthor != NULL); |
1429 ASSERT(m_pIcon != NULL); | 1429 ASSERT(m_pIcon != NULL); |
1430 ASSERT(m_pContentsBar != NULL); | 1430 ASSERT(m_pContentsBar != NULL); |
1431 | 1431 |
1432 ASSERT(m_pCloseBox != NULL); | 1432 ASSERT(m_pCloseBox != NULL); |
1433 ASSERT(m_pLBBox != NULL); | 1433 ASSERT(m_pLBBox != NULL); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 if (ptNew.y > rcScroll.top) | 1563 if (ptNew.y > rcScroll.top) |
1564 ptNew.y = rcScroll.top; | 1564 ptNew.y = rcScroll.top; |
1565 if (ptNew.y < rcScroll.bottom + rcContents.Height()) | 1565 if (ptNew.y < rcScroll.bottom + rcContents.Height()) |
1566 ptNew.y = rcScroll.bottom + rcContents.Height(); | 1566 ptNew.y = rcScroll.bottom + rcContents.Height(); |
1567 if (ptNew.y < rcScroll.bottom) | 1567 if (ptNew.y < rcScroll.bottom) |
1568 ptNew.y = rcScroll.bottom; | 1568 ptNew.y = rcScroll.bottom; |
1569 | 1569 |
1570 if (ptNew.y != ptScroll.y) | 1570 if (ptNew.y != ptScroll.y) |
1571 { | 1571 { |
1572 m_pContents->OnNotify(this, PNM_NOTERESET, 0, 0); | 1572 m_pContents->OnNotify(this, PNM_NOTERESET, 0, 0); |
1573 » » » m_pContents->OnNotify(this, PNM_SCROLLWINDOW, SBT_VSCROL
L, (FX_INTPTR)&ptNew.y);» » » | 1573 » » » m_pContents->OnNotify(this, PNM_SCROLLWINDOW, SBT_VSCROL
L, (intptr_t)&ptNew.y);»» » |
1574 » » » m_pContentsBar->OnNotify(this, PNM_SETSCROLLPOS, SBT_VSC
ROLL, (FX_INTPTR)&ptNew.y); | 1574 » » » m_pContentsBar->OnNotify(this, PNM_SETSCROLLPOS, SBT_VSC
ROLL, (intptr_t)&ptNew.y); |
1575 | 1575 |
1576 return TRUE; | 1576 return TRUE; |
1577 } | 1577 } |
1578 } | 1578 } |
1579 | 1579 |
1580 return FALSE; | 1580 return FALSE; |
1581 } | 1581 } |
1582 | 1582 |
1583 void CPWL_Note::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, FX_INTPTR wParam, FX_INTP
TR lParam) | 1583 void CPWL_Note::OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam, intptr_t
lParam) |
1584 { | 1584 { |
1585 switch (msg) | 1585 switch (msg) |
1586 { | 1586 { |
1587 case PNM_NOTEEDITCHANGED: | 1587 case PNM_NOTEEDITCHANGED: |
1588 { | 1588 { |
1589 CPDF_Rect rcScroll = m_pContents->GetScrollArea(); | 1589 CPDF_Rect rcScroll = m_pContents->GetScrollArea(); |
1590 | 1590 |
1591 | 1591 |
1592 PWL_SCROLL_INFO sInfo; | 1592 PWL_SCROLL_INFO sInfo; |
1593 sInfo.fContentMin = rcScroll.bottom; | 1593 sInfo.fContentMin = rcScroll.bottom; |
(...skipping 14 matching lines...) Expand all Loading... |
1608 lParam++; | 1608 lParam++; |
1609 m_pContents->OnNotify(this, PNM_
NOTERESET, 0, 0); | 1609 m_pContents->OnNotify(this, PNM_
NOTERESET, 0, 0); |
1610 this->OnNotify(this, PNM_NOTEEDI
TCHANGED, 0, lParam); | 1610 this->OnNotify(this, PNM_NOTEEDI
TCHANGED, 0, lParam); |
1611 } | 1611 } |
1612 } | 1612 } |
1613 | 1613 |
1614 if (!bScrollChanged) | 1614 if (!bScrollChanged) |
1615 { | 1615 { |
1616 if (m_pContentsBar->IsVisible()) | 1616 if (m_pContentsBar->IsVisible()) |
1617 { | 1617 { |
1618 » » » » » » m_pContentsBar->OnNotify(pWnd, P
NM_SETSCROLLINFO, SBT_VSCROLL, (FX_INTPTR)&sInfo); | 1618 » » » » » » m_pContentsBar->OnNotify(pWnd, P
NM_SETSCROLLINFO, SBT_VSCROLL, (intptr_t)&sInfo); |
1619 m_OldScrollInfo = sInfo; | 1619 m_OldScrollInfo = sInfo; |
1620 | 1620 |
1621 CPDF_Point ptScroll = m_pContent
s->GetScrollPos(); | 1621 CPDF_Point ptScroll = m_pContent
s->GetScrollPos(); |
1622 CPDF_Point ptOld = ptScroll; | 1622 CPDF_Point ptOld = ptScroll; |
1623 | 1623 |
1624 if (ptScroll.y > sInfo.fContentM
ax) | 1624 if (ptScroll.y > sInfo.fContentM
ax) |
1625 ptScroll.y = sInfo.fCont
entMax; | 1625 ptScroll.y = sInfo.fCont
entMax; |
1626 if (ptScroll.y < sInfo.fContentM
in + sInfo.fPlateWidth) | 1626 if (ptScroll.y < sInfo.fContentM
in + sInfo.fPlateWidth) |
1627 ptScroll.y = sInfo.fCont
entMin + sInfo.fPlateWidth; | 1627 ptScroll.y = sInfo.fCont
entMin + sInfo.fPlateWidth; |
1628 if (ptScroll.y < sInfo.fContentM
in) | 1628 if (ptScroll.y < sInfo.fContentM
in) |
1629 ptScroll.y = sInfo.fCont
entMin; | 1629 ptScroll.y = sInfo.fCont
entMin; |
1630 | 1630 |
1631 if (ptOld.y != ptScroll.y) | 1631 if (ptOld.y != ptScroll.y) |
1632 { | 1632 { |
1633 » » » » » » » m_pContentsBar->OnNotify
(this, PNM_SETSCROLLPOS, SBT_VSCROLL, (FX_INTPTR)&ptScroll.y); | 1633 » » » » » » » m_pContentsBar->OnNotify
(this, PNM_SETSCROLLPOS, SBT_VSCROLL, (intptr_t)&ptScroll.y); |
1634 m_pContentsBar->Invalida
teRect(NULL); | 1634 m_pContentsBar->Invalida
teRect(NULL); |
1635 » » » » » » » m_pContents->OnNotify(th
is, PNM_SCROLLWINDOW, SBT_VSCROLL, (FX_INTPTR)&ptScroll.y); | 1635 » » » » » » » m_pContents->OnNotify(th
is, PNM_SCROLLWINDOW, SBT_VSCROLL, (intptr_t)&ptScroll.y); |
1636 } | 1636 } |
1637 } | 1637 } |
1638 } | 1638 } |
1639 } | 1639 } |
1640 } | 1640 } |
1641 | 1641 |
1642 m_pContents->InvalidateRect(NULL); | 1642 m_pContents->InvalidateRect(NULL); |
1643 | 1643 |
1644 return; | 1644 return; |
1645 case PNM_SCROLLWINDOW: | 1645 case PNM_SCROLLWINDOW: |
1646 if (m_pContents) | 1646 if (m_pContents) |
1647 m_pContents->OnNotify(pWnd, msg, wParam, lParam); | 1647 m_pContents->OnNotify(pWnd, msg, wParam, lParam); |
1648 return; | 1648 return; |
1649 case PNM_SETSCROLLPOS: | 1649 case PNM_SETSCROLLPOS: |
1650 if (m_pContentsBar) | 1650 if (m_pContentsBar) |
1651 m_pContentsBar->OnNotify(pWnd,PNM_SETSCROLLPOS,wParam,lP
aram); | 1651 m_pContentsBar->OnNotify(pWnd,PNM_SETSCROLLPOS,wParam,lP
aram); |
1652 return; | 1652 return; |
1653 } | 1653 } |
1654 | 1654 |
1655 if (msg == PNM_SETCARETINFO && IsValid()) | 1655 if (msg == PNM_SETCARETINFO && IsValid()) |
1656 { | 1656 { |
1657 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) | 1657 if (PWL_CARET_INFO * pInfo = (PWL_CARET_INFO*)wParam) |
1658 { | 1658 { |
1659 if (m_pContents) | 1659 if (m_pContents) |
1660 { | 1660 { |
1661 CPDF_Rect rcClient = m_pContents->GetClientRect(
); | 1661 CPDF_Rect rcClient = m_pContents->GetClientRect(
); |
1662 if (pInfo->ptHead.y > rcClient.top) | 1662 if (pInfo->ptHead.y > rcClient.top) |
1663 { | 1663 { |
1664 CPDF_Point pt = m_pContents->OutToIn(pIn
fo->ptHead); | 1664 CPDF_Point pt = m_pContents->OutToIn(pIn
fo->ptHead); |
1665 » » » » » m_pContents->OnNotify(this, PNM_SCROLLWI
NDOW, SBT_VSCROLL, (FX_INTPTR)&pt.y); | 1665 » » » » » m_pContents->OnNotify(this, PNM_SCROLLWI
NDOW, SBT_VSCROLL, (intptr_t)&pt.y); |
1666 | 1666 |
1667 CPDF_Point ptScroll = m_pContents->GetSc
rollPos(); | 1667 CPDF_Point ptScroll = m_pContents->GetSc
rollPos(); |
1668 » » » » » m_pContentsBar->OnNotify(this, PNM_SETSC
ROLLPOS, SBT_VSCROLL, (FX_INTPTR)&ptScroll.y); | 1668 » » » » » m_pContentsBar->OnNotify(this, PNM_SETSC
ROLLPOS, SBT_VSCROLL, (intptr_t)&ptScroll.y); |
1669 | 1669 |
1670 return; | 1670 return; |
1671 } | 1671 } |
1672 | 1672 |
1673 if (pInfo->ptFoot.y < rcClient.bottom) | 1673 if (pInfo->ptFoot.y < rcClient.bottom) |
1674 { | 1674 { |
1675 CPDF_Point pt = m_pContents->OutToIn(pIn
fo->ptFoot); | 1675 CPDF_Point pt = m_pContents->OutToIn(pIn
fo->ptFoot); |
1676 pt.y += rcClient.Height(); | 1676 pt.y += rcClient.Height(); |
1677 » » » » » m_pContents->OnNotify(this, PNM_SCROLLWI
NDOW, SBT_VSCROLL, (FX_INTPTR)&pt.y); | 1677 » » » » » m_pContents->OnNotify(this, PNM_SCROLLWI
NDOW, SBT_VSCROLL, (intptr_t)&pt.y); |
1678 | 1678 |
1679 CPDF_Point ptScroll = m_pContents->GetSc
rollPos(); | 1679 CPDF_Point ptScroll = m_pContents->GetSc
rollPos(); |
1680 » » » » » m_pContentsBar->OnNotify(this, PNM_SETSC
ROLLPOS, SBT_VSCROLL, (FX_INTPTR)&ptScroll.y); | 1680 » » » » » m_pContentsBar->OnNotify(this, PNM_SETSC
ROLLPOS, SBT_VSCROLL, (intptr_t)&ptScroll.y); |
1681 | 1681 |
1682 return; | 1682 return; |
1683 } | 1683 } |
1684 } | 1684 } |
1685 } | 1685 } |
1686 } | 1686 } |
1687 | 1687 |
1688 CPWL_NoteItem::OnNotify(pWnd, msg, wParam, lParam); | 1688 CPWL_NoteItem::OnNotify(pWnd, msg, wParam, lParam); |
1689 } | 1689 } |
1690 | 1690 |
(...skipping 19 matching lines...) Expand all Loading... |
1710 if (m_pRBBox) | 1710 if (m_pRBBox) |
1711 m_pRBBox->SetTextColor(sTextColor); | 1711 m_pRBBox->SetTextColor(sTextColor); |
1712 } | 1712 } |
1713 | 1713 |
1714 FX_BOOL CPWL_Note::OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) | 1714 FX_BOOL CPWL_Note::OnLButtonDown(const CPDF_Point& point, FX_DWORD nFlag) |
1715 { | 1715 { |
1716 if (m_pOptions->WndHitTest(m_pOptions->ParentToChild(point))) | 1716 if (m_pOptions->WndHitTest(m_pOptions->ParentToChild(point))) |
1717 { | 1717 { |
1718 if (IPWL_NoteNotify* pNotify = this->GetNoteNotify()) | 1718 if (IPWL_NoteNotify* pNotify = this->GetNoteNotify()) |
1719 { | 1719 { |
1720 » » » FX_INT32 x, y; | 1720 » » » int32_t x, y; |
1721 PWLtoWnd(point, x, y); | 1721 PWLtoWnd(point, x, y); |
1722 if (IFX_SystemHandler* pSH = GetSystemHandler()) | 1722 if (IFX_SystemHandler* pSH = GetSystemHandler()) |
1723 pSH->ClientToScreen(GetAttachedHWnd(), x, y); | 1723 pSH->ClientToScreen(GetAttachedHWnd(), x, y); |
1724 this->KillFocus(); | 1724 this->KillFocus(); |
1725 pNotify->OnPopupMenu(x, y); | 1725 pNotify->OnPopupMenu(x, y); |
1726 | 1726 |
1727 return TRUE; | 1727 return TRUE; |
1728 } | 1728 } |
1729 } | 1729 } |
1730 | 1730 |
(...skipping 11 matching lines...) Expand all Loading... |
1742 } | 1742 } |
1743 | 1743 |
1744 IPWL_NoteNotify* CPWL_Note::GetNoteNotify() const | 1744 IPWL_NoteNotify* CPWL_Note::GetNoteNotify() const |
1745 { | 1745 { |
1746 if (m_bEnalbleNotify) | 1746 if (m_bEnalbleNotify) |
1747 return m_pNoteNotify; | 1747 return m_pNoteNotify; |
1748 | 1748 |
1749 return NULL; | 1749 return NULL; |
1750 } | 1750 } |
1751 | 1751 |
1752 void CPWL_Note::SetIconType(FX_INT32 nType) | 1752 void CPWL_Note::SetIconType(int32_t nType) |
1753 { | 1753 { |
1754 if (m_pIcon) | 1754 if (m_pIcon) |
1755 m_pIcon->SetIconType(nType); | 1755 m_pIcon->SetIconType(nType); |
1756 } | 1756 } |
1757 | 1757 |
1758 void CPWL_Note::EnableModify(FX_BOOL bEnabled) | 1758 void CPWL_Note::EnableModify(FX_BOOL bEnabled) |
1759 { | 1759 { |
1760 m_pContents->EnableModify(bEnabled); | 1760 m_pContents->EnableModify(bEnabled); |
1761 } | 1761 } |
1762 | 1762 |
1763 void CPWL_Note::EnableRead(FX_BOOL bEnabled) | 1763 void CPWL_Note::EnableRead(FX_BOOL bEnabled) |
1764 { | 1764 { |
1765 m_pContents->EnableRead(bEnabled); | 1765 m_pContents->EnableRead(bEnabled); |
1766 } | 1766 } |
1767 | 1767 |
1768 CFX_WideString CPWL_Note::GetReplyString() const | 1768 CFX_WideString CPWL_Note::GetReplyString() const |
1769 { | 1769 { |
1770 return m_sReplyString; | 1770 return m_sReplyString; |
1771 } | 1771 } |
1772 | 1772 |
1773 void CPWL_Note::SetReplyString(const CFX_WideString& string) | 1773 void CPWL_Note::SetReplyString(const CFX_WideString& string) |
1774 { | 1774 { |
1775 m_sReplyString = string; | 1775 m_sReplyString = string; |
1776 } | 1776 } |
1777 | 1777 |
OLD | NEW |