| 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/fde/tto/fde_textout.h" | 7 #include "xfa/fde/tto/fde_textout.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 m_dwTxtBkStyles = 0; | 67 m_dwTxtBkStyles = 0; |
| 68 if (dwStyles & FDE_TTOSTYLE_SingleLine) { | 68 if (dwStyles & FDE_TTOSTYLE_SingleLine) { |
| 69 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_SingleLine; | 69 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_SingleLine; |
| 70 } | 70 } |
| 71 if (dwStyles & FDE_TTOSTYLE_ExpandTab) { | 71 if (dwStyles & FDE_TTOSTYLE_ExpandTab) { |
| 72 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_ExpandTab; | 72 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_ExpandTab; |
| 73 } | 73 } |
| 74 if (dwStyles & FDE_TTOSTYLE_ArabicShapes) { | 74 if (dwStyles & FDE_TTOSTYLE_ArabicShapes) { |
| 75 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_ArabicShapes; | 75 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_ArabicShapes; |
| 76 } | 76 } |
| 77 if (dwStyles & FDE_TTOSTYLE_RTL) { | |
| 78 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_RTLReadingOrder; | |
| 79 } | |
| 80 if (dwStyles & FDE_TTOSTYLE_ArabicContext) { | 77 if (dwStyles & FDE_TTOSTYLE_ArabicContext) { |
| 81 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_ArabicContext; | 78 m_dwTxtBkStyles |= FX_TXTLAYOUTSTYLE_ArabicContext; |
| 82 } | 79 } |
| 83 if (dwStyles & FDE_TTOSTYLE_VerticalLayout) { | 80 if (dwStyles & FDE_TTOSTYLE_VerticalLayout) { |
| 84 m_dwTxtBkStyles |= | 81 m_dwTxtBkStyles |= |
| 85 (FX_TXTLAYOUTSTYLE_VerticalChars | FX_TXTLAYOUTSTYLE_VerticalLayout); | 82 (FX_TXTLAYOUTSTYLE_VerticalChars | FX_TXTLAYOUTSTYLE_VerticalLayout); |
| 86 } | 83 } |
| 87 m_pTxtBreak->SetLayoutStyles(m_dwTxtBkStyles); | 84 m_pTxtBreak->SetLayoutStyles(m_dwTxtBkStyles); |
| 88 } | 85 } |
| 89 | 86 |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 return m_pieces.GetPtrAt(index); | 942 return m_pieces.GetPtrAt(index); |
| 946 } | 943 } |
| 947 | 944 |
| 948 void CFDE_TTOLine::RemoveLast(int32_t iCount) { | 945 void CFDE_TTOLine::RemoveLast(int32_t iCount) { |
| 949 m_pieces.RemoveLast(iCount); | 946 m_pieces.RemoveLast(iCount); |
| 950 } | 947 } |
| 951 | 948 |
| 952 void CFDE_TTOLine::RemoveAll(bool bLeaveMemory) { | 949 void CFDE_TTOLine::RemoveAll(bool bLeaveMemory) { |
| 953 m_pieces.RemoveAll(bLeaveMemory); | 950 m_pieces.RemoveAll(bLeaveMemory); |
| 954 } | 951 } |
| OLD | NEW |