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 "../../include/fpdfdoc/fpdf_doc.h" | 7 #include "../../include/fpdfdoc/fpdf_doc.h" |
8 #include "../../include/fpdfdoc/fpdf_vt.h" | 8 #include "../../include/fpdfdoc/fpdf_vt.h" |
9 #include "pdf_vt.h" | 9 #include "pdf_vt.h" |
10 const FX_BYTE gFontSizeSteps[] = { 4, 6, 8, 9, 10, 12, 14, 18, 20, 25,
30, 35, 40, 45, 50, 55, 60, 70, 80, 90, 100, 110, 120, 130, 144}; | 10 const FX_BYTE gFontSizeSteps[] = { 4, 6, 8, 9, 10, 12, 14, 18, 20, 25,
30, 35, 40, 45, 50, 55, 60, 70, 80, 90, 100, 110, 120, 130, 144}; |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 m_pVTIterator(NULL), | 808 m_pVTIterator(NULL), |
809 m_bInitial(FALSE), | 809 m_bInitial(FALSE), |
810 m_bRichText(FALSE), | 810 m_bRichText(FALSE), |
811 m_bMultiLine(FALSE), | 811 m_bMultiLine(FALSE), |
812 m_bLimitWidth(FALSE), | 812 m_bLimitWidth(FALSE), |
813 m_bAutoFontSize(FALSE), | 813 m_bAutoFontSize(FALSE), |
814 m_nLimitChar(0), | 814 m_nLimitChar(0), |
815 m_nCharArray(0), | 815 m_nCharArray(0), |
816 m_nAlignment(0), | 816 m_nAlignment(0), |
817 m_fCharSpace(0.0f), | 817 m_fCharSpace(0.0f), |
818 m_fWordSpace(0.0f), | |
819 m_fFontSize(0.0f), | 818 m_fFontSize(0.0f), |
820 m_nHorzScale(100), | 819 m_nHorzScale(100), |
821 m_wSubWord(0), | 820 m_wSubWord(0), |
822 m_fLineLeading(0.0f) | 821 m_fLineLeading(0.0f) |
823 { | 822 { |
824 } | 823 } |
825 CPDF_VariableText::~CPDF_VariableText() | 824 CPDF_VariableText::~CPDF_VariableText() |
826 { | 825 { |
827 if (m_pVTIterator) { | 826 if (m_pVTIterator) { |
828 delete m_pVTIterator; | 827 delete m_pVTIterator; |
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1855 if (pSection->m_SecInfo.pSecProps) { | 1854 if (pSection->m_SecInfo.pSecProps) { |
1856 *pSection->m_SecInfo.pSecProps = section.SecProps; | 1855 *pSection->m_SecInfo.pSecProps = section.SecProps; |
1857 } | 1856 } |
1858 if (pSection->m_SecInfo.pWordProps) { | 1857 if (pSection->m_SecInfo.pWordProps) { |
1859 *pSection->m_SecInfo.pWordProps = section.WordProps; | 1858 *pSection->m_SecInfo.pWordProps = section.WordProps; |
1860 } | 1859 } |
1861 return TRUE; | 1860 return TRUE; |
1862 } | 1861 } |
1863 return FALSE; | 1862 return FALSE; |
1864 } | 1863 } |
OLD | NEW |