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 "xfa/fxfa/app/xfa_textlayout.h" | 7 #include "xfa/fxfa/app/xfa_textlayout.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "core/fxcrt/include/fx_ext.h" | 11 #include "core/fxcrt/include/fx_ext.h" |
12 #include "xfa/fde/cfde_path.h" | 12 #include "xfa/fde/cfde_path.h" |
13 #include "xfa/fde/css/fde_csscache.h" | 13 #include "xfa/fde/css/fde_csscache.h" |
14 #include "xfa/fde/css/fde_cssstyleselector.h" | 14 #include "xfa/fde/css/fde_cssstyleselector.h" |
15 #include "xfa/fde/fde_gedevice.h" | 15 #include "xfa/fde/fde_gedevice.h" |
16 #include "xfa/fde/fde_object.h" | 16 #include "xfa/fde/fde_object.h" |
17 #include "xfa/fde/xml/fde_xml_imp.h" | 17 #include "xfa/fde/xml/fde_xml_imp.h" |
18 #include "xfa/fgas/crt/fgas_codepage.h" | 18 #include "xfa/fgas/crt/fgas_codepage.h" |
19 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" | 19 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" |
20 #include "xfa/fxfa/include/xfa_ffapp.h" | 20 #include "xfa/fxfa/include/xfa_ffapp.h" |
21 #include "xfa/fxfa/include/xfa_ffdoc.h" | 21 #include "xfa/fxfa/include/xfa_ffdoc.h" |
22 #include "xfa/fxfa/include/xfa_fontmgr.h" | 22 #include "xfa/fxfa/include/xfa_fontmgr.h" |
| 23 #include "xfa/fxfa/parser/cxfa_measurement.h" |
23 | 24 |
24 CXFA_CSSTagProvider::CXFA_CSSTagProvider() | 25 CXFA_CSSTagProvider::CXFA_CSSTagProvider() |
25 : m_bTagAvailable(FALSE), m_bContent(FALSE) {} | 26 : m_bTagAvailable(FALSE), m_bContent(FALSE) {} |
26 | 27 |
27 CXFA_CSSTagProvider::~CXFA_CSSTagProvider() {} | 28 CXFA_CSSTagProvider::~CXFA_CSSTagProvider() {} |
28 | 29 |
29 XFA_TextPiece::XFA_TextPiece() | 30 XFA_TextPiece::XFA_TextPiece() |
30 : pszText(nullptr), pFont(nullptr), pLinkData(nullptr) {} | 31 : pszText(nullptr), pFont(nullptr), pLinkData(nullptr) {} |
31 | 32 |
32 XFA_TextPiece::~XFA_TextPiece() { | 33 XFA_TextPiece::~XFA_TextPiece() { |
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2082 m_tabstops.RemoveAll(); | 2083 m_tabstops.RemoveAll(); |
2083 m_iTabCount = 0; | 2084 m_iTabCount = 0; |
2084 } | 2085 } |
2085 | 2086 |
2086 void CXFA_TextTabstopsContext::Reset() { | 2087 void CXFA_TextTabstopsContext::Reset() { |
2087 m_iTabIndex = -1; | 2088 m_iTabIndex = -1; |
2088 m_bTabstops = FALSE; | 2089 m_bTabstops = FALSE; |
2089 m_fTabWidth = 0; | 2090 m_fTabWidth = 0; |
2090 m_fLeft = 0; | 2091 m_fLeft = 0; |
2091 } | 2092 } |
OLD | NEW |