| 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 FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 7 #ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 8 #define FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| 9 | 9 |
| 10 #include "core/fpdfdoc/include/cpvt_wordrange.h" | 10 #include "core/fpdfdoc/include/cpvt_wordrange.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 int32_t nLayOut); | 161 int32_t nLayOut); |
| 162 static CFX_ByteString GetCheckBoxAppStream(const CFX_FloatRect& rcBBox, | 162 static CFX_ByteString GetCheckBoxAppStream(const CFX_FloatRect& rcBBox, |
| 163 int32_t nStyle, | 163 int32_t nStyle, |
| 164 const CPWL_Color& crText); | 164 const CPWL_Color& crText); |
| 165 static CFX_ByteString GetRadioButtonAppStream(const CFX_FloatRect& rcBBox, | 165 static CFX_ByteString GetRadioButtonAppStream(const CFX_FloatRect& rcBBox, |
| 166 int32_t nStyle, | 166 int32_t nStyle, |
| 167 const CPWL_Color& crText); | 167 const CPWL_Color& crText); |
| 168 | 168 |
| 169 static CFX_ByteString GetEditAppStream(IFX_Edit* pEdit, | 169 static CFX_ByteString GetEditAppStream(IFX_Edit* pEdit, |
| 170 const CFX_FloatPoint& ptOffset, | 170 const CFX_FloatPoint& ptOffset, |
| 171 const CPVT_WordRange* pRange = NULL, | 171 const CPVT_WordRange* pRange = nullptr, |
| 172 FX_BOOL bContinuous = TRUE, | 172 FX_BOOL bContinuous = TRUE, |
| 173 uint16_t SubWord = 0); | 173 uint16_t SubWord = 0); |
| 174 static CFX_ByteString GetEditSelAppStream( | 174 static CFX_ByteString GetEditSelAppStream( |
| 175 IFX_Edit* pEdit, | 175 IFX_Edit* pEdit, |
| 176 const CFX_FloatPoint& ptOffset, | 176 const CFX_FloatPoint& ptOffset, |
| 177 const CPVT_WordRange* pRange = NULL); | 177 const CPVT_WordRange* pRange = nullptr); |
| 178 static CFX_ByteString GetTextAppStream(const CFX_FloatRect& rcBBox, | 178 static CFX_ByteString GetTextAppStream(const CFX_FloatRect& rcBBox, |
| 179 IPVT_FontMap* pFontMap, | 179 IPVT_FontMap* pFontMap, |
| 180 const CFX_WideString& sText, | 180 const CFX_WideString& sText, |
| 181 int32_t nAlignmentH, | 181 int32_t nAlignmentH, |
| 182 int32_t nAlignmentV, | 182 int32_t nAlignmentV, |
| 183 FX_FLOAT fFontSize, | 183 FX_FLOAT fFontSize, |
| 184 FX_BOOL bMultiLine, | 184 FX_BOOL bMultiLine, |
| 185 FX_BOOL bAutoReturn, | 185 FX_BOOL bAutoReturn, |
| 186 const CPWL_Color& crText); | 186 const CPWL_Color& crText); |
| 187 static CFX_ByteString GetDropButtonAppStream(const CFX_FloatRect& rcBBox); | 187 static CFX_ByteString GetDropButtonAppStream(const CFX_FloatRect& rcBBox); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 CFX_PathData& path, | 390 CFX_PathData& path, |
| 391 const CFX_FloatRect& crBBox, | 391 const CFX_FloatRect& crBBox, |
| 392 const PWL_PATH_TYPE type); | 392 const PWL_PATH_TYPE type); |
| 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, | 393 static void GetGraphics_Foxit(CFX_ByteString& sPathData, |
| 394 CFX_PathData& path, | 394 CFX_PathData& path, |
| 395 const CFX_FloatRect& crBBox, | 395 const CFX_FloatRect& crBBox, |
| 396 const PWL_PATH_TYPE type); | 396 const PWL_PATH_TYPE type); |
| 397 }; | 397 }; |
| 398 | 398 |
| 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ | 399 #endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_ |
| OLD | NEW |