Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: xfa/fxfa/app/xfa_ffdocview.cpp

Issue 2089443002: Convert XFA_ELEMENT to an enum class (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: More unknown checks Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fxfa/app/xfa_ffdochandler.cpp ('k') | xfa/fxfa/app/xfa_fffield.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/include/xfa_ffdocview.h" 7 #include "xfa/fxfa/include/xfa_ffdocview.h"
8 8
9 #include "core/fxcrt/include/fx_ext.h" 9 #include "core/fxcrt/include/fx_ext.h"
10 #include "xfa/fxfa/app/xfa_ffbarcode.h" 10 #include "xfa/fxfa/app/xfa_ffbarcode.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 m_iStatus = XFA_DOCVIEW_LAYOUTSTATUS_Doing; 103 m_iStatus = XFA_DOCVIEW_LAYOUTSTATUS_Doing;
104 return iStatus; 104 return iStatus;
105 } 105 }
106 void CXFA_FFDocView::StopLayout() { 106 void CXFA_FFDocView::StopLayout() {
107 CXFA_Node* pRootItem = 107 CXFA_Node* pRootItem =
108 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form)); 108 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
109 if (!pRootItem) { 109 if (!pRootItem) {
110 return; 110 return;
111 } 111 }
112 CXFA_Node* pSubformNode = pRootItem->GetChild(0, XFA_ELEMENT_Subform); 112 CXFA_Node* pSubformNode = pRootItem->GetChild(0, XFA_Element::Subform);
113 if (!pSubformNode) { 113 if (!pSubformNode) {
114 return; 114 return;
115 } 115 }
116 CXFA_Node* pPageSetNode = 116 CXFA_Node* pPageSetNode =
117 pSubformNode->GetFirstChildByClass(XFA_ELEMENT_PageSet); 117 pSubformNode->GetFirstChildByClass(XFA_Element::PageSet);
118 if (!pPageSetNode) { 118 if (!pPageSetNode) {
119 return; 119 return;
120 } 120 }
121 RunCalculateWidgets(); 121 RunCalculateWidgets();
122 RunValidate(); 122 RunValidate();
123 InitLayout(pPageSetNode); 123 InitLayout(pPageSetNode);
124 InitCalculate(pPageSetNode); 124 InitCalculate(pPageSetNode);
125 InitValidate(pPageSetNode); 125 InitValidate(pPageSetNode);
126 ExecEventActivityByDeepFirst(pPageSetNode, XFA_EVENT_Ready, TRUE); 126 ExecEventActivityByDeepFirst(pPageSetNode, XFA_EVENT_Ready, TRUE);
127 ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_Ready); 127 ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_Ready);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 return NULL; 202 return NULL;
203 } 203 }
204 return static_cast<CXFA_FFPageView*>(m_pXFADocLayout->GetPage(nIndex)); 204 return static_cast<CXFA_FFPageView*>(m_pXFADocLayout->GetPage(nIndex));
205 } 205 }
206 206
207 CXFA_LayoutProcessor* CXFA_FFDocView::GetXFALayout() const { 207 CXFA_LayoutProcessor* CXFA_FFDocView::GetXFALayout() const {
208 return m_pDoc->GetXFADoc()->GetDocLayout(); 208 return m_pDoc->GetXFADoc()->GetDocLayout();
209 } 209 }
210 FX_BOOL CXFA_FFDocView::ResetSingleWidgetAccData(CXFA_WidgetAcc* pWidgetAcc) { 210 FX_BOOL CXFA_FFDocView::ResetSingleWidgetAccData(CXFA_WidgetAcc* pWidgetAcc) {
211 CXFA_Node* pNode = pWidgetAcc->GetNode(); 211 CXFA_Node* pNode = pWidgetAcc->GetNode();
212 XFA_ELEMENT eType = pNode->GetClassID(); 212 XFA_Element eType = pNode->GetClassID();
213 if (eType != XFA_ELEMENT_Field && eType != XFA_ELEMENT_ExclGroup) { 213 if (eType != XFA_Element::Field && eType != XFA_Element::ExclGroup) {
214 return FALSE; 214 return FALSE;
215 } 215 }
216 pWidgetAcc->ResetData(); 216 pWidgetAcc->ResetData();
217 pWidgetAcc->UpdateUIDisplay(); 217 pWidgetAcc->UpdateUIDisplay();
218 if (CXFA_Validate validate = pWidgetAcc->GetValidate()) { 218 if (CXFA_Validate validate = pWidgetAcc->GetValidate()) {
219 AddValidateWidget(pWidgetAcc); 219 AddValidateWidget(pWidgetAcc);
220 validate.GetNode()->SetFlag(XFA_NodeFlag_NeedsInitApp, false); 220 validate.GetNode()->SetFlag(XFA_NodeFlag_NeedsInitApp, false);
221 } 221 }
222 return TRUE; 222 return TRUE;
223 } 223 }
224 void CXFA_FFDocView::ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc) { 224 void CXFA_FFDocView::ResetWidgetData(CXFA_WidgetAcc* pWidgetAcc) {
225 m_bLayoutEvent = TRUE; 225 m_bLayoutEvent = TRUE;
226 FX_BOOL bChanged = FALSE; 226 FX_BOOL bChanged = FALSE;
227 CXFA_Node* pFormNode = NULL; 227 CXFA_Node* pFormNode = NULL;
228 if (pWidgetAcc) { 228 if (pWidgetAcc) {
229 bChanged = ResetSingleWidgetAccData(pWidgetAcc); 229 bChanged = ResetSingleWidgetAccData(pWidgetAcc);
230 pFormNode = pWidgetAcc->GetNode(); 230 pFormNode = pWidgetAcc->GetNode();
231 } else { 231 } else {
232 pFormNode = GetRootSubform(); 232 pFormNode = GetRootSubform();
233 } 233 }
234 if (!pFormNode) { 234 if (!pFormNode) {
235 return; 235 return;
236 } 236 }
237 if (pFormNode->GetClassID() != XFA_ELEMENT_Field && 237 if (pFormNode->GetClassID() != XFA_Element::Field &&
238 pFormNode->GetClassID() != XFA_ELEMENT_ExclGroup) { 238 pFormNode->GetClassID() != XFA_Element::ExclGroup) {
239 CXFA_WidgetAccIterator Iterator(this, pFormNode); 239 CXFA_WidgetAccIterator Iterator(this, pFormNode);
240 while (CXFA_WidgetAcc* pAcc = Iterator.MoveToNext()) { 240 while (CXFA_WidgetAcc* pAcc = Iterator.MoveToNext()) {
241 bChanged |= ResetSingleWidgetAccData(pAcc); 241 bChanged |= ResetSingleWidgetAccData(pAcc);
242 if (pAcc->GetNode()->GetClassID() == XFA_ELEMENT_ExclGroup) { 242 if (pAcc->GetNode()->GetClassID() == XFA_Element::ExclGroup) {
243 Iterator.SkipTree(); 243 Iterator.SkipTree();
244 } 244 }
245 } 245 }
246 } 246 }
247 if (bChanged) { 247 if (bChanged) {
248 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc); 248 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);
249 } 249 }
250 } 250 }
251 int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam, 251 int32_t CXFA_FFDocView::ProcessWidgetEvent(CXFA_EventParam* pParam,
252 CXFA_WidgetAcc* pWidgetAcc) { 252 CXFA_WidgetAcc* pWidgetAcc) {
253 if (pParam == NULL) { 253 if (!pParam)
254 return XFA_EVENTERROR_Error; 254 return XFA_EVENTERROR_Error;
255 } 255
256 if (pParam->m_eType == XFA_EVENT_Validate) { 256 if (pParam->m_eType == XFA_EVENT_Validate) {
257 CFX_WideString wsValidateStr(L"preSubmit"); 257 CFX_WideString wsValidateStr(L"preSubmit");
258 CXFA_Node* pConfigItem = 258 CXFA_Node* pConfigItem =
259 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config)); 259 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Config));
260 if (pConfigItem) { 260 if (pConfigItem) {
261 CXFA_Node* pValidateNode = NULL; 261 CXFA_Node* pValidateNode = nullptr;
262 CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_ELEMENT_Acrobat); 262 CXFA_Node* pAcrobatNode = pConfigItem->GetChild(0, XFA_Element::Acrobat);
263 pValidateNode = 263 pValidateNode = pAcrobatNode
264 pAcrobatNode ? pAcrobatNode->GetChild(0, XFA_ELEMENT_Validate) : NULL; 264 ? pAcrobatNode->GetChild(0, XFA_Element::Validate)
265 : nullptr;
265 if (!pValidateNode) { 266 if (!pValidateNode) {
266 CXFA_Node* pPresentNode = pConfigItem->GetChild(0, XFA_ELEMENT_Present); 267 CXFA_Node* pPresentNode =
268 pConfigItem->GetChild(0, XFA_Element::Present);
267 pValidateNode = pPresentNode 269 pValidateNode = pPresentNode
268 ? pPresentNode->GetChild(0, XFA_ELEMENT_Validate) 270 ? pPresentNode->GetChild(0, XFA_Element::Validate)
269 : NULL; 271 : nullptr;
270 } 272 }
271 if (pValidateNode) { 273 if (pValidateNode) {
272 wsValidateStr = pValidateNode->GetContent(); 274 wsValidateStr = pValidateNode->GetContent();
273 } 275 }
274 } 276 }
275 FX_BOOL bValidate = FALSE; 277 FX_BOOL bValidate = FALSE;
276 switch (pParam->m_iValidateActivities) { 278 switch (pParam->m_iValidateActivities) {
277 case XFA_VALIDATE_preSubmit: 279 case XFA_VALIDATE_preSubmit:
278 bValidate = wsValidateStr.Find(L"preSubmit") != -1; 280 bValidate = wsValidateStr.Find(L"preSubmit") != -1;
279 break; 281 break;
280 case XFA_VALIDATE_prePrint: 282 case XFA_VALIDATE_prePrint:
281 bValidate = wsValidateStr.Find(L"prePrint") != -1; 283 bValidate = wsValidateStr.Find(L"prePrint") != -1;
282 break; 284 break;
283 case XFA_VALIDATE_preExecute: 285 case XFA_VALIDATE_preExecute:
284 bValidate = wsValidateStr.Find(L"preExecute") != -1; 286 bValidate = wsValidateStr.Find(L"preExecute") != -1;
285 break; 287 break;
286 case XFA_VALIDATE_preSave: 288 case XFA_VALIDATE_preSave:
287 bValidate = wsValidateStr.Find(L"preSave") != -1; 289 bValidate = wsValidateStr.Find(L"preSave") != -1;
288 break; 290 break;
289 } 291 }
290 if (!bValidate) { 292 if (!bValidate) {
291 return XFA_EVENTERROR_Success; 293 return XFA_EVENTERROR_Success;
292 } 294 }
293 } 295 }
294 CXFA_Node* pNode = pWidgetAcc ? pWidgetAcc->GetNode() : NULL; 296 CXFA_Node* pNode = pWidgetAcc ? pWidgetAcc->GetNode() : nullptr;
295 if (!pNode) { 297 if (!pNode) {
296 CXFA_Node* pRootItem = 298 CXFA_Node* pRootItem =
297 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form)); 299 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
298 if (!pRootItem) { 300 if (!pRootItem) {
299 return XFA_EVENTERROR_Error; 301 return XFA_EVENTERROR_Error;
300 } 302 }
301 pNode = pRootItem->GetChild(0, XFA_ELEMENT_Subform); 303 pNode = pRootItem->GetChild(0, XFA_Element::Subform);
302 } 304 }
303 ExecEventActivityByDeepFirst(pNode, pParam->m_eType, pParam->m_bIsFormReady); 305 ExecEventActivityByDeepFirst(pNode, pParam->m_eType, pParam->m_bIsFormReady);
304 return XFA_EVENTERROR_Success; 306 return XFA_EVENTERROR_Success;
305 } 307 }
306 CXFA_FFWidgetHandler* CXFA_FFDocView::GetWidgetHandler() { 308 CXFA_FFWidgetHandler* CXFA_FFDocView::GetWidgetHandler() {
307 if (!m_pWidgetHandler) { 309 if (!m_pWidgetHandler) {
308 m_pWidgetHandler = new CXFA_FFWidgetHandler(this); 310 m_pWidgetHandler = new CXFA_FFWidgetHandler(this);
309 } 311 }
310 return m_pWidgetHandler; 312 return m_pWidgetHandler;
311 } 313 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 m_pFocusWidget = NULL; 394 m_pFocusWidget = NULL;
393 m_pOldFocusWidget = NULL; 395 m_pOldFocusWidget = NULL;
394 } 396 }
395 } 397 }
396 static int32_t XFA_ProcessEvent(CXFA_FFDocView* pDocView, 398 static int32_t XFA_ProcessEvent(CXFA_FFDocView* pDocView,
397 CXFA_WidgetAcc* pWidgetAcc, 399 CXFA_WidgetAcc* pWidgetAcc,
398 CXFA_EventParam* pParam) { 400 CXFA_EventParam* pParam) {
399 if (!pParam || pParam->m_eType == XFA_EVENT_Unknown) { 401 if (!pParam || pParam->m_eType == XFA_EVENT_Unknown) {
400 return XFA_EVENTERROR_NotExist; 402 return XFA_EVENTERROR_NotExist;
401 } 403 }
402 if (!pWidgetAcc || pWidgetAcc->GetClassID() == XFA_ELEMENT_Draw) { 404 if (!pWidgetAcc || pWidgetAcc->GetClassID() == XFA_Element::Draw) {
403 return XFA_EVENTERROR_NotExist; 405 return XFA_EVENTERROR_NotExist;
404 } 406 }
405 switch (pParam->m_eType) { 407 switch (pParam->m_eType) {
406 case XFA_EVENT_Calculate: 408 case XFA_EVENT_Calculate:
407 return pWidgetAcc->ProcessCalculate(); 409 return pWidgetAcc->ProcessCalculate();
408 case XFA_EVENT_Validate: 410 case XFA_EVENT_Validate:
409 if (((CXFA_FFDoc*)pDocView->GetDoc()) 411 if (((CXFA_FFDoc*)pDocView->GetDoc())
410 ->GetDocProvider() 412 ->GetDocProvider()
411 ->IsValidationsEnabled(pDocView->GetDoc())) { 413 ->IsValidationsEnabled(pDocView->GetDoc())) {
412 return pWidgetAcc->ProcessValidate(0x01); 414 return pWidgetAcc->ProcessValidate(0x01);
(...skipping 19 matching lines...) Expand all
432 } 434 }
433 int32_t CXFA_FFDocView::ExecEventActivityByDeepFirst(CXFA_Node* pFormNode, 435 int32_t CXFA_FFDocView::ExecEventActivityByDeepFirst(CXFA_Node* pFormNode,
434 XFA_EVENTTYPE eEventType, 436 XFA_EVENTTYPE eEventType,
435 FX_BOOL bIsFormReady, 437 FX_BOOL bIsFormReady,
436 FX_BOOL bRecursive, 438 FX_BOOL bRecursive,
437 CXFA_Node* pExclude) { 439 CXFA_Node* pExclude) {
438 int32_t iRet = XFA_EVENTERROR_NotExist; 440 int32_t iRet = XFA_EVENTERROR_NotExist;
439 if (pFormNode == pExclude) { 441 if (pFormNode == pExclude) {
440 return iRet; 442 return iRet;
441 } 443 }
442 XFA_ELEMENT elementType = pFormNode->GetClassID(); 444 XFA_Element elementType = pFormNode->GetClassID();
443 if (elementType == XFA_ELEMENT_Field) { 445 if (elementType == XFA_Element::Field) {
444 if (eEventType == XFA_EVENT_IndexChange) { 446 if (eEventType == XFA_EVENT_IndexChange) {
445 return iRet; 447 return iRet;
446 } 448 }
447 CXFA_WidgetAcc* pWidgetAcc = (CXFA_WidgetAcc*)pFormNode->GetWidgetData(); 449 CXFA_WidgetAcc* pWidgetAcc = (CXFA_WidgetAcc*)pFormNode->GetWidgetData();
448 if (pWidgetAcc == NULL) { 450 if (pWidgetAcc == NULL) {
449 return iRet; 451 return iRet;
450 } 452 }
451 CXFA_EventParam eParam; 453 CXFA_EventParam eParam;
452 eParam.m_eType = eEventType; 454 eParam.m_eType = eEventType;
453 eParam.m_pTarget = pWidgetAcc; 455 eParam.m_pTarget = pWidgetAcc;
454 eParam.m_bIsFormReady = bIsFormReady; 456 eParam.m_bIsFormReady = bIsFormReady;
455 return XFA_ProcessEvent(this, pWidgetAcc, &eParam); 457 return XFA_ProcessEvent(this, pWidgetAcc, &eParam);
456 } 458 }
457 if (bRecursive) { 459 if (bRecursive) {
458 for (CXFA_Node* pNode = pFormNode->GetNodeItem( 460 for (CXFA_Node* pNode = pFormNode->GetNodeItem(
459 XFA_NODEITEM_FirstChild, XFA_ObjectType::ContainerNode); 461 XFA_NODEITEM_FirstChild, XFA_ObjectType::ContainerNode);
460 pNode; pNode = pNode->GetNodeItem(XFA_NODEITEM_NextSibling, 462 pNode; pNode = pNode->GetNodeItem(XFA_NODEITEM_NextSibling,
461 XFA_ObjectType::ContainerNode)) { 463 XFA_ObjectType::ContainerNode)) {
462 elementType = pNode->GetClassID(); 464 elementType = pNode->GetClassID();
463 if (elementType != XFA_ELEMENT_Variables && 465 if (elementType != XFA_Element::Variables &&
464 elementType != XFA_ELEMENT_Draw) { 466 elementType != XFA_Element::Draw) {
465 iRet |= ExecEventActivityByDeepFirst(pNode, eEventType, bIsFormReady, 467 iRet |= ExecEventActivityByDeepFirst(pNode, eEventType, bIsFormReady,
466 bRecursive, pExclude); 468 bRecursive, pExclude);
467 } 469 }
468 } 470 }
469 } 471 }
470 CXFA_WidgetAcc* pWidgetAcc = (CXFA_WidgetAcc*)pFormNode->GetWidgetData(); 472 CXFA_WidgetAcc* pWidgetAcc = (CXFA_WidgetAcc*)pFormNode->GetWidgetData();
471 if (pWidgetAcc == NULL) { 473 if (pWidgetAcc == NULL) {
472 return iRet; 474 return iRet;
473 } 475 }
474 CXFA_EventParam eParam; 476 CXFA_EventParam eParam;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 eParam.m_pTarget = pWidgetAcc; 593 eParam.m_pTarget = pWidgetAcc;
592 pWidgetAcc->ProcessEvent(XFA_ATTRIBUTEENUM_IndexChange, &eParam); 594 pWidgetAcc->ProcessEvent(XFA_ATTRIBUTEENUM_IndexChange, &eParam);
593 } 595 }
594 m_IndexChangedSubforms.RemoveAll(); 596 m_IndexChangedSubforms.RemoveAll();
595 } 597 }
596 void CXFA_FFDocView::AddNewFormNode(CXFA_Node* pNode) { 598 void CXFA_FFDocView::AddNewFormNode(CXFA_Node* pNode) {
597 m_NewAddedNodes.Add(pNode); 599 m_NewAddedNodes.Add(pNode);
598 InitLayout(pNode); 600 InitLayout(pNode);
599 } 601 }
600 void CXFA_FFDocView::AddIndexChangedSubform(CXFA_Node* pNode) { 602 void CXFA_FFDocView::AddIndexChangedSubform(CXFA_Node* pNode) {
601 ASSERT(pNode->GetClassID() == XFA_ELEMENT_Subform); 603 ASSERT(pNode->GetClassID() == XFA_Element::Subform);
602 m_IndexChangedSubforms.Add(pNode); 604 m_IndexChangedSubforms.Add(pNode);
603 } 605 }
604 void CXFA_FFDocView::RunDocClose() { 606 void CXFA_FFDocView::RunDocClose() {
605 CXFA_Node* pRootItem = 607 CXFA_Node* pRootItem =
606 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form)); 608 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
607 if (!pRootItem) { 609 if (!pRootItem) {
608 return; 610 return;
609 } 611 }
610 ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_DocClose); 612 ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_DocClose);
611 } 613 }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 return; 797 return;
796 } 798 }
797 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc); 799 m_pDoc->GetDocProvider()->SetChangeMark(m_pDoc);
798 } 800 }
799 CXFA_Node* CXFA_FFDocView::GetRootSubform() { 801 CXFA_Node* CXFA_FFDocView::GetRootSubform() {
800 CXFA_Node* pFormPacketNode = 802 CXFA_Node* pFormPacketNode =
801 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form)); 803 ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
802 if (!pFormPacketNode) { 804 if (!pFormPacketNode) {
803 return NULL; 805 return NULL;
804 } 806 }
805 return pFormPacketNode->GetFirstChildByClass(XFA_ELEMENT_Subform); 807 return pFormPacketNode->GetFirstChildByClass(XFA_Element::Subform);
806 } 808 }
807 809
808 CXFA_WidgetAccIterator::CXFA_WidgetAccIterator(CXFA_FFDocView* pDocView, 810 CXFA_WidgetAccIterator::CXFA_WidgetAccIterator(CXFA_FFDocView* pDocView,
809 CXFA_Node* pTravelRoot) 811 CXFA_Node* pTravelRoot)
810 : m_ContentIterator(pTravelRoot) { 812 : m_ContentIterator(pTravelRoot) {
811 m_pDocView = pDocView; 813 m_pDocView = pDocView;
812 m_pCurWidgetAcc = NULL; 814 m_pCurWidgetAcc = NULL;
813 } 815 }
814 CXFA_WidgetAccIterator::~CXFA_WidgetAccIterator() {} 816 CXFA_WidgetAccIterator::~CXFA_WidgetAccIterator() {}
815 void CXFA_WidgetAccIterator::Reset() { 817 void CXFA_WidgetAccIterator::Reset() {
(...skipping 23 matching lines...) Expand all
839 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { 841 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() {
840 return NULL; 842 return NULL;
841 } 843 }
842 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { 844 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) {
843 return FALSE; 845 return FALSE;
844 } 846 }
845 void CXFA_WidgetAccIterator::SkipTree() { 847 void CXFA_WidgetAccIterator::SkipTree() {
846 m_ContentIterator.SkipChildrenAndMoveToNext(); 848 m_ContentIterator.SkipChildrenAndMoveToNext();
847 m_pCurWidgetAcc = NULL; 849 m_pCurWidgetAcc = NULL;
848 } 850 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_ffdochandler.cpp ('k') | xfa/fxfa/app/xfa_fffield.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698