| 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/fxfa/app/xfa_ffwidgethandler.h" | 7 #include "xfa/fxfa/app/xfa_ffwidgethandler.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "xfa/fxfa/app/xfa_ffchoicelist.h" | 11 #include "xfa/fxfa/app/xfa_ffchoicelist.h" |
| 12 #include "xfa/fxfa/app/xfa_ffdoc.h" | 12 #include "xfa/fxfa/app/xfa_ffdoc.h" |
| 13 #include "xfa/fxfa/app/xfa_ffdocview.h" | 13 #include "xfa/fxfa/app/xfa_ffdocview.h" |
| 14 #include "xfa/fxfa/app/xfa_fffield.h" | 14 #include "xfa/fxfa/app/xfa_fffield.h" |
| 15 #include "xfa/fxfa/app/xfa_ffwidget.h" | 15 #include "xfa/fxfa/app/xfa_ffwidget.h" |
| 16 #include "xfa/fxfa/app/xfa_fwladapter.h" | 16 #include "xfa/fxfa/app/xfa_fwladapter.h" |
| 17 #include "xfa/fxfa/parser/xfa_parser.h" | 17 #include "xfa/fxfa/parser/xfa_parser.h" |
| 18 | 18 |
| 19 CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView) | 19 CXFA_FFWidgetHandler::CXFA_FFWidgetHandler(CXFA_FFDocView* pDocView) |
| 20 : m_pDocView(pDocView) {} | 20 : m_pDocView(pDocView) {} |
| 21 CXFA_FFWidgetHandler::~CXFA_FFWidgetHandler() {} | 21 CXFA_FFWidgetHandler::~CXFA_FFWidgetHandler() {} |
| 22 IXFA_PageView* CXFA_FFWidgetHandler::GetPageView(IXFA_Widget* hWidget) { | 22 IXFA_PageView* CXFA_FFWidgetHandler::GetPageView(IXFA_Widget* hWidget) { |
| 23 return static_cast<CXFA_FFWidget*>(hWidget)->GetPageView(); | 23 return static_cast<CXFA_FFWidget*>(hWidget)->GetPageView(); |
| 24 } | 24 } |
| 25 void CXFA_FFWidgetHandler::GetRect(IXFA_Widget* hWidget, CFX_RectF& rt) { | 25 void CXFA_FFWidgetHandler::GetRect(IXFA_Widget* hWidget, CFX_RectF& rt) { |
| 26 static_cast<CXFA_FFWidget*>(hWidget)->GetWidgetRect(rt); | 26 static_cast<CXFA_FFWidget*>(hWidget)->GetWidgetRect(rt); |
| 27 } | 27 } |
| 28 FX_DWORD CXFA_FFWidgetHandler::GetStatus(IXFA_Widget* hWidget) { | 28 uint32_t CXFA_FFWidgetHandler::GetStatus(IXFA_Widget* hWidget) { |
| 29 return static_cast<CXFA_FFWidget*>(hWidget)->GetStatus(); | 29 return static_cast<CXFA_FFWidget*>(hWidget)->GetStatus(); |
| 30 } | 30 } |
| 31 FX_BOOL CXFA_FFWidgetHandler::GetBBox(IXFA_Widget* hWidget, | 31 FX_BOOL CXFA_FFWidgetHandler::GetBBox(IXFA_Widget* hWidget, |
| 32 CFX_RectF& rtBox, | 32 CFX_RectF& rtBox, |
| 33 FX_DWORD dwStatus, | 33 uint32_t dwStatus, |
| 34 FX_BOOL bDrawFocus) { | 34 FX_BOOL bDrawFocus) { |
| 35 return static_cast<CXFA_FFWidget*>(hWidget) | 35 return static_cast<CXFA_FFWidget*>(hWidget) |
| 36 ->GetBBox(rtBox, dwStatus, bDrawFocus); | 36 ->GetBBox(rtBox, dwStatus, bDrawFocus); |
| 37 } | 37 } |
| 38 CXFA_WidgetAcc* CXFA_FFWidgetHandler::GetDataAcc(IXFA_Widget* hWidget) { | 38 CXFA_WidgetAcc* CXFA_FFWidgetHandler::GetDataAcc(IXFA_Widget* hWidget) { |
| 39 return static_cast<CXFA_FFWidget*>(hWidget)->GetDataAcc(); | 39 return static_cast<CXFA_FFWidget*>(hWidget)->GetDataAcc(); |
| 40 } | 40 } |
| 41 void CXFA_FFWidgetHandler::GetName(IXFA_Widget* hWidget, | 41 void CXFA_FFWidgetHandler::GetName(IXFA_Widget* hWidget, |
| 42 CFX_WideString& wsName, | 42 CFX_WideString& wsName, |
| 43 int32_t iNameType) { | 43 int32_t iNameType) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 67 return bRet; | 67 return bRet; |
| 68 } | 68 } |
| 69 FX_BOOL CXFA_FFWidgetHandler::OnMouseExit(IXFA_Widget* hWidget) { | 69 FX_BOOL CXFA_FFWidgetHandler::OnMouseExit(IXFA_Widget* hWidget) { |
| 70 m_pDocView->LockUpdate(); | 70 m_pDocView->LockUpdate(); |
| 71 FX_BOOL bRet = static_cast<CXFA_FFWidget*>(hWidget)->OnMouseExit(); | 71 FX_BOOL bRet = static_cast<CXFA_FFWidget*>(hWidget)->OnMouseExit(); |
| 72 m_pDocView->UnlockUpdate(); | 72 m_pDocView->UnlockUpdate(); |
| 73 m_pDocView->UpdateDocView(); | 73 m_pDocView->UpdateDocView(); |
| 74 return bRet; | 74 return bRet; |
| 75 } | 75 } |
| 76 FX_BOOL CXFA_FFWidgetHandler::OnLButtonDown(IXFA_Widget* hWidget, | 76 FX_BOOL CXFA_FFWidgetHandler::OnLButtonDown(IXFA_Widget* hWidget, |
| 77 FX_DWORD dwFlags, | 77 uint32_t dwFlags, |
| 78 FX_FLOAT fx, | 78 FX_FLOAT fx, |
| 79 FX_FLOAT fy) { | 79 FX_FLOAT fy) { |
| 80 m_pDocView->LockUpdate(); | 80 m_pDocView->LockUpdate(); |
| 81 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 81 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 82 FX_BOOL bRet = | 82 FX_BOOL bRet = |
| 83 static_cast<CXFA_FFWidget*>(hWidget)->OnLButtonDown(dwFlags, fx, fy); | 83 static_cast<CXFA_FFWidget*>(hWidget)->OnLButtonDown(dwFlags, fx, fy); |
| 84 if (bRet && m_pDocView->SetFocus(hWidget)) { | 84 if (bRet && m_pDocView->SetFocus(hWidget)) { |
| 85 ((CXFA_FFDoc*)m_pDocView->GetDoc()) | 85 ((CXFA_FFDoc*)m_pDocView->GetDoc()) |
| 86 ->GetDocProvider() | 86 ->GetDocProvider() |
| 87 ->SetFocusWidget(m_pDocView->GetDoc(), (IXFA_Widget*)hWidget); | 87 ->SetFocusWidget(m_pDocView->GetDoc(), (IXFA_Widget*)hWidget); |
| 88 } | 88 } |
| 89 m_pDocView->UnlockUpdate(); | 89 m_pDocView->UnlockUpdate(); |
| 90 m_pDocView->UpdateDocView(); | 90 m_pDocView->UpdateDocView(); |
| 91 return bRet; | 91 return bRet; |
| 92 } | 92 } |
| 93 FX_BOOL CXFA_FFWidgetHandler::OnLButtonUp(IXFA_Widget* hWidget, | 93 FX_BOOL CXFA_FFWidgetHandler::OnLButtonUp(IXFA_Widget* hWidget, |
| 94 FX_DWORD dwFlags, | 94 uint32_t dwFlags, |
| 95 FX_FLOAT fx, | 95 FX_FLOAT fx, |
| 96 FX_FLOAT fy) { | 96 FX_FLOAT fy) { |
| 97 m_pDocView->LockUpdate(); | 97 m_pDocView->LockUpdate(); |
| 98 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 98 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 99 m_pDocView->m_bLayoutEvent = TRUE; | 99 m_pDocView->m_bLayoutEvent = TRUE; |
| 100 FX_BOOL bRet = | 100 FX_BOOL bRet = |
| 101 static_cast<CXFA_FFWidget*>(hWidget)->OnLButtonUp(dwFlags, fx, fy); | 101 static_cast<CXFA_FFWidget*>(hWidget)->OnLButtonUp(dwFlags, fx, fy); |
| 102 m_pDocView->UnlockUpdate(); | 102 m_pDocView->UnlockUpdate(); |
| 103 m_pDocView->UpdateDocView(); | 103 m_pDocView->UpdateDocView(); |
| 104 return bRet; | 104 return bRet; |
| 105 } | 105 } |
| 106 FX_BOOL CXFA_FFWidgetHandler::OnLButtonDblClk(IXFA_Widget* hWidget, | 106 FX_BOOL CXFA_FFWidgetHandler::OnLButtonDblClk(IXFA_Widget* hWidget, |
| 107 FX_DWORD dwFlags, | 107 uint32_t dwFlags, |
| 108 FX_FLOAT fx, | 108 FX_FLOAT fx, |
| 109 FX_FLOAT fy) { | 109 FX_FLOAT fy) { |
| 110 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 110 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 111 FX_BOOL bRet = | 111 FX_BOOL bRet = |
| 112 static_cast<CXFA_FFWidget*>(hWidget)->OnLButtonDblClk(dwFlags, fx, fy); | 112 static_cast<CXFA_FFWidget*>(hWidget)->OnLButtonDblClk(dwFlags, fx, fy); |
| 113 m_pDocView->RunInvalidate(); | 113 m_pDocView->RunInvalidate(); |
| 114 return bRet; | 114 return bRet; |
| 115 } | 115 } |
| 116 FX_BOOL CXFA_FFWidgetHandler::OnMouseMove(IXFA_Widget* hWidget, | 116 FX_BOOL CXFA_FFWidgetHandler::OnMouseMove(IXFA_Widget* hWidget, |
| 117 FX_DWORD dwFlags, | 117 uint32_t dwFlags, |
| 118 FX_FLOAT fx, | 118 FX_FLOAT fx, |
| 119 FX_FLOAT fy) { | 119 FX_FLOAT fy) { |
| 120 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 120 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 121 FX_BOOL bRet = | 121 FX_BOOL bRet = |
| 122 static_cast<CXFA_FFWidget*>(hWidget)->OnMouseMove(dwFlags, fx, fy); | 122 static_cast<CXFA_FFWidget*>(hWidget)->OnMouseMove(dwFlags, fx, fy); |
| 123 m_pDocView->RunInvalidate(); | 123 m_pDocView->RunInvalidate(); |
| 124 return bRet; | 124 return bRet; |
| 125 } | 125 } |
| 126 FX_BOOL CXFA_FFWidgetHandler::OnMouseWheel(IXFA_Widget* hWidget, | 126 FX_BOOL CXFA_FFWidgetHandler::OnMouseWheel(IXFA_Widget* hWidget, |
| 127 FX_DWORD dwFlags, | 127 uint32_t dwFlags, |
| 128 int16_t zDelta, | 128 int16_t zDelta, |
| 129 FX_FLOAT fx, | 129 FX_FLOAT fx, |
| 130 FX_FLOAT fy) { | 130 FX_FLOAT fy) { |
| 131 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 131 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 132 FX_BOOL bRet = static_cast<CXFA_FFWidget*>(hWidget) | 132 FX_BOOL bRet = static_cast<CXFA_FFWidget*>(hWidget) |
| 133 ->OnMouseWheel(dwFlags, zDelta, fx, fy); | 133 ->OnMouseWheel(dwFlags, zDelta, fx, fy); |
| 134 m_pDocView->RunInvalidate(); | 134 m_pDocView->RunInvalidate(); |
| 135 return bRet; | 135 return bRet; |
| 136 } | 136 } |
| 137 FX_BOOL CXFA_FFWidgetHandler::OnRButtonDown(IXFA_Widget* hWidget, | 137 FX_BOOL CXFA_FFWidgetHandler::OnRButtonDown(IXFA_Widget* hWidget, |
| 138 FX_DWORD dwFlags, | 138 uint32_t dwFlags, |
| 139 FX_FLOAT fx, | 139 FX_FLOAT fx, |
| 140 FX_FLOAT fy) { | 140 FX_FLOAT fy) { |
| 141 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 141 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 142 FX_BOOL bRet = | 142 FX_BOOL bRet = |
| 143 static_cast<CXFA_FFWidget*>(hWidget)->OnRButtonDown(dwFlags, fx, fy); | 143 static_cast<CXFA_FFWidget*>(hWidget)->OnRButtonDown(dwFlags, fx, fy); |
| 144 if (bRet && m_pDocView->SetFocus(hWidget)) { | 144 if (bRet && m_pDocView->SetFocus(hWidget)) { |
| 145 ((CXFA_FFDoc*)m_pDocView->GetDoc()) | 145 ((CXFA_FFDoc*)m_pDocView->GetDoc()) |
| 146 ->GetDocProvider() | 146 ->GetDocProvider() |
| 147 ->SetFocusWidget(m_pDocView->GetDoc(), (IXFA_Widget*)hWidget); | 147 ->SetFocusWidget(m_pDocView->GetDoc(), (IXFA_Widget*)hWidget); |
| 148 } | 148 } |
| 149 m_pDocView->RunInvalidate(); | 149 m_pDocView->RunInvalidate(); |
| 150 return bRet; | 150 return bRet; |
| 151 } | 151 } |
| 152 FX_BOOL CXFA_FFWidgetHandler::OnRButtonUp(IXFA_Widget* hWidget, | 152 FX_BOOL CXFA_FFWidgetHandler::OnRButtonUp(IXFA_Widget* hWidget, |
| 153 FX_DWORD dwFlags, | 153 uint32_t dwFlags, |
| 154 FX_FLOAT fx, | 154 FX_FLOAT fx, |
| 155 FX_FLOAT fy) { | 155 FX_FLOAT fy) { |
| 156 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 156 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 157 FX_BOOL bRet = | 157 FX_BOOL bRet = |
| 158 static_cast<CXFA_FFWidget*>(hWidget)->OnRButtonUp(dwFlags, fx, fy); | 158 static_cast<CXFA_FFWidget*>(hWidget)->OnRButtonUp(dwFlags, fx, fy); |
| 159 m_pDocView->RunInvalidate(); | 159 m_pDocView->RunInvalidate(); |
| 160 return bRet; | 160 return bRet; |
| 161 } | 161 } |
| 162 FX_BOOL CXFA_FFWidgetHandler::OnRButtonDblClk(IXFA_Widget* hWidget, | 162 FX_BOOL CXFA_FFWidgetHandler::OnRButtonDblClk(IXFA_Widget* hWidget, |
| 163 FX_DWORD dwFlags, | 163 uint32_t dwFlags, |
| 164 FX_FLOAT fx, | 164 FX_FLOAT fx, |
| 165 FX_FLOAT fy) { | 165 FX_FLOAT fy) { |
| 166 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 166 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 167 FX_BOOL bRet = | 167 FX_BOOL bRet = |
| 168 static_cast<CXFA_FFWidget*>(hWidget)->OnRButtonDblClk(dwFlags, fx, fy); | 168 static_cast<CXFA_FFWidget*>(hWidget)->OnRButtonDblClk(dwFlags, fx, fy); |
| 169 m_pDocView->RunInvalidate(); | 169 m_pDocView->RunInvalidate(); |
| 170 return bRet; | 170 return bRet; |
| 171 } | 171 } |
| 172 FX_BOOL CXFA_FFWidgetHandler::OnKeyDown(IXFA_Widget* hWidget, | 172 FX_BOOL CXFA_FFWidgetHandler::OnKeyDown(IXFA_Widget* hWidget, |
| 173 FX_DWORD dwKeyCode, | 173 uint32_t dwKeyCode, |
| 174 FX_DWORD dwFlags) { | 174 uint32_t dwFlags) { |
| 175 FX_BOOL bRet = | 175 FX_BOOL bRet = |
| 176 static_cast<CXFA_FFWidget*>(hWidget)->OnKeyDown(dwKeyCode, dwFlags); | 176 static_cast<CXFA_FFWidget*>(hWidget)->OnKeyDown(dwKeyCode, dwFlags); |
| 177 m_pDocView->RunInvalidate(); | 177 m_pDocView->RunInvalidate(); |
| 178 m_pDocView->UpdateDocView(); | 178 m_pDocView->UpdateDocView(); |
| 179 return bRet; | 179 return bRet; |
| 180 } | 180 } |
| 181 FX_BOOL CXFA_FFWidgetHandler::OnKeyUp(IXFA_Widget* hWidget, | 181 FX_BOOL CXFA_FFWidgetHandler::OnKeyUp(IXFA_Widget* hWidget, |
| 182 FX_DWORD dwKeyCode, | 182 uint32_t dwKeyCode, |
| 183 FX_DWORD dwFlags) { | 183 uint32_t dwFlags) { |
| 184 FX_BOOL bRet = | 184 FX_BOOL bRet = |
| 185 static_cast<CXFA_FFWidget*>(hWidget)->OnKeyUp(dwKeyCode, dwFlags); | 185 static_cast<CXFA_FFWidget*>(hWidget)->OnKeyUp(dwKeyCode, dwFlags); |
| 186 m_pDocView->RunInvalidate(); | 186 m_pDocView->RunInvalidate(); |
| 187 return bRet; | 187 return bRet; |
| 188 } | 188 } |
| 189 FX_BOOL CXFA_FFWidgetHandler::OnChar(IXFA_Widget* hWidget, | 189 FX_BOOL CXFA_FFWidgetHandler::OnChar(IXFA_Widget* hWidget, |
| 190 FX_DWORD dwChar, | 190 uint32_t dwChar, |
| 191 FX_DWORD dwFlags) { | 191 uint32_t dwFlags) { |
| 192 FX_BOOL bRet = static_cast<CXFA_FFWidget*>(hWidget)->OnChar(dwChar, dwFlags); | 192 FX_BOOL bRet = static_cast<CXFA_FFWidget*>(hWidget)->OnChar(dwChar, dwFlags); |
| 193 m_pDocView->RunInvalidate(); | 193 m_pDocView->RunInvalidate(); |
| 194 return bRet; | 194 return bRet; |
| 195 } | 195 } |
| 196 FX_DWORD CXFA_FFWidgetHandler::OnHitTest(IXFA_Widget* hWidget, | 196 uint32_t CXFA_FFWidgetHandler::OnHitTest(IXFA_Widget* hWidget, |
| 197 FX_FLOAT fx, | 197 FX_FLOAT fx, |
| 198 FX_FLOAT fy) { | 198 FX_FLOAT fy) { |
| 199 if (!(static_cast<CXFA_FFWidget*>(hWidget)->GetStatus() & | 199 if (!(static_cast<CXFA_FFWidget*>(hWidget)->GetStatus() & |
| 200 XFA_WIDGETSTATUS_Visible)) { | 200 XFA_WIDGETSTATUS_Visible)) { |
| 201 return FWL_WGTHITTEST_Unknown; | 201 return FWL_WGTHITTEST_Unknown; |
| 202 } | 202 } |
| 203 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); | 203 static_cast<CXFA_FFWidget*>(hWidget)->Rotate2Normal(fx, fy); |
| 204 return static_cast<CXFA_FFWidget*>(hWidget)->OnHitTest(fx, fy); | 204 return static_cast<CXFA_FFWidget*>(hWidget)->OnHitTest(fx, fy); |
| 205 } | 205 } |
| 206 FX_BOOL CXFA_FFWidgetHandler::OnSetCursor(IXFA_Widget* hWidget, | 206 FX_BOOL CXFA_FFWidgetHandler::OnSetCursor(IXFA_Widget* hWidget, |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 if (pParent) | 527 if (pParent) |
| 528 pParent->InsertChild(pNewTemplateNode, pBefore); | 528 pParent->InsertChild(pNewTemplateNode, pBefore); |
| 529 return pNewTemplateNode; | 529 return pNewTemplateNode; |
| 530 } | 530 } |
| 531 CXFA_Node* CXFA_FFWidgetHandler::CreateFontNode(CXFA_Node* pParent) const { | 531 CXFA_Node* CXFA_FFWidgetHandler::CreateFontNode(CXFA_Node* pParent) const { |
| 532 CXFA_Node* pFont = CreateCopyNode(XFA_ELEMENT_Font, pParent); | 532 CXFA_Node* pFont = CreateCopyNode(XFA_ELEMENT_Font, pParent); |
| 533 pFont->SetCData(XFA_ATTRIBUTE_Typeface, FX_WSTRC(L"Myriad Pro"), FALSE); | 533 pFont->SetCData(XFA_ATTRIBUTE_Typeface, FX_WSTRC(L"Myriad Pro"), FALSE); |
| 534 return pFont; | 534 return pFont; |
| 535 } | 535 } |
| 536 CXFA_Node* CXFA_FFWidgetHandler::CreateMarginNode(CXFA_Node* pParent, | 536 CXFA_Node* CXFA_FFWidgetHandler::CreateMarginNode(CXFA_Node* pParent, |
| 537 FX_DWORD dwFlags, | 537 uint32_t dwFlags, |
| 538 FX_FLOAT fInsets[4]) const { | 538 FX_FLOAT fInsets[4]) const { |
| 539 CXFA_Node* pMargin = CreateCopyNode(XFA_ELEMENT_Margin, pParent); | 539 CXFA_Node* pMargin = CreateCopyNode(XFA_ELEMENT_Margin, pParent); |
| 540 if (dwFlags & 0x01) { | 540 if (dwFlags & 0x01) { |
| 541 pMargin->SetMeasure(XFA_ATTRIBUTE_LeftInset, | 541 pMargin->SetMeasure(XFA_ATTRIBUTE_LeftInset, |
| 542 CXFA_Measurement(fInsets[0], XFA_UNIT_Pt), FALSE); | 542 CXFA_Measurement(fInsets[0], XFA_UNIT_Pt), FALSE); |
| 543 } | 543 } |
| 544 if (dwFlags & 0x02) { | 544 if (dwFlags & 0x02) { |
| 545 pMargin->SetMeasure(XFA_ATTRIBUTE_TopInset, | 545 pMargin->SetMeasure(XFA_ATTRIBUTE_TopInset, |
| 546 CXFA_Measurement(fInsets[1], XFA_UNIT_Pt), FALSE); | 546 CXFA_Measurement(fInsets[1], XFA_UNIT_Pt), FALSE); |
| 547 } | 547 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 return static_cast<CXFA_FFWidget*>(hWidget) | 625 return static_cast<CXFA_FFWidget*>(hWidget) |
| 626 ->GetSuggestWords(pointf, sSuggest); | 626 ->GetSuggestWords(pointf, sSuggest); |
| 627 } | 627 } |
| 628 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( | 628 FX_BOOL CXFA_FFMenuHandler::ReplaceSpellCheckWord( |
| 629 IXFA_Widget* hWidget, | 629 IXFA_Widget* hWidget, |
| 630 CFX_PointF pointf, | 630 CFX_PointF pointf, |
| 631 const CFX_ByteStringC& bsReplace) { | 631 const CFX_ByteStringC& bsReplace) { |
| 632 return static_cast<CXFA_FFWidget*>(hWidget) | 632 return static_cast<CXFA_FFWidget*>(hWidget) |
| 633 ->ReplaceSpellCheckWord(pointf, bsReplace); | 633 ->ReplaceSpellCheckWord(pointf, bsReplace); |
| 634 } | 634 } |
| OLD | NEW |