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/foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
8 #include "xfa/src/fxfa/src/common/xfa_common.h" | 8 #include "xfa/src/fxfa/src/common/xfa_common.h" |
9 #include "xfa_fwladapter.h" | 9 #include "xfa_fwladapter.h" |
10 #include "xfa_ffwidgethandler.h" | 10 #include "xfa_ffwidgethandler.h" |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 } | 613 } |
614 FX_BOOL CXFA_FFMenuHandler::CanRedo(IXFA_Widget* hWidget) { | 614 FX_BOOL CXFA_FFMenuHandler::CanRedo(IXFA_Widget* hWidget) { |
615 return static_cast<CXFA_FFWidget*>(hWidget)->CanRedo(); | 615 return static_cast<CXFA_FFWidget*>(hWidget)->CanRedo(); |
616 } | 616 } |
617 FX_BOOL CXFA_FFMenuHandler::Undo(IXFA_Widget* hWidget) { | 617 FX_BOOL CXFA_FFMenuHandler::Undo(IXFA_Widget* hWidget) { |
618 return static_cast<CXFA_FFWidget*>(hWidget)->Undo(); | 618 return static_cast<CXFA_FFWidget*>(hWidget)->Undo(); |
619 } | 619 } |
620 FX_BOOL CXFA_FFMenuHandler::Redo(IXFA_Widget* hWidget) { | 620 FX_BOOL CXFA_FFMenuHandler::Redo(IXFA_Widget* hWidget) { |
621 return static_cast<CXFA_FFWidget*>(hWidget)->Redo(); | 621 return static_cast<CXFA_FFWidget*>(hWidget)->Redo(); |
622 } | 622 } |
623 #define FX_EDIT_ISLATINWORD(u) \ | 623 FX_BOOL CXFA_FFMenuHandler::GetSuggestWords( |
624 (u == 0x2D || (u <= 0x005A && u >= 0x0041) || \ | 624 IXFA_Widget* hWidget, |
625 (u <= 0x007A && u >= 0x0061) || (u <= 0x02AF && u >= 0x00C0) || \ | 625 CFX_PointF pointf, |
626 u == 0x0027) | 626 std::vector<CFX_ByteString>& sSuggest) { |
627 FX_BOOL CXFA_FFMenuHandler::GetSuggestWords(IXFA_Widget* hWidget, | |
628 CFX_PointF pointf, | |
629 CFX_ByteStringArray& sSuggest) { | |
630 return static_cast<CXFA_FFWidget*>(hWidget) | 627 return static_cast<CXFA_FFWidget*>(hWidget) |
631 ->GetSuggestWords(pointf, sSuggest); | 628 ->GetSuggestWords(pointf, sSuggest); |
632 } | 629 } |
633 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( | 630 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( |
634 IXFA_Widget* hWidget, | 631 IXFA_Widget* hWidget, |
635 CFX_PointF pointf, | 632 CFX_PointF pointf, |
636 const CFX_ByteStringC& bsReplace) { | 633 const CFX_ByteStringC& bsReplace) { |
637 return static_cast<CXFA_FFWidget*>(hWidget) | 634 return static_cast<CXFA_FFWidget*>(hWidget) |
638 ->ReplaceSpellCheckWord(pointf, bsReplace); | 635 ->ReplaceSpellCheckWord(pointf, bsReplace); |
639 } | 636 } |
OLD | NEW |