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 <algorithm> | 7 #include <algorithm> |
8 | 8 |
| 9 #include "core/fpdfdoc/include/ipdf_variabletext_provider.h" |
9 #include "core/fpdfdoc/pdf_vt.h" | 10 #include "core/fpdfdoc/pdf_vt.h" |
10 #include "core/include/fpdfdoc/fpdf_doc.h" | 11 #include "core/include/fpdfdoc/fpdf_doc.h" |
11 #include "core/include/fpdfdoc/fpdf_vt.h" | 12 #include "core/include/fpdfdoc/fpdf_vt.h" |
12 | 13 |
13 const uint8_t gFontSizeSteps[] = {4, 6, 8, 9, 10, 12, 14, 18, 20, | 14 const uint8_t gFontSizeSteps[] = {4, 6, 8, 9, 10, 12, 14, 18, 20, |
14 25, 30, 35, 40, 45, 50, 55, 60, 70, | 15 25, 30, 35, 40, 45, 50, 55, 60, 70, |
15 80, 90, 100, 110, 120, 130, 144}; | 16 80, 90, 100, 110, 120, 130, 144}; |
16 #define PVT_RETURN_LENGTH 1 | 17 #define PVT_RETURN_LENGTH 1 |
17 #define PVT_DEFAULT_FONTSIZE 18.0f | 18 #define PVT_DEFAULT_FONTSIZE 18.0f |
18 #define PVTWORD_SCRIPT_NORMAL 0 | 19 #define PVTWORD_SCRIPT_NORMAL 0 |
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1798 if (pSection->m_SecInfo.pSecProps) { | 1799 if (pSection->m_SecInfo.pSecProps) { |
1799 *pSection->m_SecInfo.pSecProps = section.SecProps; | 1800 *pSection->m_SecInfo.pSecProps = section.SecProps; |
1800 } | 1801 } |
1801 if (pSection->m_SecInfo.pWordProps) { | 1802 if (pSection->m_SecInfo.pWordProps) { |
1802 *pSection->m_SecInfo.pWordProps = section.WordProps; | 1803 *pSection->m_SecInfo.pWordProps = section.WordProps; |
1803 } | 1804 } |
1804 return TRUE; | 1805 return TRUE; |
1805 } | 1806 } |
1806 return FALSE; | 1807 return FALSE; |
1807 } | 1808 } |
OLD | NEW |