summaryrefslogtreecommitdiff
path: root/xfa/include/fwl/lightwidget/picturebox.h
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2015-08-04 13:00:21 -0700
committerNico Weber <thakis@chromium.org>2015-08-04 13:00:21 -0700
commit9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f (patch)
treec97037f398d714665aefccb6eb54d0969ad7030c /xfa/include/fwl/lightwidget/picturebox.h
parent780cee82236d1b3b0f9b01a22424e4b8ec9a6f12 (diff)
downloadpdfium-9d8ec5a6e37e8d1d4d4edca9040de234e2d4728f.tar.xz
XFA: clang-format all pdfium code.
No behavior change. Generated by: find . -name '*.cpp' -o -name '*.h' | \ grep -E -v 'third_party|thirdparties|lpng_v163|tiff_v403' | \ xargs ../../buildtools/mac/clang-format -i Then manually merged https://codereview.chromium.org/1269223002/ See thread "tabs vs spaces" on pdfium@googlegroups.com for discussion. BUG=none
Diffstat (limited to 'xfa/include/fwl/lightwidget/picturebox.h')
-rw-r--r--xfa/include/fwl/lightwidget/picturebox.h96
1 files changed, 47 insertions, 49 deletions
diff --git a/xfa/include/fwl/lightwidget/picturebox.h b/xfa/include/fwl/lightwidget/picturebox.h
index d15c2510a0..63d681e71b 100644
--- a/xfa/include/fwl/lightwidget/picturebox.h
+++ b/xfa/include/fwl/lightwidget/picturebox.h
@@ -11,55 +11,53 @@ class CFWL_WidgetProperties;
class IFWL_PictureBoxDP;
class CFWL_PictureBox;
class CFWL_PictureBoxDP;
-class CFWL_PictureBox : public CFWL_Widget
-{
-public:
- static CFWL_PictureBox* Create();
- FWL_ERR Initialize(const CFWL_WidgetProperties *pProperties = NULL);
- CFX_DIBitmap* GetPicture();
- FWL_ERR SetPicture(CFX_DIBitmap *pBitmap);
- FX_FLOAT GetRotation();
- FWL_ERR SetRotation(FX_FLOAT fRotation);
- int32_t GetFlipMode();
- FWL_ERR SetFlipMode(int32_t iFlipMode);
- int32_t GetOpacity();
- FWL_ERR SetOpacity(int32_t iOpacity);
- FWL_ERR GetScale(FX_FLOAT &fScaleX, FX_FLOAT &fScaleY);
- FWL_ERR SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
- FWL_ERR GetOffset(FX_FLOAT &fx, FX_FLOAT &fy);
- FWL_ERR SetOffset(FX_FLOAT fx, FX_FLOAT fy);
- CFWL_PictureBox();
- virtual ~CFWL_PictureBox();
-protected:
- class CFWL_PictureBoxDP : public IFWL_PictureBoxDP
- {
- public:
- CFWL_PictureBoxDP()
- {
- m_fRotation = 0.0f;
- m_fScaleX = 1.0f;
- m_fScaleY = 1.0f;
- m_fOffSetX = 0.0f;
- m_fOffSetY = 0.0f;
- m_pBitmap = NULL;
- };
- virtual FWL_ERR GetCaption(IFWL_Widget *pWidget, CFX_WideString &wsCaption);
- virtual CFX_DIBitmap* GetPicture(IFWL_Widget *pWidget);
- virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget *pWidget);
- virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget *pWidget);
- virtual int32_t GetOpacity(IFWL_Widget *pWidget);
- virtual int32_t GetFlipMode(IFWL_Widget *pWidget);
- virtual FWL_ERR GetMatrix(IFWL_Widget *pWidget, CFX_Matrix &matrix);
- CFX_DIBitmap *m_pBitmap;
- int32_t m_iOpacity;
- int32_t m_iFlipMode;
- FX_FLOAT m_fRotation;
- FX_FLOAT m_fScaleX;
- FX_FLOAT m_fScaleY;
- FX_FLOAT m_fOffSetX;
- FX_FLOAT m_fOffSetY;
- CFX_WideString m_wsData;
+class CFWL_PictureBox : public CFWL_Widget {
+ public:
+ static CFWL_PictureBox* Create();
+ FWL_ERR Initialize(const CFWL_WidgetProperties* pProperties = NULL);
+ CFX_DIBitmap* GetPicture();
+ FWL_ERR SetPicture(CFX_DIBitmap* pBitmap);
+ FX_FLOAT GetRotation();
+ FWL_ERR SetRotation(FX_FLOAT fRotation);
+ int32_t GetFlipMode();
+ FWL_ERR SetFlipMode(int32_t iFlipMode);
+ int32_t GetOpacity();
+ FWL_ERR SetOpacity(int32_t iOpacity);
+ FWL_ERR GetScale(FX_FLOAT& fScaleX, FX_FLOAT& fScaleY);
+ FWL_ERR SetScale(FX_FLOAT fScaleX, FX_FLOAT fScaleY);
+ FWL_ERR GetOffset(FX_FLOAT& fx, FX_FLOAT& fy);
+ FWL_ERR SetOffset(FX_FLOAT fx, FX_FLOAT fy);
+ CFWL_PictureBox();
+ virtual ~CFWL_PictureBox();
+
+ protected:
+ class CFWL_PictureBoxDP : public IFWL_PictureBoxDP {
+ public:
+ CFWL_PictureBoxDP() {
+ m_fRotation = 0.0f;
+ m_fScaleX = 1.0f;
+ m_fScaleY = 1.0f;
+ m_fOffSetX = 0.0f;
+ m_fOffSetY = 0.0f;
+ m_pBitmap = NULL;
};
- CFWL_PictureBoxDP m_PictureBoxDP;
+ virtual FWL_ERR GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption);
+ virtual CFX_DIBitmap* GetPicture(IFWL_Widget* pWidget);
+ virtual CFX_DIBitmap* GetErrorPicture(IFWL_Widget* pWidget);
+ virtual CFX_DIBitmap* GetInitialPicture(IFWL_Widget* pWidget);
+ virtual int32_t GetOpacity(IFWL_Widget* pWidget);
+ virtual int32_t GetFlipMode(IFWL_Widget* pWidget);
+ virtual FWL_ERR GetMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix);
+ CFX_DIBitmap* m_pBitmap;
+ int32_t m_iOpacity;
+ int32_t m_iFlipMode;
+ FX_FLOAT m_fRotation;
+ FX_FLOAT m_fScaleX;
+ FX_FLOAT m_fScaleY;
+ FX_FLOAT m_fOffSetX;
+ FX_FLOAT m_fOffSetY;
+ CFX_WideString m_wsData;
+ };
+ CFWL_PictureBoxDP m_PictureBoxDP;
};
#endif