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 "xfa/src/fxfa/app/xfa_ffwidgethandler.h" | 7 #include "xfa/src/fxfa/app/xfa_ffwidgethandler.h" |
8 | 8 |
| 9 #include <vector> |
| 10 |
9 #include "xfa/src/fxfa/app/xfa_ffchoicelist.h" | 11 #include "xfa/src/fxfa/app/xfa_ffchoicelist.h" |
10 #include "xfa/src/fxfa/app/xfa_ffdoc.h" | 12 #include "xfa/src/fxfa/app/xfa_ffdoc.h" |
11 #include "xfa/src/fxfa/app/xfa_ffdocview.h" | 13 #include "xfa/src/fxfa/app/xfa_ffdocview.h" |
12 #include "xfa/src/fxfa/app/xfa_fffield.h" | 14 #include "xfa/src/fxfa/app/xfa_fffield.h" |
13 #include "xfa/src/fxfa/app/xfa_ffwidget.h" | 15 #include "xfa/src/fxfa/app/xfa_ffwidget.h" |
14 #include "xfa/src/fxfa/app/xfa_fwladapter.h" | 16 #include "xfa/src/fxfa/app/xfa_fwladapter.h" |
15 #include "xfa/src/fxfa/parser/xfa_parser.h" | 17 #include "xfa/src/fxfa/parser/xfa_parser.h" |
16 | 18 |
17 CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView) | 19 CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView) |
18 : m_pDocView(pDocView) {} | 20 : m_pDocView(pDocView) {} |
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 return static_cast<CXFA_FFWidget*>(hWidget) | 625 return static_cast<CXFA_FFWidget*>(hWidget) |
624 ->GetSuggestWords(pointf, sSuggest); | 626 ->GetSuggestWords(pointf, sSuggest); |
625 } | 627 } |
626 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( | 628 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( |
627 IXFA_Widget* hWidget, | 629 IXFA_Widget* hWidget, |
628 CFX_PointF pointf, | 630 CFX_PointF pointf, |
629 const CFX_ByteStringC& bsReplace) { | 631 const CFX_ByteStringC& bsReplace) { |
630 return static_cast<CXFA_FFWidget*>(hWidget) | 632 return static_cast<CXFA_FFWidget*>(hWidget) |
631 ->ReplaceSpellCheckWord(pointf, bsReplace); | 633 ->ReplaceSpellCheckWord(pointf, bsReplace); |
632 } | 634 } |
OLD | NEW |