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/formfiller/FFL_FormFiller.h" | 7 #include "../../include/formfiller/FFL_FormFiller.h" |
8 #include "../../include/formfiller/FFL_IFormFiller.h" | 8 #include "../../include/formfiller/FFL_IFormFiller.h" |
9 #include "../../include/formfiller/FFL_CheckBox.h" | 9 #include "../../include/formfiller/FFL_CheckBox.h" |
10 #include "../../include/formfiller/FFL_ComboBox.h" | 10 #include "../../include/formfiller/FFL_ComboBox.h" |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 } | 562 } |
563 | 563 |
564 if (!pFormFiller) | 564 if (!pFormFiller) |
565 return nullptr; | 565 return nullptr; |
566 | 566 |
567 m_Maps[pAnnot] = pFormFiller; | 567 m_Maps[pAnnot] = pFormFiller; |
568 return pFormFiller; | 568 return pFormFiller; |
569 } | 569 } |
570 | 570 |
571 void CFFL_IFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) { | 571 void CFFL_IFormFiller::RemoveFormFiller(CPDFSDK_Annot* pAnnot) { |
572 if (pAnnot != NULL) { | 572 if (pAnnot) { |
573 UnRegisterFormFiller(pAnnot); | 573 UnRegisterFormFiller(pAnnot); |
574 } | 574 } |
575 } | 575 } |
576 | 576 |
577 void CFFL_IFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot) { | 577 void CFFL_IFormFiller::UnRegisterFormFiller(CPDFSDK_Annot* pAnnot) { |
578 auto it = m_Maps.find(pAnnot); | 578 auto it = m_Maps.find(pAnnot); |
579 if (it == m_Maps.end()) | 579 if (it == m_Maps.end()) |
580 return; | 580 return; |
581 | 581 |
582 delete it->second; | 582 delete it->second; |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 bExit = TRUE; | 1069 bExit = TRUE; |
1070 m_bNotifying = FALSE; | 1070 m_bNotifying = FALSE; |
1071 return; | 1071 return; |
1072 } | 1072 } |
1073 } | 1073 } |
1074 | 1074 |
1075 m_bNotifying = FALSE; | 1075 m_bNotifying = FALSE; |
1076 } | 1076 } |
1077 } | 1077 } |
1078 } | 1078 } |
OLD | NEW |