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_algorithm.h" | |
19 #include "xfa/fgas/crt/fgas_codepage.h" | 18 #include "xfa/fgas/crt/fgas_codepage.h" |
20 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" | 19 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" |
21 #include "xfa/fxfa/include/xfa_ffapp.h" | 20 #include "xfa/fxfa/include/xfa_ffapp.h" |
22 #include "xfa/fxfa/include/xfa_ffdoc.h" | 21 #include "xfa/fxfa/include/xfa_ffdoc.h" |
23 #include "xfa/fxfa/include/xfa_fontmgr.h" | 22 #include "xfa/fxfa/include/xfa_fontmgr.h" |
24 | 23 |
25 void CXFA_TextParseContext::SetDecls(const CFDE_CSSDeclaration** ppDeclArray, | 24 void CXFA_TextParseContext::SetDecls(const CFDE_CSSDeclaration** ppDeclArray, |
26 int32_t iDeclCount) { | 25 int32_t iDeclCount) { |
27 if (iDeclCount <= 0 || !ppDeclArray) | 26 if (iDeclCount <= 0 || !ppDeclArray) |
28 return; | 27 return; |
(...skipping 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 tr.iLength = iLength; | 1957 tr.iLength = iLength; |
1959 tr.fFontSize = pPiece->fFontSize; | 1958 tr.fFontSize = pPiece->fFontSize; |
1960 tr.iBidiLevel = pPiece->iBidiLevel; | 1959 tr.iBidiLevel = pPiece->iBidiLevel; |
1961 tr.iCharRotation = 0; | 1960 tr.iCharRotation = 0; |
1962 tr.wLineBreakChar = L'\n'; | 1961 tr.wLineBreakChar = L'\n'; |
1963 tr.iVerticalScale = pPiece->iVerScale; | 1962 tr.iVerticalScale = pPiece->iVerScale; |
1964 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; | 1963 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; |
1965 tr.iHorizontalScale = pPiece->iHorScale; | 1964 tr.iHorizontalScale = pPiece->iHorScale; |
1966 return TRUE; | 1965 return TRUE; |
1967 } | 1966 } |
OLD | NEW |