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

Side by Side Diff: xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp

Issue 2056663004: Move xfa/fxjse/ to fxjse/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: 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
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/parser/xfa_script_layoutpseudomodel.h" 7 #include "xfa/fxfa/parser/xfa_script_layoutpseudomodel.h"
8 8
9 #include <set> 9 #include <set>
10 10
11 #include "fxjse/include/cfxjse_arguments.h"
11 #include "third_party/base/stl_util.h" 12 #include "third_party/base/stl_util.h"
12 #include "xfa/fxfa/app/xfa_ffnotify.h" 13 #include "xfa/fxfa/app/xfa_ffnotify.h"
13 #include "xfa/fxfa/parser/xfa_doclayout.h" 14 #include "xfa/fxfa/parser/xfa_doclayout.h"
14 #include "xfa/fxfa/parser/xfa_document.h" 15 #include "xfa/fxfa/parser/xfa_document.h"
15 #include "xfa/fxfa/parser/xfa_document_layout_imp.h" 16 #include "xfa/fxfa/parser/xfa_document_layout_imp.h"
16 #include "xfa/fxfa/parser/xfa_layout_appadapter.h" 17 #include "xfa/fxfa/parser/xfa_layout_appadapter.h"
17 #include "xfa/fxfa/parser/xfa_localemgr.h" 18 #include "xfa/fxfa/parser/xfa_localemgr.h"
18 #include "xfa/fxfa/parser/xfa_object.h" 19 #include "xfa/fxfa/parser/xfa_object.h"
19 #include "xfa/fxfa/parser/xfa_parser.h" 20 #include "xfa/fxfa/parser/xfa_parser.h"
20 #include "xfa/fxfa/parser/xfa_parser_imp.h" 21 #include "xfa/fxfa/parser/xfa_parser_imp.h"
21 #include "xfa/fxfa/parser/xfa_script.h" 22 #include "xfa/fxfa/parser/xfa_script.h"
22 #include "xfa/fxfa/parser/xfa_script_imp.h" 23 #include "xfa/fxfa/parser/xfa_script_imp.h"
23 #include "xfa/fxfa/parser/xfa_utils.h" 24 #include "xfa/fxfa/parser/xfa_utils.h"
24 #include "xfa/fxjse/cfxjse_arguments.h"
25 25
26 CScript_LayoutPseudoModel::CScript_LayoutPseudoModel(CXFA_Document* pDocument) 26 CScript_LayoutPseudoModel::CScript_LayoutPseudoModel(CXFA_Document* pDocument)
27 : CXFA_OrdinaryObject(pDocument, XFA_ELEMENT_LayoutPseudoModel) { 27 : CXFA_OrdinaryObject(pDocument, XFA_ELEMENT_LayoutPseudoModel) {
28 m_uScriptHash = XFA_HASHCODE_Layout; 28 m_uScriptHash = XFA_HASHCODE_Layout;
29 } 29 }
30 CScript_LayoutPseudoModel::~CScript_LayoutPseudoModel() {} 30 CScript_LayoutPseudoModel::~CScript_LayoutPseudoModel() {}
31 void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_Ready( 31 void CScript_LayoutPseudoModel::Script_LayoutPseudoModel_Ready(
32 CFXJSE_Value* pValue, 32 CFXJSE_Value* pValue,
33 FX_BOOL bSetting, 33 FX_BOOL bSetting,
34 XFA_ATTRIBUTE eAttribute) { 34 XFA_ATTRIBUTE eAttribute) {
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 } 531 }
532 CXFA_LayoutItem* pLayoutItem = pDocLayout->GetLayoutItem(pNode); 532 CXFA_LayoutItem* pLayoutItem = pDocLayout->GetLayoutItem(pNode);
533 if (!pLayoutItem) { 533 if (!pLayoutItem) {
534 pValue->SetInteger(-1); 534 pValue->SetInteger(-1);
535 return; 535 return;
536 } 536 }
537 iPage = pLayoutItem->GetFirst()->GetPage()->GetPageIndex(); 537 iPage = pLayoutItem->GetFirst()->GetPage()->GetPageIndex();
538 if (pValue) 538 if (pValue)
539 pValue->SetInteger(bAbsPage ? iPage : iPage + 1); 539 pValue->SetInteger(bAbsPage ? iPage : iPage + 1);
540 } 540 }
OLDNEW
« no previous file with comments | « xfa/fxfa/parser/xfa_script_layoutpseudomodel.h ('k') | xfa/fxfa/parser/xfa_script_logpseudomodel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698