| 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/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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 CFX_WideString wsLimit; | 155 CFX_WideString wsLimit; |
| 156 pAppProvider->LoadString(XFA_IDS_ValidateLimit, wsLimit); | 156 pAppProvider->LoadString(XFA_IDS_ValidateLimit, wsLimit); |
| 157 if (!wsLimit.IsEmpty()) { | 157 if (!wsLimit.IsEmpty()) { |
| 158 CFX_WideString wsTemp; | 158 CFX_WideString wsTemp; |
| 159 wsTemp.Format(wsLimit.c_str(), iRemain); | 159 wsTemp.Format(wsLimit.c_str(), iRemain); |
| 160 wsMsg += FX_WSTRC(L"\n") + wsTemp; | 160 wsMsg += FX_WSTRC(L"\n") + wsTemp; |
| 161 } | 161 } |
| 162 } | 162 } |
| 163 CFX_WideString wsTitle; | 163 CFX_WideString wsTitle; |
| 164 pAppProvider->LoadString(XFA_IDS_AppName, wsTitle); | 164 pAppProvider->LoadString(XFA_IDS_AppName, wsTitle); |
| 165 pAppProvider->MsgBox(wsMsg.AsStringC(), wsTitle.AsStringC(), | 165 pAppProvider->MsgBox(wsMsg, wsTitle, XFA_MBICON_Status, XFA_MB_OK); |
| 166 XFA_MBICON_Status, XFA_MB_OK); | |
| 167 } | 166 } |
| 168 m_arrNullTestMsg.RemoveAll(); | 167 m_arrNullTestMsg.RemoveAll(); |
| 169 } | 168 } |
| 170 void CXFA_FFDocView::UpdateDocView() { | 169 void CXFA_FFDocView::UpdateDocView() { |
| 171 if (IsUpdateLocked()) { | 170 if (IsUpdateLocked()) { |
| 172 return; | 171 return; |
| 173 } | 172 } |
| 174 LockUpdate(); | 173 LockUpdate(); |
| 175 int32_t iNewAdds = m_NewAddedNodes.GetSize(); | 174 int32_t iNewAdds = m_NewAddedNodes.GetSize(); |
| 176 for (int32_t i = 0; i < iNewAdds; i++) { | 175 for (int32_t i = 0; i < iNewAdds; i++) { |
| (...skipping 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { | 898 CXFA_WidgetAcc* CXFA_WidgetAccIterator::GetCurrentWidgetAcc() { |
| 900 return NULL; | 899 return NULL; |
| 901 } | 900 } |
| 902 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { | 901 FX_BOOL CXFA_WidgetAccIterator::SetCurrentWidgetAcc(CXFA_WidgetAcc* hWidget) { |
| 903 return FALSE; | 902 return FALSE; |
| 904 } | 903 } |
| 905 void CXFA_WidgetAccIterator::SkipTree() { | 904 void CXFA_WidgetAccIterator::SkipTree() { |
| 906 m_ContentIterator.SkipChildrenAndMoveToNext(); | 905 m_ContentIterator.SkipChildrenAndMoveToNext(); |
| 907 m_pCurWidgetAcc = NULL; | 906 m_pCurWidgetAcc = NULL; |
| 908 } | 907 } |
| OLD | NEW |