1 // Copyright 2018 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #ifndef XFA_FDE_CFDE_DATA_H_ 8 #define XFA_FDE_CFDE_DATA_H_ 9 10 #include "core/fxcrt/fx_coordinates.h" 11 12 namespace pdfium { 13 14 enum class FDE_TextAlignment : uint8_t { 15 kTopLeft = 0, 16 kCenterLeft, 17 kCenter, 18 kCenterRight 19 }; 20 21 struct FDE_TextStyle { 22 FDE_TextStyle() = default; 23 ~FDE_TextStyle() = default; 24 ResetFDE_TextStyle25 void Reset() { 26 single_line_ = false; 27 line_wrap_ = false; 28 last_line_height_ = false; 29 } 30 31 bool single_line_ = false; 32 bool line_wrap_ = false; 33 bool last_line_height_ = false; 34 }; 35 36 } // namespace pdfium 37 38 // TODO(crbug.com/42271761): Remove. 39 using pdfium::FDE_TextAlignment; 40 using pdfium::FDE_TextStyle; 41 42 #endif // XFA_FDE_CFDE_DATA_H_ 43