1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_TYPOGRAPHY_STYLE_H
17 #define FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_TYPOGRAPHY_STYLE_H
18 
19 #include <limits>
20 #include <string>
21 #include <vector>
22 
23 #include "testing_typography.h"
24 #include "testing_typography_properties.h"
25 
26 namespace OHOS::Ace::Testing {
27 class TestingTypographyStyle {
28 public:
29     static const std::u16string ELLIPSIS;
30 #ifndef USE_GRAPHIC_TEXT_GINE
31     TextDirection textDirection_;
32     std::string locale_;
33     WordBreakType wordBreakType_ = WordBreakType::WordBreakTypeBreakWord;
34     double fontSize_ = 14;
35     std::u16string ellipsis_;
36     TextAlign textAlign_ = TextAlign::START;
37     size_t maxLines_ = std::numeric_limits<size_t>::max();
38     std::string fontFamily_ = "";
39 #else
40     TextDirection textDirection;
41     std::string locale;
42     WordBreakType wordBreakType = WordBreakType::WordBreakTypeBreakWord;
43     double fontSize = 14;
44     std::u16string ellipsis;
45     TextAlign textAlign = TextAlign::START;
46     size_t maxLines = std::numeric_limits<size_t>::max();
47     std::string fontFamily;
48 #endif
49 };
50 } // namespace OHOS::Ace::Testing
51 #endif // FOUNDATION_ACE_FRAMEWORKS_CORE_COMPONENTS_NG_MOCK_ROSEN_TEST_TESTING_TYPOGRAPHY_STYLE_H
52