Chromium Code Reviews| 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 "../../third_party/base/nonstd_unique_ptr.h" | 7 #include "../../third_party/base/nonstd_unique_ptr.h" |
| 8 #include "../include/fsdk_define.h" | 8 #include "../include/fsdk_define.h" |
| 9 #include "../include/fsdk_mgr.h" | 9 #include "../include/fsdk_mgr.h" |
| 10 #include "../include/fsdk_baseannot.h" | 10 #include "../include/fsdk_baseannot.h" |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 566 pImageDict->SetAtString("Name", "ImgC"); | 566 pImageDict->SetAtString("Name", "ImgC"); |
| 567 } | 567 } |
| 568 } | 568 } |
| 569 | 569 |
| 570 CPDF_IconFit iconFit = pControl->GetIconFit(); | 570 CPDF_IconFit iconFit = pControl->GetIconFit(); |
| 571 | 571 |
| 572 CPDFSDK_Document* pDoc = m_pInterForm->GetDocument(); | 572 CPDFSDK_Document* pDoc = m_pInterForm->GetDocument(); |
| 573 ASSERT(pDoc != NULL); | 573 ASSERT(pDoc != NULL); |
| 574 CPDFDoc_Environment* pEnv = pDoc->GetEnv(); | 574 CPDFDoc_Environment* pEnv = pDoc->GetEnv(); |
| 575 | 575 |
| 576 CBA_FontMap FontMap( | 576 CBA_FontMap FontMap(this, pEnv->GetSysHandler()); //, |
| 577 this, | 577 // ISystemHandle::GetSystemHandler(m_pBaseForm->GetEnv())); |
|
Nico
2015/08/06 20:58:49
same question
| |
| 578 pEnv->GetSysHandler()); //, | |
| 579 //ISystemHandle::GetSystemHandler(m_pBaseForm->Ge tEnv())); | |
| 580 FontMap.Initial(); | 578 FontMap.Initial(); |
| 581 | 579 |
| 582 FontMap.SetAPType("N"); | 580 FontMap.SetAPType("N"); |
| 583 | 581 |
| 584 CFX_ByteString csAP = | 582 CFX_ByteString csAP = |
| 585 CPWL_Utils::GetRectFillAppStream(rcWindow, crBackground) + | 583 CPWL_Utils::GetRectFillAppStream(rcWindow, crBackground) + |
| 586 CPWL_Utils::GetBorderAppStream(rcWindow, fBorderWidth, crBorder, | 584 CPWL_Utils::GetBorderAppStream(rcWindow, fBorderWidth, crBorder, |
| 587 crLeftTop, crRightBottom, nBorderStyle, | 585 crLeftTop, crRightBottom, nBorderStyle, |
| 588 dsBorder) + | 586 dsBorder) + |
| 589 CPWL_Utils::GetPushButtonAppStream( | 587 CPWL_Utils::GetPushButtonAppStream( |
| (...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1129 | 1127 |
| 1130 CFX_ByteTextBuf sBody, sLines; | 1128 CFX_ByteTextBuf sBody, sLines; |
| 1131 | 1129 |
| 1132 if (IFX_Edit* pEdit = IFX_Edit::NewEdit()) { | 1130 if (IFX_Edit* pEdit = IFX_Edit::NewEdit()) { |
| 1133 pEdit->EnableRefresh(FALSE); | 1131 pEdit->EnableRefresh(FALSE); |
| 1134 | 1132 |
| 1135 CPDFSDK_Document* pDoc = m_pInterForm->GetDocument(); | 1133 CPDFSDK_Document* pDoc = m_pInterForm->GetDocument(); |
| 1136 ASSERT(pDoc != NULL); | 1134 ASSERT(pDoc != NULL); |
| 1137 CPDFDoc_Environment* pEnv = pDoc->GetEnv(); | 1135 CPDFDoc_Environment* pEnv = pDoc->GetEnv(); |
| 1138 | 1136 |
| 1139 CBA_FontMap FontMap( | 1137 CBA_FontMap FontMap(this, pEnv->GetSysHandler()); //, |
| 1140 this, | 1138 // ISystemHandle::GetSystemHandler(m_pBaseForm->GetEnv())); |
| 1141 pEnv->GetSysHandler()); //, | |
| 1142 //ISystemHandle::GetSystemHandler(m_pBaseForm-> GetEnv())); | |
| 1143 FontMap.Initial(); | 1139 FontMap.Initial(); |
| 1144 pEdit->SetFontMap(&FontMap); | 1140 pEdit->SetFontMap(&FontMap); |
| 1145 | 1141 |
| 1146 CPDF_Rect rcClient = GetClientRect(); | 1142 CPDF_Rect rcClient = GetClientRect(); |
| 1147 pEdit->SetPlateRect(rcClient); | 1143 pEdit->SetPlateRect(rcClient); |
| 1148 pEdit->SetAlignmentH(pControl->GetControlAlignment()); | 1144 pEdit->SetAlignmentH(pControl->GetControlAlignment()); |
| 1149 | 1145 |
| 1150 FX_DWORD dwFieldFlags = pField->GetFieldFlags(); | 1146 FX_DWORD dwFieldFlags = pField->GetFieldFlags(); |
| 1151 FX_BOOL bMultiLine = (dwFieldFlags >> 12) & 1; | 1147 FX_BOOL bMultiLine = (dwFieldFlags >> 12) & 1; |
| 1152 | 1148 |
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2670 ASSERT(pAnnot != NULL); | 2666 ASSERT(pAnnot != NULL); |
| 2671 | 2667 |
| 2672 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); | 2668 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); |
| 2673 ASSERT(pPDFAnnot != NULL); | 2669 ASSERT(pPDFAnnot != NULL); |
| 2674 | 2670 |
| 2675 CPDF_Rect rcAnnot; | 2671 CPDF_Rect rcAnnot; |
| 2676 pPDFAnnot->GetRect(rcAnnot); | 2672 pPDFAnnot->GetRect(rcAnnot); |
| 2677 | 2673 |
| 2678 return rcAnnot; | 2674 return rcAnnot; |
| 2679 } | 2675 } |
| OLD | NEW |