OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CORE_FPDFDOC_CPVT_WORDRANGE_H_ | 7 #ifndef CORE_FPDFDOC_CPVT_WORDRANGE_H_ |
8 #define CORE_FPDFDOC_CPVT_WORDRANGE_H_ | 8 #define CORE_FPDFDOC_CPVT_WORDRANGE_H_ |
9 | 9 |
10 #include "core/fpdfdoc/cpvt_wordplace.h" | 10 #include "core/fpdfdoc/cpvt_wordplace.h" |
11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/fx_system.h" |
12 | 12 |
13 struct CPVT_WordRange { | 13 struct CPVT_WordRange { |
14 CPVT_WordRange() {} | 14 CPVT_WordRange() {} |
15 | 15 |
16 CPVT_WordRange(const CPVT_WordPlace& begin, const CPVT_WordPlace& end) { | 16 CPVT_WordRange(const CPVT_WordPlace& begin, const CPVT_WordPlace& end) { |
17 Set(begin, end); | 17 Set(begin, end); |
18 } | 18 } |
19 | 19 |
20 void Default() { | 20 void Default() { |
21 BeginPos.Default(); | 21 BeginPos.Default(); |
(...skipping 28 matching lines...) Expand all Loading... |
50 EndPos = BeginPos; | 50 EndPos = BeginPos; |
51 BeginPos = place; | 51 BeginPos = place; |
52 } | 52 } |
53 } | 53 } |
54 | 54 |
55 CPVT_WordPlace BeginPos; | 55 CPVT_WordPlace BeginPos; |
56 CPVT_WordPlace EndPos; | 56 CPVT_WordPlace EndPos; |
57 }; | 57 }; |
58 | 58 |
59 #endif // CORE_FPDFDOC_CPVT_WORDRANGE_H_ | 59 #endif // CORE_FPDFDOC_CPVT_WORDRANGE_H_ |
OLD | NEW |