| 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 #ifndef _FPDF_VT_H_ | 7 #ifndef _FPDF_VT_H_ |
| 8 #define _FPDF_VT_H_ | 8 #define _FPDF_VT_H_ |
| 9 | 9 |
| 10 #include "../fpdfapi/fpdf_parser.h" | 10 #include "../fpdfapi/fpdf_parser.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 CPVT_WordPlace place = EndPos; | 157 CPVT_WordPlace place = EndPos; |
| 158 EndPos = BeginPos; | 158 EndPos = BeginPos; |
| 159 BeginPos = place; | 159 BeginPos = place; |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 CPVT_WordPlace BeginPos; | 163 CPVT_WordPlace BeginPos; |
| 164 | 164 |
| 165 CPVT_WordPlace EndPos; | 165 CPVT_WordPlace EndPos; |
| 166 }; | 166 }; |
| 167 struct CPVT_SecProps : public CFX_Object { | 167 struct CPVT_SecProps { |
| 168 | 168 |
| 169 CPVT_SecProps() : fLineLeading(0.0f), fLineIndent(0.0f), nAlignment(0) | 169 CPVT_SecProps() : fLineLeading(0.0f), fLineIndent(0.0f), nAlignment(0) |
| 170 { | 170 { |
| 171 } | 171 } |
| 172 | 172 |
| 173 CPVT_SecProps(FX_FLOAT lineLeading, FX_FLOAT lineIndent, FX_INT32 alignment)
: | 173 CPVT_SecProps(FX_FLOAT lineLeading, FX_FLOAT lineIndent, FX_INT32 alignment)
: |
| 174 fLineLeading(lineLeading), fLineIndent(lineIndent), nAlignment(alignment
) | 174 fLineLeading(lineLeading), fLineIndent(lineIndent), nAlignment(alignment
) |
| 175 { | 175 { |
| 176 } | 176 } |
| 177 | 177 |
| 178 CPVT_SecProps(const CPVT_SecProps & other) : | 178 CPVT_SecProps(const CPVT_SecProps & other) : |
| 179 fLineLeading(other.fLineLeading), fLineIndent(other.fLineIndent), nAlign
ment(other.nAlignment) | 179 fLineLeading(other.fLineLeading), fLineIndent(other.fLineIndent), nAlign
ment(other.nAlignment) |
| 180 { | 180 { |
| 181 } | 181 } |
| 182 | 182 |
| 183 FX_FLOAT fLineLeading; | 183 FX_FLOAT fLineLeading; |
| 184 | 184 |
| 185 FX_FLOAT fLineIndent; | 185 FX_FLOAT fLineIndent; |
| 186 | 186 |
| 187 FX_INT32 nAlignment; | 187 FX_INT32 nAlignment; |
| 188 }; | 188 }; |
| 189 struct CPVT_WordProps : public CFX_Object { | 189 struct CPVT_WordProps { |
| 190 | 190 |
| 191 CPVT_WordProps() : nFontIndex(-1), fFontSize(0.0f), dwWordColor(0), nScriptT
ype(0), nWordStyle(0), | 191 CPVT_WordProps() : nFontIndex(-1), fFontSize(0.0f), dwWordColor(0), nScriptT
ype(0), nWordStyle(0), |
| 192 fCharSpace(0.0f), nHorzScale(0) | 192 fCharSpace(0.0f), nHorzScale(0) |
| 193 { | 193 { |
| 194 } | 194 } |
| 195 | 195 |
| 196 CPVT_WordProps(FX_INT32 fontIndex, FX_FLOAT fontSize, FX_COLORREF wordCo
lor = 0, FX_INT32 scriptType = 0, FX_INT32 wordStyle = 0, | 196 CPVT_WordProps(FX_INT32 fontIndex, FX_FLOAT fontSize, FX_COLORREF wordCo
lor = 0, FX_INT32 scriptType = 0, FX_INT32 wordStyle = 0, |
| 197 FX_FLOAT charSpace = 0, FX_INT32 horzScale = 100) : | 197 FX_FLOAT charSpace = 0, FX_INT32 horzScale = 100) : |
| 198 nFontIndex(fontIndex), fFontSize(fontSize), dwWordColor(wordColor), nScr
iptType(scriptType), | 198 nFontIndex(fontIndex), fFontSize(fontSize), dwWordColor(wordColor), nScr
iptType(scriptType), |
| 199 nWordStyle(wordStyle), fCharSpace(charSpace), nHorzScale(horzScale) | 199 nWordStyle(wordStyle), fCharSpace(charSpace), nHorzScale(horzScale) |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 virtual CPVT_WordPlace AjustLineHeader(
const CPVT_WordPlace & place, FX_BOOL bPrevOrNext) const = 0; | 442 virtual CPVT_WordPlace AjustLineHeader(
const CPVT_WordPlace & place, FX_BOOL bPrevOrNext) const = 0; |
| 443 | 443 |
| 444 virtual FX_INT32 WordPlaceToWordI
ndex(const CPVT_WordPlace & place) const = 0; | 444 virtual FX_INT32 WordPlaceToWordI
ndex(const CPVT_WordPlace & place) const = 0; |
| 445 | 445 |
| 446 virtual CPVT_WordPlace WordIndexToWordP
lace(FX_INT32 index) const = 0; | 446 virtual CPVT_WordPlace WordIndexToWordP
lace(FX_INT32 index) const = 0; |
| 447 | 447 |
| 448 protected: | 448 protected: |
| 449 ~IPDF_VariableText() { } | 449 ~IPDF_VariableText() { } |
| 450 }; | 450 }; |
| 451 #endif | 451 #endif |
| OLD | NEW |