Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Side by Side Diff: xfa/fde/tto/fde_textout.cpp

Issue 2578473003: Remove more unused widget styles (Closed)
Patch Set: Rebase to master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fde/tto/fde_textout.h ('k') | xfa/fwl/cfwl_checkbox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « xfa/fde/tto/fde_textout.h ('k') | xfa/fwl/cfwl_checkbox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698