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

Side by Side Diff: core/fpdfdoc/cpvt_generateap.cpp

Issue 2374383003: Move core/fpdfdoc/include to core/fpdfdoc (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fpdfdoc/cpvt_generateap.h ('k') | core/fpdfdoc/cpvt_line.h » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 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 "core/fpdfdoc/cpvt_generateap.h" 7 #include "core/fpdfdoc/cpvt_generateap.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "core/fpdfapi/fpdf_font/cpdf_font.h" 11 #include "core/fpdfapi/fpdf_font/cpdf_font.h"
12 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" 12 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" 13 #include "core/fpdfapi/fpdf_parser/cpdf_document.h"
14 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h" 14 #include "core/fpdfapi/fpdf_parser/cpdf_simple_parser.h"
15 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" 15 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h"
16 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" 16 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h"
17 #include "core/fpdfdoc/cpdf_annot.h"
18 #include "core/fpdfdoc/cpdf_formfield.h"
17 #include "core/fpdfdoc/cpvt_color.h" 19 #include "core/fpdfdoc/cpvt_color.h"
18 #include "core/fpdfdoc/cpvt_fontmap.h" 20 #include "core/fpdfdoc/cpvt_fontmap.h"
19 #include "core/fpdfdoc/include/cpdf_annot.h" 21 #include "core/fpdfdoc/cpvt_word.h"
20 #include "core/fpdfdoc/include/cpdf_formfield.h"
21 #include "core/fpdfdoc/include/cpvt_word.h"
22 22
23 namespace { 23 namespace {
24 24
25 bool GenerateWidgetAP(CPDF_Document* pDoc, 25 bool GenerateWidgetAP(CPDF_Document* pDoc,
26 CPDF_Dictionary* pAnnotDict, 26 CPDF_Dictionary* pAnnotDict,
27 const int32_t& nWidgetType) { 27 const int32_t& nWidgetType) {
28 CPDF_Dictionary* pFormDict = nullptr; 28 CPDF_Dictionary* pFormDict = nullptr;
29 if (CPDF_Dictionary* pRootDict = pDoc->GetRoot()) 29 if (CPDF_Dictionary* pRootDict = pDoc->GetRoot())
30 pFormDict = pRootDict->GetDictFor("AcroForm"); 30 pFormDict = pRootDict->GetDictFor("AcroForm");
31 if (!pFormDict) 31 if (!pFormDict)
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 int32_t nFontIndex, 1353 int32_t nFontIndex,
1354 FX_FLOAT fFontSize) { 1354 FX_FLOAT fFontSize) {
1355 CFX_ByteTextBuf sRet; 1355 CFX_ByteTextBuf sRet;
1356 if (pFontMap) { 1356 if (pFontMap) {
1357 CFX_ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex); 1357 CFX_ByteString sFontAlias = pFontMap->GetPDFFontAlias(nFontIndex);
1358 if (sFontAlias.GetLength() > 0 && fFontSize > 0) 1358 if (sFontAlias.GetLength() > 0 && fFontSize > 0)
1359 sRet << "/" << sFontAlias << " " << fFontSize << " Tf\n"; 1359 sRet << "/" << sFontAlias << " " << fFontSize << " Tf\n";
1360 } 1360 }
1361 return sRet.MakeString(); 1361 return sRet.MakeString();
1362 } 1362 }
OLDNEW
« no previous file with comments | « core/fpdfdoc/cpvt_generateap.h ('k') | core/fpdfdoc/cpvt_line.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698