| 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 XFA_FXFA_XFA_FFWIDGET_H_ | 7 #ifndef XFA_FXFA_XFA_FFWIDGET_H_ |
| 8 #define XFA_FXFA_XFA_FFWIDGET_H_ | 8 #define XFA_FXFA_XFA_FFWIDGET_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 CFX_GraphStateData::LineCap XFA_LineCapToFXGE(int32_t iLineCap); | 154 CFX_GraphStateData::LineCap XFA_LineCapToFXGE(int32_t iLineCap); |
| 155 void XFA_DrawImage(CFX_Graphics* pGS, | 155 void XFA_DrawImage(CFX_Graphics* pGS, |
| 156 const CFX_RectF& rtImage, | 156 const CFX_RectF& rtImage, |
| 157 CFX_Matrix* pMatrix, | 157 CFX_Matrix* pMatrix, |
| 158 CFX_DIBitmap* pDIBitmap, | 158 CFX_DIBitmap* pDIBitmap, |
| 159 int32_t iAspect, | 159 int32_t iAspect, |
| 160 int32_t iImageXDpi, | 160 int32_t iImageXDpi, |
| 161 int32_t iImageYDpi, | 161 int32_t iImageYDpi, |
| 162 int32_t iHorzAlign = XFA_ATTRIBUTEENUM_Left, | 162 int32_t iHorzAlign = XFA_ATTRIBUTEENUM_Left, |
| 163 int32_t iVertAlign = XFA_ATTRIBUTEENUM_Top); | 163 int32_t iVertAlign = XFA_ATTRIBUTEENUM_Top); |
| 164 |
| 164 CFX_DIBitmap* XFA_LoadImageData(CXFA_FFDoc* pDoc, | 165 CFX_DIBitmap* XFA_LoadImageData(CXFA_FFDoc* pDoc, |
| 165 CXFA_Image* pImage, | 166 CXFA_Image* pImage, |
| 166 bool& bNameImage, | 167 bool& bNameImage, |
| 167 int32_t& iImageXDpi, | 168 int32_t& iImageXDpi, |
| 168 int32_t& iImageYDpi); | 169 int32_t& iImageYDpi); |
| 169 CFX_DIBitmap* XFA_LoadImageFromBuffer(IFX_SeekableReadStream* pImageFileRead, | 170 |
| 170 FXCODEC_IMAGE_TYPE type, | 171 CFX_DIBitmap* XFA_LoadImageFromBuffer( |
| 171 int32_t& iImageXDpi, | 172 const CFX_RetainPtr<IFX_SeekableReadStream>& pImageFileRead, |
| 172 int32_t& iImageYDpi); | 173 FXCODEC_IMAGE_TYPE type, |
| 174 int32_t& iImageXDpi, |
| 175 int32_t& iImageYDpi); |
| 176 |
| 173 FXCODEC_IMAGE_TYPE XFA_GetImageType(const CFX_WideString& wsType); | 177 FXCODEC_IMAGE_TYPE XFA_GetImageType(const CFX_WideString& wsType); |
| 174 FX_CHAR* XFA_Base64Encode(const uint8_t* buf, int32_t buf_len); | 178 FX_CHAR* XFA_Base64Encode(const uint8_t* buf, int32_t buf_len); |
| 175 void XFA_RectWidthoutMargin(CFX_RectF& rt, | 179 void XFA_RectWidthoutMargin(CFX_RectF& rt, |
| 176 const CXFA_Margin& mg, | 180 const CXFA_Margin& mg, |
| 177 bool bUI = false); | 181 bool bUI = false); |
| 178 CXFA_FFWidget* XFA_GetWidgetFromLayoutItem(CXFA_LayoutItem* pLayoutItem); | 182 CXFA_FFWidget* XFA_GetWidgetFromLayoutItem(CXFA_LayoutItem* pLayoutItem); |
| 179 bool XFA_IsCreateWidget(XFA_Element iType); | 183 bool XFA_IsCreateWidget(XFA_Element iType); |
| 180 #define XFA_DRAWBOX_ForceRound 1 | 184 #define XFA_DRAWBOX_ForceRound 1 |
| 181 #define XFA_DRAWBOX_Lowered3D 2 | 185 #define XFA_DRAWBOX_Lowered3D 2 |
| 182 void XFA_DrawBox(CXFA_Box box, | 186 void XFA_DrawBox(CXFA_Box box, |
| 183 CFX_Graphics* pGS, | 187 CFX_Graphics* pGS, |
| 184 const CFX_RectF& rtWidget, | 188 const CFX_RectF& rtWidget, |
| 185 CFX_Matrix* pMatrix, | 189 CFX_Matrix* pMatrix, |
| 186 uint32_t dwFlags = 0); | 190 uint32_t dwFlags = 0); |
| 187 | 191 |
| 188 #endif // XFA_FXFA_XFA_FFWIDGET_H_ | 192 #endif // XFA_FXFA_XFA_FFWIDGET_H_ |
| OLD | NEW |