| 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 "../../../foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
| 8 #include "../common/xfa_utils.h" | 8 #include "xfa/src/fxfa/src/common/xfa_utils.h" |
| 9 #include "../common/xfa_object.h" | 9 #include "xfa/src/fxfa/src/common/xfa_object.h" |
| 10 #include "../common/xfa_document.h" | 10 #include "xfa/src/fxfa/src/common/xfa_document.h" |
| 11 #include "../common/xfa_parser.h" | 11 #include "xfa/src/fxfa/src/common/xfa_parser.h" |
| 12 #include "../common/xfa_script.h" | 12 #include "xfa/src/fxfa/src/common/xfa_script.h" |
| 13 #include "../common/xfa_docdata.h" | 13 #include "xfa/src/fxfa/src/common/xfa_docdata.h" |
| 14 #include "../common/xfa_doclayout.h" | 14 #include "xfa/src/fxfa/src/common/xfa_doclayout.h" |
| 15 #include "../common/xfa_debug.h" | 15 #include "xfa/src/fxfa/src/common/xfa_localemgr.h" |
| 16 #include "../common/xfa_localemgr.h" | 16 #include "xfa/src/fxfa/src/common/xfa_fm2jsapi.h" |
| 17 #include "../common/xfa_fm2jsapi.h" | |
| 18 #include "xfa_debug_parser.h" | |
| 19 #include "xfa_document_layout_imp.h" | 17 #include "xfa_document_layout_imp.h" |
| 20 #include "xfa_layout_itemlayout.h" | 18 #include "xfa_layout_itemlayout.h" |
| 21 #include "xfa_layout_pagemgr_new.h" | 19 #include "xfa_layout_pagemgr_new.h" |
| 22 #include "xfa_layout_appadapter.h" | 20 #include "xfa_layout_appadapter.h" |
| 23 FX_DWORD XFA_GetRelevant(CXFA_Node* pFormItem, FX_DWORD dwParentRelvant) { | 21 FX_DWORD XFA_GetRelevant(CXFA_Node* pFormItem, FX_DWORD dwParentRelvant) { |
| 24 FX_DWORD dwRelevant = XFA_LAYOUTSTATUS_Viewable | XFA_LAYOUTSTATUS_Printable; | 22 FX_DWORD dwRelevant = XFA_LAYOUTSTATUS_Viewable | XFA_LAYOUTSTATUS_Printable; |
| 25 CFX_WideStringC wsRelevant; | 23 CFX_WideStringC wsRelevant; |
| 26 if (pFormItem->TryCData(XFA_ATTRIBUTE_Relevant, wsRelevant)) { | 24 if (pFormItem->TryCData(XFA_ATTRIBUTE_Relevant, wsRelevant)) { |
| 27 if (wsRelevant == FX_WSTRC(L"+print") || wsRelevant == FX_WSTRC(L"print")) { | 25 if (wsRelevant == FX_WSTRC(L"+print") || wsRelevant == FX_WSTRC(L"print")) { |
| 28 dwRelevant &= ~XFA_LAYOUTSTATUS_Viewable; | 26 dwRelevant &= ~XFA_LAYOUTSTATUS_Viewable; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 49 pNode = pNext; | 47 pNode = pNext; |
| 50 } | 48 } |
| 51 IXFA_Notify* pNotify = | 49 IXFA_Notify* pNotify = |
| 52 pLayoutItem->m_pFormNode->GetDocument()->GetParser()->GetNotify(); | 50 pLayoutItem->m_pFormNode->GetDocument()->GetParser()->GetNotify(); |
| 53 if (pLayoutItem->m_pFormNode->GetClassID() == XFA_ELEMENT_PageArea) { | 51 if (pLayoutItem->m_pFormNode->GetClassID() == XFA_ELEMENT_PageArea) { |
| 54 pNotify->OnPageEvent(static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem), | 52 pNotify->OnPageEvent(static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem), |
| 55 XFA_PAGEEVENT_PageRemoved); | 53 XFA_PAGEEVENT_PageRemoved); |
| 56 } | 54 } |
| 57 delete pLayoutItem; | 55 delete pLayoutItem; |
| 58 } | 56 } |
| OLD | NEW |