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/fde_pen.h" | 12 #include "xfa/fde/fde_pen.h" |
13 #include "xfa/fde/xml/fde_xml_imp.h" | 13 #include "xfa/fde/xml/fde_xml_imp.h" |
14 #include "xfa/fgas/crt/fgas_algorithm.h" | 14 #include "xfa/fgas/crt/fgas_algorithm.h" |
15 #include "xfa/fgas/crt/fgas_codepage.h" | 15 #include "xfa/fgas/crt/fgas_codepage.h" |
16 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" | 16 #include "xfa/fxfa/app/xfa_ffwidgetacc.h" |
17 #include "xfa/include/fxfa/xfa_ffapp.h" | 17 #include "xfa/fxfa/include/xfa_ffapp.h" |
18 #include "xfa/include/fxfa/xfa_ffdoc.h" | 18 #include "xfa/fxfa/include/xfa_ffdoc.h" |
19 #include "xfa/include/fxfa/xfa_fontmgr.h" | 19 #include "xfa/fxfa/include/xfa_fontmgr.h" |
20 | 20 |
21 CXFA_CSSTagProvider::~CXFA_CSSTagProvider() { | 21 CXFA_CSSTagProvider::~CXFA_CSSTagProvider() { |
22 FX_POSITION pos = m_Attributes.GetStartPosition(); | 22 FX_POSITION pos = m_Attributes.GetStartPosition(); |
23 while (pos) { | 23 while (pos) { |
24 CFX_WideString *pName = NULL, *pValue = NULL; | 24 CFX_WideString *pName = NULL, *pValue = NULL; |
25 m_Attributes.GetNextAssoc(pos, (void*&)pName, (void*&)pValue); | 25 m_Attributes.GetNextAssoc(pos, (void*&)pName, (void*&)pValue); |
26 delete pName; | 26 delete pName; |
27 delete pValue; | 27 delete pValue; |
28 } | 28 } |
29 } | 29 } |
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 tr.iLength = iLength; | 1991 tr.iLength = iLength; |
1992 tr.fFontSize = pPiece->fFontSize; | 1992 tr.fFontSize = pPiece->fFontSize; |
1993 tr.iBidiLevel = pPiece->iBidiLevel; | 1993 tr.iBidiLevel = pPiece->iBidiLevel; |
1994 tr.iCharRotation = 0; | 1994 tr.iCharRotation = 0; |
1995 tr.wLineBreakChar = L'\n'; | 1995 tr.wLineBreakChar = L'\n'; |
1996 tr.iVerticalScale = pPiece->iVerScale; | 1996 tr.iVerticalScale = pPiece->iVerScale; |
1997 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; | 1997 tr.dwLayoutStyles = FX_RTFLAYOUTSTYLE_ExpandTab; |
1998 tr.iHorizontalScale = pPiece->iHorScale; | 1998 tr.iHorizontalScale = pPiece->iHorScale; |
1999 return TRUE; | 1999 return TRUE; |
2000 } | 2000 } |
OLD | NEW |