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