Remove trailing whitespaces in fpdfsdk.
authorLei Zhang <thestig@chromium.org>
Thu, 11 Jun 2015 21:00:52 +0000 (14:00 -0700)
committerLei Zhang <thestig@chromium.org>
Thu, 11 Jun 2015 21:00:52 +0000 (14:00 -0700)
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1173343004.

116 files changed:
fpdfsdk/include/formfiller/FFL_CBA_Fontmap.h
fpdfsdk/include/formfiller/FFL_CheckBox.h
fpdfsdk/include/formfiller/FFL_ComboBox.h
fpdfsdk/include/formfiller/FFL_FormFiller.h
fpdfsdk/include/formfiller/FFL_ListBox.h
fpdfsdk/include/formfiller/FFL_Notify.h
fpdfsdk/include/formfiller/FFL_PushButton.h
fpdfsdk/include/formfiller/FFL_RadioButton.h
fpdfsdk/include/formfiller/FFL_TextField.h
fpdfsdk/include/formfiller/FFL_Utils.h
fpdfsdk/include/fsdk_actionhandler.h
fpdfsdk/include/fsdk_annothandler.h
fpdfsdk/include/fsdk_baseannot.h
fpdfsdk/include/fsdk_baseform.h
fpdfsdk/include/fsdk_common.h
fpdfsdk/include/fsdk_define.h
fpdfsdk/include/fsdk_rendercontext.h
fpdfsdk/include/fx_systemhandler.h
fpdfsdk/include/fxedit/fx_edit.h
fpdfsdk/include/fxedit/fxet_edit.h
fpdfsdk/include/javascript/Consts.h
fpdfsdk/include/javascript/Document.h
fpdfsdk/include/javascript/Field.h
fpdfsdk/include/javascript/IJavaScript.h
fpdfsdk/include/javascript/Icon.h
fpdfsdk/include/javascript/JS_Context.h
fpdfsdk/include/javascript/JS_Define.h
fpdfsdk/include/javascript/JS_EventHandler.h
fpdfsdk/include/javascript/JS_GlobalData.h
fpdfsdk/include/javascript/JS_Object.h
fpdfsdk/include/javascript/JS_Runtime.h
fpdfsdk/include/javascript/JS_Value.h
fpdfsdk/include/javascript/PublicMethods.h
fpdfsdk/include/javascript/app.h
fpdfsdk/include/javascript/color.h
fpdfsdk/include/javascript/console.h
fpdfsdk/include/javascript/event.h
fpdfsdk/include/javascript/global.h
fpdfsdk/include/javascript/report.h
fpdfsdk/include/javascript/util.h
fpdfsdk/include/pdfwindow/IPDFWindow.h
fpdfsdk/include/pdfwindow/PWL_Button.h
fpdfsdk/include/pdfwindow/PWL_Caret.h
fpdfsdk/include/pdfwindow/PWL_ComboBox.h
fpdfsdk/include/pdfwindow/PWL_Edit.h
fpdfsdk/include/pdfwindow/PWL_EditCtrl.h
fpdfsdk/include/pdfwindow/PWL_FontMap.h
fpdfsdk/include/pdfwindow/PWL_Icon.h
fpdfsdk/include/pdfwindow/PWL_IconList.h
fpdfsdk/include/pdfwindow/PWL_Label.h
fpdfsdk/include/pdfwindow/PWL_ListCtrl.h
fpdfsdk/include/pdfwindow/PWL_Note.h
fpdfsdk/include/pdfwindow/PWL_ScrollBar.h
fpdfsdk/include/pdfwindow/PWL_Signature.h
fpdfsdk/include/pdfwindow/PWL_SpecialButton.h
fpdfsdk/include/pdfwindow/PWL_Utils.h
fpdfsdk/include/pdfwindow/PWL_Wnd.h
fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp
fpdfsdk/src/formfiller/FFL_CheckBox.cpp
fpdfsdk/src/formfiller/FFL_ComboBox.cpp
fpdfsdk/src/formfiller/FFL_FormFiller.cpp
fpdfsdk/src/formfiller/FFL_IFormFiller.cpp
fpdfsdk/src/formfiller/FFL_ListBox.cpp
fpdfsdk/src/formfiller/FFL_Notify.cpp
fpdfsdk/src/formfiller/FFL_PushButton.cpp
fpdfsdk/src/formfiller/FFL_RadioButton.cpp
fpdfsdk/src/formfiller/FFL_TextField.cpp
fpdfsdk/src/formfiller/FFL_Utils.cpp
fpdfsdk/src/fpdf_dataavail.cpp
fpdfsdk/src/fpdf_ext.cpp
fpdfsdk/src/fpdf_flatten.cpp
fpdfsdk/src/fpdf_progressive.cpp
fpdfsdk/src/fpdf_searchex.cpp
fpdfsdk/src/fpdf_sysfontinfo.cpp
fpdfsdk/src/fpdf_transformpage.cpp
fpdfsdk/src/fpdfdoc.cpp
fpdfsdk/src/fpdfeditimg.cpp
fpdfsdk/src/fpdfeditpage.cpp
fpdfsdk/src/fpdfformfill.cpp
fpdfsdk/src/fpdfppo.cpp
fpdfsdk/src/fpdfsave.cpp
fpdfsdk/src/fpdftext.cpp
fpdfsdk/src/fpdfview.cpp
fpdfsdk/src/fsdk_baseannot.cpp
fpdfsdk/src/fsdk_baseform.cpp
fpdfsdk/src/fsdk_rendercontext.cpp
fpdfsdk/src/fxedit/fxet_ap.cpp
fpdfsdk/src/fxedit/fxet_edit.cpp
fpdfsdk/src/fxedit/fxet_module.cpp
fpdfsdk/src/fxedit/fxet_pageobjs.cpp
fpdfsdk/src/javascript/Consts.cpp
fpdfsdk/src/javascript/Document.cpp
fpdfsdk/src/javascript/Field.cpp
fpdfsdk/src/javascript/Icon.cpp
fpdfsdk/src/javascript/JS_Context.cpp
fpdfsdk/src/javascript/JS_EventHandler.cpp
fpdfsdk/src/javascript/JS_GlobalData.cpp
fpdfsdk/src/javascript/JS_Object.cpp
fpdfsdk/src/javascript/JS_Runtime.cpp
fpdfsdk/src/javascript/JS_Value.cpp
fpdfsdk/src/javascript/color.cpp
fpdfsdk/src/javascript/console.cpp
fpdfsdk/src/javascript/event.cpp
fpdfsdk/src/javascript/global.cpp
fpdfsdk/src/javascript/util.cpp
fpdfsdk/src/jsapi/fxjs_v8.cpp
fpdfsdk/src/pdfwindow/PWL_Button.cpp
fpdfsdk/src/pdfwindow/PWL_Caret.cpp
fpdfsdk/src/pdfwindow/PWL_ComboBox.cpp
fpdfsdk/src/pdfwindow/PWL_Edit.cpp
fpdfsdk/src/pdfwindow/PWL_Icon.cpp
fpdfsdk/src/pdfwindow/PWL_Label.cpp
fpdfsdk/src/pdfwindow/PWL_Signature.cpp
fpdfsdk/src/pdfwindow/PWL_SpecialButton.cpp
fpdfsdk/src/pdfwindow/PWL_Utils.cpp
fpdfsdk/src/resource.h

index 687cd6f..3be49fc 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_CBA_FONTMAP_H_
@@ -43,7 +43,7 @@ private:
        CPDF_Dictionary*                        m_pAnnotDict;
        CPDF_Font*                                      m_pDefaultFont;
        CFX_ByteString                          m_sDefaultFontName;
-       
+
        CFX_ByteString                          m_sAPType;
 };
 
index bac1b93..3deeae8 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_CHECKBOX_H_
index 52fcebd..e2eb52c 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_COMBOBOX_H_
@@ -26,41 +26,41 @@ class CFFL_ComboBox : public CFFL_FormFiller, public IPWL_FocusHandler, public I
 public:
        CFFL_ComboBox(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pWidget);
        virtual ~CFFL_ComboBox();
-       
+
        virtual PWL_CREATEPARAM         GetCreateParam();
        virtual CPWL_Wnd*                       NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView* pPageView);
 
-       
+
        virtual FX_BOOL                         OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags);
-       
+
        virtual FX_BOOL                         IsDataChanged(CPDFSDK_PageView* pPageView);
        virtual void                            SaveData(CPDFSDK_PageView* pPageView);
-       
+
        virtual void                            GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, PDFSDK_FieldAction& fa);
        virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, const PDFSDK_FieldAction& fa);
        virtual FX_BOOL                         IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld, const PDFSDK_FieldAction& faNew);
        virtual void                            SaveState(CPDFSDK_PageView* pPageView);
        virtual void                            RestoreState(CPDFSDK_PageView* pPageView);
-       
+
        virtual CPWL_Wnd*                       ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRestoreValue);
        virtual void                            OnKeyStroke(FX_BOOL bKeyDown, FX_UINT nFlag);
-       
+
 public:
        virtual void                            OnSetFocus(CPWL_Wnd* pWnd);
        virtual void                            OnKillFocus(CPWL_Wnd* pWnd);
-       
+
 public:
        virtual void                            OnAddUndo(CPWL_Edit* pEdit);
-       
+
 public:
-       virtual FX_BOOL                         CanCopy(CPDFSDK_Document* pDocument); 
-       virtual FX_BOOL                         CanCut(CPDFSDK_Document* pDocument); 
-       virtual FX_BOOL                         CanPaste(CPDFSDK_Document* pDocument); 
-       
-       virtual void                            DoCopy(CPDFSDK_Document* pDocument); 
-       virtual void                            DoCut(CPDFSDK_Document* pDocument); 
-       virtual void                            DoPaste(CPDFSDK_Document* pDocument); 
-       
+       virtual FX_BOOL                         CanCopy(CPDFSDK_Document* pDocument);
+       virtual FX_BOOL                         CanCut(CPDFSDK_Document* pDocument);
+       virtual FX_BOOL                         CanPaste(CPDFSDK_Document* pDocument);
+
+       virtual void                            DoCopy(CPDFSDK_Document* pDocument);
+       virtual void                            DoCut(CPDFSDK_Document* pDocument);
+       virtual void                            DoPaste(CPDFSDK_Document* pDocument);
+
 private:
        CFX_WideString                          GetSelectExportText();
 
index 25929e4..e4e04f3 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_FORMFILLER_H_
@@ -38,10 +38,10 @@ public:
        virtual ~CFFL_FormFiller();
 
        virtual FX_RECT                         GetViewBBox(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot);
-       virtual void                            OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+       virtual void                            OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                                        CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                        /*const CRect& rcWindow, */FX_DWORD dwFlags);
-       virtual void                            OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+       virtual void                            OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                /*const CRect& rcWindow, */FX_DWORD dwFlags);
 
@@ -70,13 +70,13 @@ public:
        virtual FX_BOOL                         OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag);
        virtual FX_BOOL                         OnKillFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag);
 
-       virtual FX_BOOL                         CanCopy(CPDFSDK_Document* pDocument); 
-       virtual FX_BOOL                         CanCut(CPDFSDK_Document* pDocument); 
-       virtual FX_BOOL                         CanPaste(CPDFSDK_Document* pDocument); 
+       virtual FX_BOOL                         CanCopy(CPDFSDK_Document* pDocument);
+       virtual FX_BOOL                         CanCut(CPDFSDK_Document* pDocument);
+       virtual FX_BOOL                         CanPaste(CPDFSDK_Document* pDocument);
 
-       virtual void                            DoCopy(CPDFSDK_Document* pDocument); 
-       virtual void                            DoCut(CPDFSDK_Document* pDocument); 
-       virtual void                            DoPaste(CPDFSDK_Document* pDocument); 
+       virtual void                            DoCopy(CPDFSDK_Document* pDocument);
+       virtual void                            DoCut(CPDFSDK_Document* pDocument);
+       virtual void                            DoPaste(CPDFSDK_Document* pDocument);
 
 public: //CPWL_TimerHandler
        virtual void                            TimerProc();
@@ -88,9 +88,9 @@ public:
 
        virtual void                            GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        PDFSDK_FieldAction& fa);
-       virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 
+       virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        const PDFSDK_FieldAction& fa);
-       virtual FX_BOOL                         IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld, 
+       virtual FX_BOOL                         IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld,
                                                                        const PDFSDK_FieldAction& faNew);
 
        virtual void                            SaveState(CPDFSDK_PageView* pPageView);
@@ -139,7 +139,7 @@ public:
 
        virtual void                            InvalidateRect(double left, double top, double right, double bottom);
        CPDFDoc_Environment*            GetApp(){return m_pApp;}
-       CPDFSDK_Annot*                          GetSDKAnnot() {return m_pAnnot;}        
+       CPDFSDK_Annot*                          GetSDKAnnot() {return m_pAnnot;}
 protected:
        CPDFDoc_Environment*            m_pApp;
        CPDFSDK_Widget*                         m_pWidget;
@@ -161,11 +161,11 @@ public:
        virtual FX_BOOL                         OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point);
        virtual FX_BOOL                         OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point);
        virtual FX_BOOL                         OnMouseMove(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point);
-       virtual void                            OnDraw(CPDFSDK_PageView *pPageView/*, HDC hDC*/, CPDFSDK_Annot* pAnnot, 
+       virtual void                            OnDraw(CPDFSDK_PageView *pPageView/*, HDC hDC*/, CPDFSDK_Annot* pAnnot,
                                                                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                /*const CRect& rcWindow,*/ FX_DWORD dwFlags);
 
-       virtual void                            OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+       virtual void                            OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                /*const CRect& rcWindow, */FX_DWORD dwFlags);
 protected:
index b95ad72..81abec1 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_LISTBOX_H_
@@ -27,7 +27,7 @@ public:
 
        virtual void                            GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        PDFSDK_FieldAction& fa);
-       virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 
+       virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        const PDFSDK_FieldAction& fa);
 
        virtual void                            SaveState(CPDFSDK_PageView* pPageView);
index ea236de..961d4b7 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_NOTIFY_H_
@@ -16,25 +16,25 @@ class CPDF_FormField;
 class CFFL_Notify
 {
 public:
-       CFFL_Notify(CFFL_FormFiller * pFormFiller);     
+       CFFL_Notify(CFFL_FormFiller * pFormFiller);
        virtual ~CFFL_Notify();
 
 public:
        FX_BOOL                                                                 OnSetFocus(FX_BOOL & bExit);
        FX_BOOL                                                                 OnMouseEnter(FX_BOOL & bExit);
        FX_BOOL                                                                 OnMouseDown(FX_BOOL & bExit);
-       FX_BOOL                                                                 OnMouseUp(FX_BOOL & bExit);     
-       FX_BOOL                                                                 OnMouseExit(FX_BOOL & bExit);   
+       FX_BOOL                                                                 OnMouseUp(FX_BOOL & bExit);
+       FX_BOOL                                                                 OnMouseExit(FX_BOOL & bExit);
        FX_BOOL                                                                 OnKillFocus(FX_BOOL & bExit);
 
        FX_BOOL                                                                 OnCalculate();
        FX_BOOL                                                                 OnFormat(int iCommitKey);
-       FX_BOOL                                                                 OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange, 
+       FX_BOOL                                                                 OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange,
                                                                                           const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifier,
                                                                                           FX_BOOL bShift, FX_BOOL & bRC);
-       FX_BOOL                                                                 OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue, CFX_WideString& strChange, 
+       FX_BOOL                                                                 OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue, CFX_WideString& strChange,
                                                                                           const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifier,
-                                                                                          FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, 
+                                                                                          FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull,
                                                                                           int& nSelStart, int& nSelEnd, FX_BOOL& bRC);
 
        void                                                                    BeforeNotify();
index 4cf61a8..3cfaefb 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_PUSHBUTTON_H_
@@ -18,7 +18,7 @@ public:
        virtual CPWL_Wnd*                       NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView* pPageView);
 
        virtual FX_BOOL                         OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags);
-       virtual void                            OnDraw(CPDFSDK_PageView *pPageView,  CPDFSDK_Annot* pAnnot, 
+       virtual void                            OnDraw(CPDFSDK_PageView *pPageView,  CPDFSDK_Annot* pAnnot,
                                                                        CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                        FX_DWORD dwFlags);
 };
index 8dba933..46332e0 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_RADIOBUTTON_H_
@@ -14,7 +14,7 @@ class CFFL_RadioButton : public CFFL_Button
 public:
        CFFL_RadioButton(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot);
        virtual ~CFFL_RadioButton();
-       
+
        virtual CPWL_Wnd*                       NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView* pPageView);
        virtual FX_BOOL                         OnKeyDown(CPDFSDK_Annot* pAnnot, FX_UINT nKeyCode, FX_UINT nFlags);
        virtual FX_BOOL                         OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags);
index 2525077..0329a9d 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_TEXTFIELD_H_
@@ -27,43 +27,43 @@ class CFFL_TextField : public CFFL_FormFiller, public IPWL_FocusHandler, public
 public:
        CFFL_TextField(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnnot);
        virtual ~CFFL_TextField();
-       
+
        virtual PWL_CREATEPARAM         GetCreateParam();
        virtual CPWL_Wnd*                       NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView* pPageView);
 
-       
+
        virtual FX_BOOL                         OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFlags);
-       
+
        virtual FX_BOOL                         IsDataChanged(CPDFSDK_PageView* pPageView);
        virtual void                            SaveData(CPDFSDK_PageView* pPageView);
-       
+
        virtual void                            GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                                                PDFSDK_FieldAction& fa);
-       virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 
+       virtual void                            SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        const PDFSDK_FieldAction& fa);
-       virtual FX_BOOL                         IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld, 
+       virtual FX_BOOL                         IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld,
                                                                                                const PDFSDK_FieldAction& faNew);
        virtual void                            SaveState(CPDFSDK_PageView* pPageView);
        virtual void                            RestoreState(CPDFSDK_PageView* pPageView);
-       
+
        virtual CPWL_Wnd*                       ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRestoreValue);
-       
+
 public:
        virtual void                            OnSetFocus(CPWL_Wnd* pWnd);
        virtual void                            OnKillFocus(CPWL_Wnd* pWnd);
-       
+
 public:
        virtual void                            OnAddUndo(CPWL_Edit* pEdit);
-       
+
 public:
-       virtual FX_BOOL                         CanCopy(CPDFSDK_Document* pDocument); 
-       virtual FX_BOOL                         CanCut(CPDFSDK_Document* pDocument); 
-       virtual FX_BOOL                         CanPaste(CPDFSDK_Document* pDocument); 
-       
-       virtual void                            DoCopy(CPDFSDK_Document* pDocument); 
-       virtual void                            DoCut(CPDFSDK_Document* pDocument); 
-       virtual void                            DoPaste(CPDFSDK_Document* pDocument); 
-       
+       virtual FX_BOOL                         CanCopy(CPDFSDK_Document* pDocument);
+       virtual FX_BOOL                         CanCut(CPDFSDK_Document* pDocument);
+       virtual FX_BOOL                         CanPaste(CPDFSDK_Document* pDocument);
+
+       virtual void                            DoCopy(CPDFSDK_Document* pDocument);
+       virtual void                            DoCut(CPDFSDK_Document* pDocument);
+       virtual void                            DoPaste(CPDFSDK_Document* pDocument);
+
 private:
        CBA_FontMap*                            m_pFontMap;
        FFL_TextFieldState                      m_State;
index ff06a34..de9afaf 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FORMFILLER_FFL_UTILS_H_
index 2b38a5d..311380e 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_ACTIONHANDLER_H_
@@ -41,13 +41,13 @@ class  CPDFSDK_ActionHandler /*: public CReader_ActionHandler*/
 public:
        CPDFSDK_ActionHandler(CPDFDoc_Environment* pEvi);
        virtual ~CPDFSDK_ActionHandler();
-       
+
        virtual void            Destroy();
        virtual FX_BOOL         DoAction_DocOpen(const CPDF_Action& action, CPDFSDK_Document* pDocument/*, CPDFSDK_DocView *pDocView*/);
        virtual FX_BOOL         DoAction_JavaScript(const CPDF_Action& JsAction,CFX_WideString csJSName, CPDFSDK_Document* pDocument/*, CReader_DocView *pDocView*/);
        virtual FX_BOOL         DoAction_Page(const CPDF_Action& action, enum CPDF_AAction::AActionType eType, CPDFSDK_Document* pDocument/*, CReader_DocView *pDocView*/);
        virtual FX_BOOL         DoAction_Document(const CPDF_Action& action, enum CPDF_AAction::AActionType eType, CPDFSDK_Document* pDocument/*, CReader_DocView *pDocView*/);
-       virtual FX_BOOL         DoAction_BookMark(CPDF_Bookmark *pBookMark, const CPDF_Action& action, CPDF_AAction::AActionType type, CPDFSDK_Document* pDocument/*, CReader_DocView *pDocView*/);     
+       virtual FX_BOOL         DoAction_BookMark(CPDF_Bookmark *pBookMark, const CPDF_Action& action, CPDF_AAction::AActionType type, CPDFSDK_Document* pDocument/*, CReader_DocView *pDocView*/);
        virtual FX_BOOL         DoAction_Screen(const CPDF_Action& action, CPDF_AAction::AActionType type, CPDFSDK_Document* pDocument,/* CReader_DocView *pDocView,*/ CPDFSDK_Annot* pScreen);
        virtual FX_BOOL         DoAction_Link(const CPDF_Action& action, CPDFSDK_Document* pDocument/*, CReader_DocView *pDocView*/);
        virtual FX_BOOL         DoAction_Field(const CPDF_Action& action, CPDF_AAction::AActionType type, CPDFSDK_Document* pDocument, /*CReader_DocView *pDocView,*/ CPDF_FormField* pFormField, PDFSDK_FieldAction& data);
@@ -55,7 +55,7 @@ public:
 public:
        void                            SetFormActionHandler(CPDFSDK_FormActionHandler* pHandler);
        void                            SetMediaActionHandler(CPDFSDK_MediaActionHandler* pHandler);
-       
+
 private:
        FX_BOOL                         ExecuteDocumentOpenAction(const CPDF_Action& action, CPDFSDK_Document* pDocument, /*CReader_DocView *pDocView,*/ CFX_PtrList& list);
        FX_BOOL                         ExecuteDocumentPageAction(const CPDF_Action& action, CPDF_AAction::AActionType type, CPDFSDK_Document* pDocument, /*CReader_DocView *pDocView,*/ CFX_PtrList& list);
@@ -63,23 +63,23 @@ private:
        FX_BOOL                         ExecuteScreenAction(const CPDF_Action& action, CPDF_AAction::AActionType type, CPDFSDK_Document* pDocument, /*CReader_DocView* pDocView,*/ CPDFSDK_Annot* pScreen, CFX_PtrList& list);
        FX_BOOL                         ExecuteBookMark(const CPDF_Action& action, CPDFSDK_Document* pDocument, /*CReader_DocView* pDocView,*/ CPDF_Bookmark* pBookmark, CFX_PtrList& list);
        FX_BOOL                         ExecuteLinkAction(const CPDF_Action& action, CPDFSDK_Document* pDocument, /*CReader_DocView* pDocView,*/ CFX_PtrList& list);
-       
+
        void                            DoAction_NoJs(const CPDF_Action& action, CPDFSDK_Document* pDocument/*, CReader_DocView* pDocView*/);
        void                            RunDocumentPageJavaScript(CPDFSDK_Document* pDocument, CPDF_AAction::AActionType type, const CFX_WideString& script);
        void                            RunDocumentOpenJavaScript(CPDFSDK_Document* pDocument, const CFX_WideString& sScriptName, const CFX_WideString& script);
        void                            RunFieldJavaScript(CPDFSDK_Document* pDocument, CPDF_FormField* pFormField, CPDF_AAction::AActionType type, PDFSDK_FieldAction& data, const CFX_WideString& script);
-       
+
 private:
        FX_BOOL                         IsValidField(CPDFSDK_Document* pDocument, CPDF_Dictionary* pFieldDict);
        FX_BOOL                         IsValidDocView(CPDFSDK_Document* pDocument/*, CReader_DocView* pDocView*/);
-       
+
        void                            DoAction_GoTo(CPDFSDK_Document* pDocument, /*CReader_DocView *pDocView,*/ const CPDF_Action& action);
        void                            DoAction_GoToR(CPDFSDK_Document* pDocument, const CPDF_Action& action);
        void                            DoAction_Launch(CPDFSDK_Document* pDocument, const CPDF_Action& action);
        void                            DoAction_URI(CPDFSDK_Document* pDocument, const CPDF_Action& action);
        void                            DoAction_Named(CPDFSDK_Document* pDocument, const CPDF_Action& action);
        void                            DoAction_SetOCGState(CPDFSDK_Document* pDocument, /*CReader_DocView* pDocView,*/ const CPDF_Action& action);
-       
+
 private:
        CPDFSDK_FormActionHandler*              m_pFormActionHandler;
        CPDFSDK_MediaActionHandler*             m_pMediaActionHandler;
index e04f09d..521c46e 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_ANNOTHANDLER_H_
@@ -30,30 +30,30 @@ public:
        virtual CFX_ByteString          GetName() = 0;
 
        virtual FX_BOOL                         CanAnswer(CPDFSDK_Annot* pAnnot) = 0;
-       
+
 
        virtual CPDFSDK_Annot*          NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) = 0;
 
        virtual void                            ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0;
 
        virtual void                            DeleteAnnot(CPDFSDK_Annot* pAnnot) = 0;
-       
+
 
        virtual CPDF_Rect                               GetViewBBox(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot) = 0;
-       
+
        virtual FX_BOOL                         HitTest(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, const CPDF_Point& point) = 0;
-       
 
-       virtual void                            OnDraw(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, 
+
+       virtual void                            OnDraw(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot,
                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                FX_DWORD dwFlags) = 0;
-       
-       virtual void                            OnDrawSleep(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, 
+
+       virtual void                            OnDrawSleep(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot,
                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                const CPDF_Rect& rcWindow, FX_DWORD dwFlags) = 0;
-       
 
-       
+
+
 
        virtual void                            OnCreate(CPDFSDK_Annot* pAnnot) = 0;
 
@@ -62,11 +62,11 @@ public:
        virtual void                            OnDelete(CPDFSDK_Annot* pAnnot) = 0;
 
        virtual void                            OnRelease(CPDFSDK_Annot* pAnnot) = 0;
-       
+
 
        virtual void                            OnMouseEnter(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlag) = 0;
        virtual void                            OnMouseExit(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlag) = 0;
-       
+
 
        virtual FX_BOOL                         OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) = 0;
        virtual FX_BOOL                         OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) = 0;
@@ -100,7 +100,7 @@ public:
        virtual CFX_ByteString          GetType()  {return CFX_ByteString("Widget");}
 
        virtual CFX_ByteString          GetName()  {return CFX_ByteString("WidgetHandler");}
-       
+
        virtual FX_BOOL                         CanAnswer(CPDFSDK_Annot* pAnnot);
 
        virtual CPDFSDK_Annot*          NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage);
@@ -108,21 +108,21 @@ public:
        virtual void                            ReleaseAnnot(CPDFSDK_Annot* pAnnot)  ;
 
        virtual void                            DeleteAnnot(CPDFSDK_Annot* pAnnot) {}
-       
+
 
        virtual CPDF_Rect                               GetViewBBox(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot) ;
-       
+
        virtual FX_BOOL                         HitTest(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, const CPDF_Point& point);
-       
 
-       virtual void                            OnDraw(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, 
+
+       virtual void                            OnDraw(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot,
                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                 FX_DWORD dwFlags) ;
-       
-       virtual void                            OnDrawSleep(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, 
+
+       virtual void                            OnDrawSleep(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot,
                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                const CPDF_Rect& rcWindow, FX_DWORD dwFlags) {}
-       
+
 
        virtual void                            OnCreate(CPDFSDK_Annot* pAnnot) ;
 
@@ -131,11 +131,11 @@ public:
        virtual void                            OnDelete(CPDFSDK_Annot* pAnnot) {}
 
        virtual void                            OnRelease(CPDFSDK_Annot* pAnnot) {}
-       
+
 
        virtual void                            OnMouseEnter(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlag) ;
        virtual void                            OnMouseExit(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlag) ;
-       
+
 
        virtual FX_BOOL                         OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) ;
        virtual FX_BOOL                         OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) ;
@@ -145,7 +145,7 @@ public:
        virtual FX_BOOL                         OnRButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) ;
        virtual FX_BOOL                         OnRButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) ;
        virtual FX_BOOL                         OnRButtonDblClk(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point) {return FALSE;}
-       
+
 //by wjm.
        virtual FX_BOOL                         OnChar(CPDFSDK_Annot* pAnnot, FX_DWORD nChar, FX_DWORD nFlags);
        virtual FX_BOOL                         OnKeyDown(CPDFSDK_Annot* pAnnot, int nKeyCode, int nFlag);
@@ -179,7 +179,7 @@ public:
 
        virtual CPDFSDK_Annot*          NewAnnot(CPDF_Annot * pAnnot, CPDFSDK_PageView *pPageView);
        virtual void                            ReleaseAnnot(CPDFSDK_Annot * pAnnot);
-       
+
        virtual void                            Annot_OnCreate(CPDFSDK_Annot* pAnnot);
        virtual void                            Annot_OnLoad(CPDFSDK_Annot* pAnnot);
 public:
@@ -193,7 +193,7 @@ public:
        virtual FX_BOOL                         Annot_OnLButtonDown(CPDFSDK_PageView * pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point);
        virtual FX_BOOL                         Annot_OnLButtonUp(CPDFSDK_PageView * pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point);
        virtual FX_BOOL                         Annot_OnLButtonDblClk(CPDFSDK_PageView * pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point);
-       
+
        virtual FX_BOOL                         Annot_OnMouseMove(CPDFSDK_PageView * pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point);
        virtual FX_BOOL                         Annot_OnMouseWheel(CPDFSDK_PageView * pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, short zDelta, const CPDF_Point& point);
        virtual FX_BOOL                         Annot_OnRButtonDown(CPDFSDK_PageView * pPageView, CPDFSDK_Annot* pAnnot, FX_DWORD nFlags, const CPDF_Point& point);
@@ -231,7 +231,7 @@ public:
     virtual ~CPDFSDK_AnnotIterator() { }
 
        virtual CPDFSDK_Annot*  Next (const CPDFSDK_Annot* pCurrent) ;
-       virtual CPDFSDK_Annot*  Prev (const CPDFSDK_Annot* pCurrent) ;  
+       virtual CPDFSDK_Annot*  Prev (const CPDFSDK_Annot* pCurrent) ;
        virtual CPDFSDK_Annot*  Next(int& index ) ;
        virtual CPDFSDK_Annot*  Prev(int& index ) ;
        virtual int             Count(){return m_pIteratorAnnotList.GetSize();}
index 836190e..dcd295d 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
@@ -27,15 +27,15 @@ class CFX_RenderDevice;
 
 #define CFX_IntArray                           CFX_ArrayTemplate<int>
 
-class  CPDFSDK_DateTime 
+class  CPDFSDK_DateTime
 {
 public:
        CPDFSDK_DateTime();
        CPDFSDK_DateTime(const CFX_ByteString& dtStr);
        CPDFSDK_DateTime(const CPDFSDK_DateTime& datetime);
        CPDFSDK_DateTime(const FX_SYSTEMTIME& st);
-       
-       
+
+
        CPDFSDK_DateTime&       operator = (const CPDFSDK_DateTime& datetime);
        CPDFSDK_DateTime&       operator = (const FX_SYSTEMTIME& st);
        FX_BOOL                         operator == (CPDFSDK_DateTime& datetime);
@@ -43,9 +43,9 @@ public:
        FX_BOOL                         operator > (CPDFSDK_DateTime& datetime);
        FX_BOOL                         operator >= (CPDFSDK_DateTime& datetime);
        FX_BOOL                         operator < (CPDFSDK_DateTime& datetime);
-       FX_BOOL                         operator <= (CPDFSDK_DateTime& datetime);       
+       FX_BOOL                         operator <= (CPDFSDK_DateTime& datetime);
                                                operator time_t();
-       
+
        CPDFSDK_DateTime&       FromPDFDateTimeString(const CFX_ByteString& dtStr);
        CFX_ByteString          ToCommonDateTimeString();
        CFX_ByteString          ToPDFDateTimeString();
@@ -53,9 +53,9 @@ public:
        CPDFSDK_DateTime        ToGMT();
        CPDFSDK_DateTime&       AddDays(short days);
        CPDFSDK_DateTime&       AddSeconds(int seconds);
-       
+
        void                            ResetDateTime();
-       
+
        struct FX_DATETIME
        {
                int16_t year;
@@ -82,19 +82,19 @@ public:
 
 public:
        CPDF_Annot*                                     GetPDFAnnot();
-       
+
        void                                            SetPage(CPDFSDK_PageView* pPageView);
-       CPDFSDK_PageView*                       GetPageView();  
+       CPDFSDK_PageView*                       GetPageView();
        FX_DWORD                                        GetFlags();
-       
-       // Tab Order    
+
+       // Tab Order
        int                                                     GetTabOrder();
        void                                            SetTabOrder(int iTabOrder);
-       
+
        // Selection
        FX_BOOL                                         IsSelected();
        void                                            SetSelected(FX_BOOL bSelected);
-       
+
        CFX_ByteString                          GetType() const;
        virtual CFX_ByteString          GetSubType() const;
 
@@ -102,16 +102,16 @@ public:
 
 public:
        CPDF_Dictionary*                        GetAnnotDict() const;
-       
+
        void                                            SetRect(const CPDF_Rect& rect);
        CPDF_Rect                                       GetRect() const;
-       
+
        void                                            SetContents(const CFX_WideString& sContents);
        CFX_WideString                          GetContents() const;
-       
+
        void                                            SetAnnotName(const CFX_WideString& sName);
        CFX_WideString                          GetAnnotName() const;
-       
+
        void                                            SetModifiedDate(const FX_SYSTEMTIME& st);
        FX_SYSTEMTIME                           GetModifiedDate() const;
 
@@ -120,47 +120,47 @@ public:
 
        void                                            SetAppState(const CFX_ByteString& str);
        CFX_ByteString                          GetAppState() const;
-       
+
        void                                            SetStructParent(int key);
        int                                                     GetStructParent() const;
-       
+
        //border
        void                                            SetBorderWidth(int nWidth);
        int                                                     GetBorderWidth() const;
-       
+
        //BBS_SOLID
        //BBS_DASH
        //BBS_BEVELED
        //BBS_INSET
        //BBS_UNDERLINE
-       
+
        void                                            SetBorderStyle(int nStyle);
        int                                                     GetBorderStyle() const;
-       
+
        void                                            SetBorderDash(const CFX_IntArray& array);
        void                                            GetBorderDash(CFX_IntArray& array) const;
-       
+
        //The background of the annotation's icon when closed
        //The title bar of the annotation's pop-up window
        //The border of a link annotation
-       
+
        void                                            SetColor(FX_COLORREF color);
        void                                            RemoveColor();
        FX_BOOL                                         GetColor(FX_COLORREF& color) const;
-       
+
        FX_BOOL                                         IsVisible() const;
        //action
 
        CPDF_Action                                     GetAction() const;
        void                                            SetAction(const CPDF_Action& a);
        void                                            RemoveAction();
-       
+
        CPDF_AAction                            GetAAction() const;
        void                                            SetAAction(const CPDF_AAction& aa);
        void                                            RemoveAAction();
-       
+
        virtual CPDF_Action                     GetAAction(CPDF_AAction::AActionType eAAT);
-       
+
 public:
        FX_BOOL                                         IsAppearanceValid();
        FX_BOOL                                         IsAppearanceValid(CPDF_Annot::AppearanceMode mode);
@@ -168,10 +168,10 @@ public:
                CPDF_Annot::AppearanceMode mode, const CPDF_RenderOptions* pOptions);
        void                                            DrawBorder(CFX_RenderDevice* pDevice, const CPDF_Matrix* pUser2Device,
                const CPDF_RenderOptions* pOptions);
-       
+
        void                                            ClearCachedAP();
-       
-       void                                            WriteAppearance(const CFX_ByteString& sAPType, const CPDF_Rect& rcBBox, 
+
+       void                                            WriteAppearance(const CFX_ByteString& sAPType, const CPDF_Rect& rcBBox,
                const CPDF_Matrix& matrix, const CFX_ByteString& sContents,
                const CFX_ByteString& sAPState = "");
 
@@ -187,7 +187,7 @@ protected:
        CPDFSDK_PageView*       m_pPageView;
        FX_BOOL                         m_bSelected;
        int                                     m_nTabOrder;
-       
+
 };
 
 #endif  // FPDFSDK_INCLUDE_FSDK_BASEANNOT_H_
index 2c7bd84..ac0f72a 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_BASEFORM_H_
@@ -42,7 +42,7 @@ typedef struct _PDFSDK_FieldAction
                bFieldFull = FALSE;
                bRC = TRUE;
        }
-       
+
        FX_BOOL                                 bModifier;              //in
        FX_BOOL                                 bShift;                 //in
        int                                             nCommitKey;             //in
@@ -63,7 +63,7 @@ public:
        virtual ~CPDFSDK_Widget();
 
        virtual CFX_ByteString                  GetSubType() const;
-       
+
        virtual CPDF_Action                             GetAAction(CPDF_AAction::AActionType eAAT);
 
        int                                                             GetFieldType() const;
@@ -74,7 +74,7 @@ public:
        FIELDFLAG_REQUIRED
        FIELDFLAG_NOEXPORT
        */
-       
+
        int                                                             GetFieldFlags() const;
        int                                                             GetRotate() const;
 
@@ -112,9 +112,9 @@ public:
        void                                                    ResetFieldAppearance(FX_BOOL bValueChanged);
        void                                                    UpdateField();
        CFX_WideString                                  OnFormat(FX_BOOL& bFormated);
-       
+
 //Message.
-       FX_BOOL                                                 OnAAction(CPDF_AAction::AActionType type, PDFSDK_FieldAction& data, 
+       FX_BOOL                                                 OnAAction(CPDF_AAction::AActionType type, PDFSDK_FieldAction& data,
                                                                                                CPDFSDK_PageView* pPageView);
 
        CPDFSDK_InterForm*                              GetInterForm() const {return m_pInterForm;}
@@ -123,14 +123,14 @@ public:
        static CPDF_FormControl*                GetFormControl(CPDF_InterForm* pInterForm, CPDF_Dictionary* pAnnotDict);
 
        void                                                    DrawShadow(CFX_RenderDevice* pDevice, CPDFSDK_PageView* pPageView);
-       
+
        void                                                    SetAppModified();
        void                                                    ClearAppModified();
        FX_BOOL                                                 IsAppModified() const;
-       
+
        int32_t                                         GetAppearanceAge() const;
        int32_t                                         GetValueAge() const;
-       
+
 private:
        void                                                    ResetAppearance_PushButton();
        void                                                    ResetAppearance_CheckBox();
@@ -138,18 +138,18 @@ private:
        void                                                    ResetAppearance_ComboBox(const FX_WCHAR* sValue);
        void                                                    ResetAppearance_ListBox();
        void                                                    ResetAppearance_TextField(const FX_WCHAR* sValue);
-       
+
        CPDF_Rect                                               GetClientRect() const;
        CPDF_Rect                                               GetRotatedRect() const;
-       
+
        CFX_ByteString                                  GetBackgroundAppStream() const;
        CFX_ByteString                                  GetBorderAppStream() const;
        CPDF_Matrix                                             GetMatrix() const;
-       
+
        CPWL_Color                                              GetTextPWLColor() const;
        CPWL_Color                                              GetBorderPWLColor() const;
        CPWL_Color                                              GetFillPWLColor() const;
-       
+
        void                                                    AddImageToAppearance(const CFX_ByteString& sAPType, CPDF_Stream* pImage);
        void                                                    RemoveAppearance(const CFX_ByteString& sAPType);
 public:
@@ -172,22 +172,22 @@ class CPDFSDK_InterForm : public CPDF_FormNotify
 public:
        CPDFSDK_InterForm(CPDFSDK_Document* pDocument);
        virtual ~CPDFSDK_InterForm();
-       
+
 public:
        virtual void                                    Destroy();
        virtual CPDF_InterForm*                 GetInterForm();
-       
+
        CPDFSDK_Document*                               GetDocument();
        FX_BOOL                                                 HighlightWidgets();
-       
+
        CPDFSDK_Widget*                                 GetSibling(CPDFSDK_Widget* pWidget, FX_BOOL bNext) const;
        CPDFSDK_Widget*                                 GetWidget(CPDF_FormControl* pControl) const;
        void                                                    GetWidgets(const CFX_WideString& sFieldName, CFX_PtrArray& widgets);
        void                                                    GetWidgets(CPDF_FormField* pField, CFX_PtrArray& widgets);
-       
+
        void                                                    AddMap(CPDF_FormControl* pControl, CPDFSDK_Widget* pWidget);
        void                                                    RemoveMap(CPDF_FormControl* pControl);
-       
+
        void                                                    EnableCalculate(FX_BOOL bEnabled);
        FX_BOOL                                                 IsCalculateEnabled() const;
 
@@ -199,25 +199,25 @@ public:
        void                                                    OnValidate(CPDF_FormField* pFormField, CFX_WideString& csValue, FX_BOOL& bRC);
        void                                                    OnCalculate(CPDF_FormField* pFormField = NULL);
        CFX_WideString                                  OnFormat(CPDF_FormField* pFormField, FX_BOOL& bFormated);
-       
+
        void                                                    ResetFieldAppearance(CPDF_FormField* pFormField, const FX_WCHAR* sValue, FX_BOOL bValueChanged);
        void                                                    UpdateField(CPDF_FormField* pFormField);
-       
+
 public:
        FX_BOOL                                                 DoAction_Hide(const CPDF_Action& action);
        FX_BOOL                                                 DoAction_SubmitForm(const CPDF_Action& action);
        FX_BOOL                                                 DoAction_ResetForm(const CPDF_Action& action);
        FX_BOOL                                                 DoAction_ImportData(const CPDF_Action& action);
-       
+
        void                                                    GetFieldFromObjects(const CFX_PtrArray& objects, CFX_PtrArray& fields);
        FX_BOOL                                                 IsValidField(CPDF_Dictionary* pFieldDict);
-       FX_BOOL                                                 SubmitFields(const CFX_WideString& csDestination, const CFX_PtrArray& fields, 
+       FX_BOOL                                                 SubmitFields(const CFX_WideString& csDestination, const CFX_PtrArray& fields,
                FX_BOOL bIncludeOrExclude, FX_BOOL bUrlEncoded);
        FX_BOOL                                                 SubmitForm(const CFX_WideString& sDestination, FX_BOOL bUrlEncoded);
        FX_BOOL                                                 ExportFormToFDFTextBuf(CFX_ByteTextBuf& textBuf);
        FX_BOOL                                                 ExportFieldsToFDFTextBuf(const CFX_PtrArray& fields,FX_BOOL bIncludeOrExclude, CFX_ByteTextBuf& textBuf);
        CFX_WideString                                  GetTemporaryFileName(const CFX_WideString& sFileExt);
-       
+
 private:
        virtual int                                             BeforeValueChange(const CPDF_FormField* pField, CFX_WideString& csValue);
        virtual int                                             AfterValueChange(const CPDF_FormField* pField);
@@ -228,13 +228,13 @@ private:
        virtual int                                             AfterFormReset(const CPDF_InterForm* pForm);
        virtual int                                             BeforeFormImportData(const CPDF_InterForm* pForm);
        virtual int                                             AfterFormImportData(const CPDF_InterForm* pForm);
-       
+
 private:
        FX_BOOL                                                 FDFToURLEncodedData(CFX_WideString csFDFFile, CFX_WideString csTxtFile);
        FX_BOOL                                                 FDFToURLEncodedData(uint8_t*& pBuf, FX_STRSIZE& nBufSize);
        int                                                             GetPageIndexByAnnotDict(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict) const;
        void                                                    DoFDFBuffer(CFX_ByteString sBuffer);
-       
+
 private:
        CPDFSDK_Document*                               m_pDocument;
        CPDF_InterForm*                                 m_pInterForm;
index bc7cbcb..b243cd4 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_COMMON_H_
index f3ff066..a80e5f5 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_DEFINE_H_
 #include <math.h>
 #endif
 
-#include "../../core/include/fpdfapi/fpdf_parser.h" 
-#include "../../core/include/fpdfapi/fpdfapi.h" 
-#include "../../core/include/fpdfapi/fpdf_parser.h" 
-#include "../../core/include/fpdfapi/fpdf_module.h" 
-#include "../../core/include/fpdfapi/fpdf_render.h" 
-#include "../../core/include/fpdfapi/fpdf_pageobj.h" 
-#include "../../core/include/fpdfapi/fpdf_serial.h" 
+#include "../../core/include/fpdfapi/fpdf_parser.h"
+#include "../../core/include/fpdfapi/fpdfapi.h"
+#include "../../core/include/fpdfapi/fpdf_parser.h"
+#include "../../core/include/fpdfapi/fpdf_module.h"
+#include "../../core/include/fpdfapi/fpdf_render.h"
+#include "../../core/include/fpdfapi/fpdf_pageobj.h"
+#include "../../core/include/fpdfapi/fpdf_serial.h"
 
 #include "../../core/include/fpdftext/fpdf_text.h"
 
 
 #include "../../core/include/fxcodec/fx_codec.h"
 
-#include "../../core/include/fpdfdoc/fpdf_doc.h" 
-#include "../../core/include/fpdfdoc/fpdf_vt.h" 
+#include "../../core/include/fpdfdoc/fpdf_doc.h"
+#include "../../core/include/fpdfdoc/fpdf_vt.h"
 
-#include "../../core/include/fxcrt/fx_xml.h" 
+#include "../../core/include/fxcrt/fx_xml.h"
 
 
 #ifndef FX_GetAValue
@@ -63,7 +63,7 @@
 #define FX_COLORREFTOARGB(rgb)         ((FX_DWORD)0xFF000000|(((FX_DWORD)rgb & 0x000000FF) << 16)|((FX_DWORD)rgb & 0x0000FF00)|(((FX_DWORD)rgb & 0x00FF0000) >> 16))
 #endif
 
-typedef unsigned int FX_UINT;  
+typedef unsigned int FX_UINT;
 
 #include "../../public/fpdfview.h"
 
index fff7031..b2bc163 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FSDK_RENDERCONTEXT_H_
 #include "fsdk_define.h"
 
 // Everything about rendering is put here: for OOM recovery
-class CRenderContext 
+class CRenderContext
 {
 public:
        CRenderContext() { Clear(); }
        ~CRenderContext();
-       
+
        void Clear();
-       
+
        CFX_RenderDevice*               m_pDevice;
        CPDF_RenderContext*             m_pContext;
        CPDF_ProgressiveRenderer*       m_pRenderer;
@@ -35,7 +35,7 @@ class IFSDK_PAUSE_Adapter : public IFX_Pause
 public:
        IFSDK_PAUSE_Adapter(IFSDK_PAUSE* IPause );
        FX_BOOL NeedToPauseNow();
-       
+
 private:
        IFSDK_PAUSE* m_IPause;
 };
index e398f78..bf59e45 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FX_SYSTEMHANDLER_H_
@@ -11,7 +11,7 @@ typedef void*                         FX_HWND;
 typedef void*                          FX_HMENU;
 typedef void                                   (*TimerCallback)(int32_t idEvent);
 
-typedef struct _FX_SYSTEMTIME 
+typedef struct _FX_SYSTEMTIME
 {
     _FX_SYSTEMTIME()
       : wYear(0),
@@ -51,16 +51,16 @@ public:
 
        virtual CFX_WideString          GetClipboardText(FX_HWND hWnd) = 0;
        virtual FX_BOOL                         SetClipboardText(FX_HWND hWnd, CFX_WideString string) = 0;
-       
+
        virtual void                            ClientToScreen(FX_HWND hWnd, int32_t& x, int32_t& y) = 0;
        virtual void                            ScreenToClient(FX_HWND hWnd, int32_t& x, int32_t& y) = 0;
 
        /*cursor style
-       FXCT_ARROW      
-       FXCT_NESW               
-       FXCT_NWSE               
-       FXCT_VBEAM              
-       FXCT_HBEAM              
+       FXCT_ARROW
+       FXCT_NESW
+       FXCT_NWSE
+       FXCT_VBEAM
+       FXCT_HBEAM
        FXCT_HAND
        */
        virtual void                            SetCursor(int32_t nCursorType) = 0;
@@ -86,7 +86,7 @@ public:
 
        virtual FX_SYSTEMTIME           GetLocalTime() = 0;
 
-       virtual int32_t                 GetCharSet() = 0;       
+       virtual int32_t                 GetCharSet() = 0;
        virtual void                            SetCharSet(int32_t nCharSet) = 0;
 };
 
index f710cdd..bf46e91 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FXEDIT_FX_EDIT_H_
@@ -58,7 +58,7 @@ struct CPVT_WordRange;
 
 #ifndef DEFAULT_CHARSET
 #define DEFAULT_CHARSET         1
-#endif 
+#endif
 
 class IFX_Edit_FontMap
 {
@@ -81,12 +81,12 @@ class IFX_Edit_Notify
 public:
         virtual ~IFX_Edit_Notify() { }
        //set the horizontal scrollbar information.
-       virtual void                                                    IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 
-                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax, 
+       virtual void                                                    IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
+                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax,
                                                                                                FX_FLOAT fSmallStep, FX_FLOAT fBigStep) = 0;
        //set the vertical scrollbar information.
-       virtual void                                                    IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 
-                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax, 
+       virtual void                                                    IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
+                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax,
                                                                                                FX_FLOAT fSmallStep, FX_FLOAT fBigStep) = 0;
        //set the position of horizontal scrollbar.
        virtual void                                                    IOnSetScrollPosX(FX_FLOAT fx) = 0;
@@ -134,14 +134,14 @@ public:
        virtual FX_BOOL                                                 NextWord() = 0;
        //move the current position to the next line.
        virtual FX_BOOL                                                 NextLine() = 0;
-       //move the current position to the next section. 
+       //move the current position to the next section.
        virtual FX_BOOL                                                 NextSection() = 0;
 
        //move the current position to the previous word.
        virtual FX_BOOL                                                 PrevWord() = 0;
        //move the current position to the previous line.
        virtual FX_BOOL                                                 PrevLine() = 0;
-       //move the current position to the previous section. 
+       //move the current position to the previous section.
        virtual FX_BOOL                                                 PrevSection() = 0;
 
        //get the information of the current word.
@@ -217,7 +217,7 @@ public:
        virtual void                                                    SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE) = 0;
        //if set, CRLF is allowed.
        virtual void                                                    SetMultiLine(FX_BOOL bMultiLine = TRUE, FX_BOOL bPaint = TRUE) = 0;
-       //if set, all words auto fit the width of the bounding box.     
+       //if set, all words auto fit the width of the bounding box.
        virtual void                                                    SetAutoReturn(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) = 0;
        //if set, a font size is calculated to full fit the bounding box.
        virtual void                                                    SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE) = 0;
@@ -233,13 +233,13 @@ public:
        //set the edit is richedit.
        virtual void                                                    SetRichText(FX_BOOL bRichText = TRUE, FX_BOOL bPaint = TRUE) = 0;
        //set the fontsize of selected text.
-       virtual FX_BOOL                                                 SetRichFontSize(FX_FLOAT fFontSize) = 0;        
+       virtual FX_BOOL                                                 SetRichFontSize(FX_FLOAT fFontSize) = 0;
        //set the fontindex of selected text, user can change the font of selected text.
        virtual FX_BOOL                                                 SetRichFontIndex(int32_t nFontIndex) = 0;
        //set the textcolor of selected text.
        virtual FX_BOOL                                                 SetRichTextColor(FX_COLORREF dwColor) = 0;
        //set the text script type of selected text. (0:normal 1:superscript 2:subscript)
-       virtual FX_BOOL                                                 SetRichTextScript(int32_t nScriptType) = 0;     
+       virtual FX_BOOL                                                 SetRichTextScript(int32_t nScriptType) = 0;
        //set the bold font style of selected text.
        virtual FX_BOOL                                                 SetRichTextBold(FX_BOOL bBold = TRUE) = 0;
        //set the italic font style of selected text.
@@ -267,7 +267,7 @@ public:
        //select all the text.
        virtual void                                                    SelectAll() = 0;
        //set text is not selected.
-       virtual void                                                    SelectNone() = 0;               
+       virtual void                                                    SelectNone() = 0;
        //get the caret position.
        virtual int32_t                                         GetCaret() const = 0;
        virtual CPVT_WordPlace                                  GetCaretWordPlace() const = 0;
@@ -276,7 +276,7 @@ public:
        //get the text conent
        virtual CFX_WideString                                  GetText() const = 0;
        //query if any text is selected.
-       virtual FX_BOOL                                                 IsSelected() const = 0; 
+       virtual FX_BOOL                                                 IsSelected() const = 0;
        //get the scroll origin
        virtual CPDF_Point                                              GetScrollPos() const = 0;
        //get the bounding box of the text area.
@@ -310,18 +310,18 @@ public:
 
        //put text into edit.
        virtual void                                                    SetText(const FX_WCHAR* text,int32_t charset = DEFAULT_CHARSET,
-                                                                                                       const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL) = 0;   
+                                                                                                       const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL) = 0;
        //insert a word into the edit.
        virtual FX_BOOL                                                 InsertWord(FX_WORD word, int32_t charset = DEFAULT_CHARSET, const CPVT_WordProps * pWordProps = NULL) = 0;
        //insert a return into the edit.
-       virtual FX_BOOL                                                 InsertReturn(const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL) = 0;      
+       virtual FX_BOOL                                                 InsertReturn(const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL) = 0;
        //insert text into the edit.
        virtual FX_BOOL                                                 InsertText(const FX_WCHAR* text, int32_t charset = DEFAULT_CHARSET,
                                                                                                        const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL) = 0;
        //do backspace operation.
        virtual FX_BOOL                                                 Backspace() = 0;
        //do delete operation.
-       virtual FX_BOOL                                                 Delete() = 0;   
+       virtual FX_BOOL                                                 Delete() = 0;
        //delete the selected text.
        virtual FX_BOOL                                                 Clear() = 0;
 
@@ -334,7 +334,7 @@ public:
 
        //arrange all words over again
        virtual void                                                    Paint() = 0;
-       
+
        //allow to refresh screen?
        virtual void                                                    EnableRefresh(FX_BOOL bRefresh) = 0;
 
@@ -392,15 +392,15 @@ public:
 
        virtual void                                                    AddUndoItem(IFX_Edit_UndoItem* pUndoItem) = 0;
 
-       static CFX_ByteString                                   GetEditAppearanceStream(IFX_Edit* pEdit, const CPDF_Point & ptOffset, 
-                                                                                                       const CPVT_WordRange* pRange = NULL, 
+       static CFX_ByteString                                   GetEditAppearanceStream(IFX_Edit* pEdit, const CPDF_Point & ptOffset,
+                                                                                                       const CPVT_WordRange* pRange = NULL,
                                                                                                        FX_BOOL bContinuous = TRUE, FX_WORD SubWord = 0);
        static CFX_ByteString                                   GetSelectAppearanceStream(IFX_Edit* pEdit, const CPDF_Point & ptOffset, const CPVT_WordRange* pRange = NULL);
        static void                                                             DrawEdit(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device, IFX_Edit* pEdit, FX_COLORREF crTextFill, FX_COLORREF crTextStroke,
                                                                                                        const CPDF_Rect& rcClip, const CPDF_Point& ptOffset, const CPVT_WordRange* pRange, IFX_SystemHandler* pSystemHandler, void* pFFLData);
        static void                                                             DrawUnderline(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device, IFX_Edit* pEdit, FX_COLORREF color,
                                                                                                        const CPDF_Rect& rcClip, const CPDF_Point& ptOffset, const CPVT_WordRange* pRange);
-       static void                                                             DrawRichEdit(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device, IFX_Edit* pEdit,  
+       static void                                                             DrawRichEdit(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device, IFX_Edit* pEdit,
                                                                                                        const CPDF_Rect& rcClip, const CPDF_Point& ptOffset, const CPVT_WordRange* pRange);
        static void                                                             GeneratePageObjects(CPDF_PageObjects* pPageObjects, IFX_Edit* pEdit,
                                                                                                        const CPDF_Point& ptOffset, const CPVT_WordRange* pRange, FX_COLORREF crText, CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray);
@@ -418,12 +418,12 @@ class IFX_List_Notify
 public:
         virtual ~IFX_List_Notify() { }
        //set the horizontal scrollbar information.
-       virtual void                                                    IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 
-                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax, 
+       virtual void                                                    IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
+                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax,
                                                                                                FX_FLOAT fSmallStep, FX_FLOAT fBigStep) = 0;
        //set the vertical scrollbar information.
-       virtual void                                                    IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 
-                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax, 
+       virtual void                                                    IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
+                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax,
                                                                                                FX_FLOAT fSmallStep, FX_FLOAT fBigStep) = 0;
        //set the position of horizontal scrollbar.
        virtual void                                                    IOnSetScrollPosX(FX_FLOAT fx) = 0;
@@ -453,23 +453,23 @@ public:
        virtual int32_t                                         GetCount() const = 0;
        virtual FX_BOOL                                                 IsItemSelected(int32_t nIndex) const = 0;
        virtual FX_FLOAT                                                GetFirstHeight() const = 0;
-       
+
        virtual void                                                    SetMultipleSel(FX_BOOL bMultiple) = 0;
-       virtual FX_BOOL                                                 IsMultipleSel() const = 0;      
+       virtual FX_BOOL                                                 IsMultipleSel() const = 0;
        virtual FX_BOOL                                                 IsValid(int32_t nItemIndex) const = 0;
-       virtual int32_t                                         FindNext(int32_t nIndex,FX_WCHAR nChar) const = 0;      
+       virtual int32_t                                         FindNext(int32_t nIndex,FX_WCHAR nChar) const = 0;
 
        virtual void                                                    SetScrollPos(const CPDF_Point & point) = 0;
        virtual void                                                    ScrollToListItem(int32_t nItemIndex) = 0;
        virtual CPDF_Rect                                               GetItemRect(int32_t nIndex) const = 0;
        virtual int32_t                                         GetCaret() const = 0;
-       virtual int32_t                                         GetSelect() const = 0;  
+       virtual int32_t                                         GetSelect() const = 0;
        virtual int32_t                                         GetTopItem() const = 0;
        virtual int32_t                                         GetItemIndex(const CPDF_Point & point) const = 0;
        virtual int32_t                                         GetFirstSelected() const = 0;
 
        virtual void                                                    AddString(const FX_WCHAR* string) = 0;
-       virtual void                                                    SetTopItem(int32_t nIndex) = 0; 
+       virtual void                                                    SetTopItem(int32_t nIndex) = 0;
        virtual void                                                    Select(int32_t nItemIndex) = 0;
        virtual void                                                    SetCaret(int32_t nItemIndex) = 0;
        virtual void                                                    Empty() = 0;
index d92f290..7a2742f 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_FXEDIT_FXET_EDIT_H_
@@ -313,10 +313,10 @@ private:
 
 private:
        CFX_ArrayTemplate<IFX_Edit_UndoItem*>   m_UndoItemStack;
-       
+
        int32_t                                                         m_nCurUndoPos;
        int32_t                                                         m_nBufSize;
-       FX_BOOL                                                                 m_bModified; 
+       FX_BOOL                                                                 m_bModified;
        FX_BOOL                                                                 m_bVirgin;
        FX_BOOL                                                                 m_bWorking;
 };
@@ -507,8 +507,8 @@ private:
 class CFXEU_SetSecProps : public CFX_Edit_UndoItem
 {
 public:
-       CFXEU_SetSecProps(CFX_Edit * pEdit, const CPVT_WordPlace & place, EDIT_PROPS_E ep, 
-               const CPVT_SecProps & oldsecprops, const CPVT_WordProps & oldwordprops, 
+       CFXEU_SetSecProps(CFX_Edit * pEdit, const CPVT_WordPlace & place, EDIT_PROPS_E ep,
+               const CPVT_SecProps & oldsecprops, const CPVT_WordProps & oldwordprops,
                const CPVT_SecProps & newsecprops, const CPVT_WordProps & newwordprops, const CPVT_WordRange & range);
        virtual ~CFXEU_SetSecProps();
 
@@ -524,13 +524,13 @@ private:
        CPVT_SecProps                           m_OldSecProps;
        CPVT_SecProps                           m_NewSecProps;
        CPVT_WordProps                          m_OldWordProps;
-       CPVT_WordProps                          m_NewWordProps; 
+       CPVT_WordProps                          m_NewWordProps;
 };
 
 class CFXEU_SetWordProps : public CFX_Edit_UndoItem
 {
 public:
-       CFXEU_SetWordProps(CFX_Edit * pEdit, const CPVT_WordPlace & place, EDIT_PROPS_E ep, 
+       CFXEU_SetWordProps(CFX_Edit * pEdit, const CPVT_WordPlace & place, EDIT_PROPS_E ep,
                const CPVT_WordProps & oldprops, const CPVT_WordProps & newprops, const CPVT_WordRange & range);
        virtual ~CFXEU_SetWordProps();
 
@@ -542,9 +542,9 @@ private:
        CPVT_WordPlace                          m_wpPlace;
        CPVT_WordRange                          m_wrPlace;
        EDIT_PROPS_E                            m_eProps;
-       
+
        CPVT_WordProps                          m_OldWordProps;
-       CPVT_WordProps                          m_NewWordProps; 
+       CPVT_WordProps                          m_NewWordProps;
 };
 
 /* ------------------------- CFX_Edit ---------------------------- */
@@ -559,14 +559,14 @@ class CFX_Edit : public IFX_Edit
        friend class CFXEU_Clear;
        friend class CFXEU_ClearRich;
        friend class CFXEU_SetSecProps;
-       friend class CFXEU_SetWordProps;        
+       friend class CFXEU_SetWordProps;
        friend class CFXEU_InsertText;
 
 public:
        CFX_Edit(IPDF_VariableText * pVT);
        virtual ~CFX_Edit();
 
-       void                                                                    SetFontMap(IFX_Edit_FontMap * pFontMap);        
+       void                                                                    SetFontMap(IFX_Edit_FontMap * pFontMap);
        void                                                                    SetVTProvider(IPDF_VariableText_Provider* pProvider);
        void                                                                    SetNotify(IFX_Edit_Notify * pNotify);
        void                                                                    SetOprNotify(IFX_Edit_OprNotify* pOprNotify);
@@ -588,18 +588,18 @@ public:
        void                                                                    SetLineLeading(FX_FLOAT fLineLeading, FX_BOOL bPaint = TRUE);
        void                                                                    SetMultiLine(FX_BOOL bMultiLine = TRUE, FX_BOOL bPaint = TRUE);
        void                                                                    SetAutoReturn(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE);
-       void                                                                    SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE);   
-       void                                                                    SetAutoScroll(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE);     
+       void                                                                    SetAutoFontSize(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE);
+       void                                                                    SetAutoScroll(FX_BOOL bAuto = TRUE, FX_BOOL bPaint = TRUE);
        void                                                                    SetFontSize(FX_FLOAT fFontSize, FX_BOOL bPaint = TRUE);
        void                                                                    SetTextOverflow(FX_BOOL bAllowed = FALSE, FX_BOOL bPaint = TRUE);
 
        FX_BOOL                                                                 IsRichText() const;
        void                                                                    SetRichText(FX_BOOL bRichText = TRUE, FX_BOOL bPaint = TRUE);
-       FX_BOOL                                                                 SetRichFontSize(FX_FLOAT fFontSize);    
+       FX_BOOL                                                                 SetRichFontSize(FX_FLOAT fFontSize);
        FX_BOOL                                                                 SetRichFontIndex(int32_t nFontIndex);
        FX_BOOL                                                                 SetRichTextColor(FX_COLORREF dwColor);
        FX_BOOL                                                                 SetRichTextScript(int32_t nScriptType);
-       FX_BOOL                                                                 SetRichTextBold(FX_BOOL bBold = TRUE);  
+       FX_BOOL                                                                 SetRichTextBold(FX_BOOL bBold = TRUE);
        FX_BOOL                                                                 SetRichTextItalic(FX_BOOL bItalic = TRUE);
        FX_BOOL                                                                 SetRichTextUnderline(FX_BOOL bUnderline = TRUE);
        FX_BOOL                                                                 SetRichTextCrossout(FX_BOOL bCrossout = TRUE);
@@ -619,23 +619,23 @@ public:
        void                                                                    OnVK_END(FX_BOOL bShift,FX_BOOL bCtrl);
 
        void                                                                    SetText(const FX_WCHAR* text,int32_t charset = DEFAULT_CHARSET,
-                                                                                                       const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL);       
+                                                                                                       const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL);
        FX_BOOL                                                                 InsertWord(FX_WORD word, int32_t charset = DEFAULT_CHARSET, const CPVT_WordProps * pWordProps = NULL);
        FX_BOOL                                                                 InsertReturn(const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL);
        FX_BOOL                                                                 Backspace();
-       FX_BOOL                                                                 Delete();               
+       FX_BOOL                                                                 Delete();
        FX_BOOL                                                                 Clear();
        FX_BOOL                                                                 Empty();
        FX_BOOL                                                                 InsertText(const FX_WCHAR* text, int32_t charset = DEFAULT_CHARSET,
                                                                                                        const CPVT_SecProps * pSecProps = NULL,const CPVT_WordProps * pWordProps = NULL);
        FX_BOOL                                                                 Redo();
-       FX_BOOL                                                                 Undo(); 
-       CPVT_WordPlace                                                  DoInsertText(const CPVT_WordPlace& place, const FX_WCHAR* text, int32_t charset, 
+       FX_BOOL                                                                 Undo();
+       CPVT_WordPlace                                                  DoInsertText(const CPVT_WordPlace& place, const FX_WCHAR* text, int32_t charset,
                                                                                                const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordProps);
        int32_t                                                         GetCharSetFromUnicode(FX_WORD word, int32_t nOldCharset);
 
        int32_t                                                         WordPlaceToWordIndex(const CPVT_WordPlace & place) const;
-       CPVT_WordPlace                                                  WordIndexToWordPlace(int32_t index) const;      
+       CPVT_WordPlace                                                  WordIndexToWordPlace(int32_t index) const;
 
        CPVT_WordPlace                                                  GetLineBeginPlace(const CPVT_WordPlace & place) const;
        CPVT_WordPlace                                                  GetLineEndPlace(const CPVT_WordPlace & place) const;
@@ -680,19 +680,19 @@ private:
        void                                                                    EnableNotify(FX_BOOL bNotify);
 
        void                                                                    SetText(const FX_WCHAR* text,int32_t charset,
-                                                                                                       const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProps,FX_BOOL bAddUndo, FX_BOOL bPaint);    
+                                                                                                       const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProps,FX_BOOL bAddUndo, FX_BOOL bPaint);
        FX_BOOL                                                                 InsertWord(FX_WORD word, int32_t charset, const CPVT_WordProps * pWordProps,FX_BOOL bAddUndo, FX_BOOL bPaint);
        FX_BOOL                                                                 InsertReturn(const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProps,FX_BOOL bAddUndo, FX_BOOL bPaint);
        FX_BOOL                                                                 Backspace(FX_BOOL bAddUndo, FX_BOOL bPaint);
-       FX_BOOL                                                                 Delete(FX_BOOL bAddUndo, FX_BOOL bPaint);               
+       FX_BOOL                                                                 Delete(FX_BOOL bAddUndo, FX_BOOL bPaint);
        FX_BOOL                                                                 Clear(FX_BOOL bAddUndo, FX_BOOL bPaint);
        FX_BOOL                                                                 InsertText(const FX_WCHAR* text, int32_t charset,
                                                                                                const CPVT_SecProps * pSecProps,const CPVT_WordProps * pWordProps,FX_BOOL bAddUndo, FX_BOOL bPaint);
        FX_BOOL                                                                 SetRichTextProps(EDIT_PROPS_E eProps,
                                                                                                const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordProps);
-       FX_BOOL                                                                 SetSecProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place, 
+       FX_BOOL                                                                 SetSecProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place,
                                                                                                const CPVT_SecProps * pSecProps, const CPVT_WordProps * pWordProps, const CPVT_WordRange & wr, FX_BOOL bAddUndo);
-       FX_BOOL                                                                 SetWordProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place, 
+       FX_BOOL                                                                 SetWordProps(EDIT_PROPS_E eProps, const CPVT_WordPlace & place,
                                                                                                const CPVT_WordProps * pWordProps, const CPVT_WordRange & wr, FX_BOOL bAddUndo);
        void                                                                    PaintSetProps(EDIT_PROPS_E eProps, const CPVT_WordRange & wr);
        void                                                                    PaintInsertText(const CPVT_WordPlace & wpOld, const CPVT_WordPlace & wpNew);
@@ -739,7 +739,7 @@ private:
        FX_FLOAT                                                                GetLineTop(const CPVT_WordPlace& place) const;
        FX_FLOAT                                                                GetLineBottom(const CPVT_WordPlace& place) const;
 
-private:       
+private:
        IPDF_VariableText*                                              m_pVT;
        IFX_Edit_Notify*                                                m_pNotify;
        IFX_Edit_OprNotify*                                             m_pOprNotify;
@@ -751,8 +751,8 @@ private:
 
        CPDF_Point                                                              m_ptScrollPos;
        CPDF_Point                                                              m_ptRefreshScrollPos;
-       FX_BOOL                                                                 m_bEnableScroll;        
-       IFX_Edit_Iterator *                                             m_pIterator;    
+       FX_BOOL                                                                 m_bEnableScroll;
+       IFX_Edit_Iterator *                                             m_pIterator;
        CFX_Edit_Refresh                                                m_Refresh;
        CPDF_Point                                                              m_ptCaret;
        CFX_Edit_Undo                                                   m_Undo;
index f7ddc52..d04cc6b 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_CONSTS_H_
index ab1ddb8..b3725e7 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_DOCUMENT_H_
@@ -14,7 +14,7 @@ class PrintParamsObj : public CJS_EmbedObj
 public:
        PrintParamsObj(CJS_Object* pJSObject);
        virtual ~PrintParamsObj(){}
-       
+
 public:
        FX_BOOL bUI;
        int nStart;
@@ -31,7 +31,7 @@ class CJS_PrintParamsObj : public CJS_Object
 public:
        CJS_PrintParamsObj(JSFXObject pObject) : CJS_Object(pObject) {}
        virtual ~CJS_PrintParamsObj(){}
-       
+
        DECLARE_JS_CLASS(CJS_PrintParamsObj);
 };
 
@@ -158,7 +158,7 @@ public:
        FX_BOOL submitForm(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        FX_BOOL mailDoc(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        FX_BOOL removeIcon(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
-       
+
 public:
        void                                    AttachDoc(CPDFSDK_Document* pDoc);
        CPDFSDK_Document*                       GetReaderDoc();
@@ -169,7 +169,7 @@ public:
        void                                    AddDelayAnnotData(CJS_AnnotObj *pData);
        void                                    DoAnnotDelay();
        void                                    SetIsolate(v8::Isolate* isolate) {m_isolate = isolate;}
-       CJS_Document*                           GetCJSDoc() const; 
+       CJS_Document*                           GetCJSDoc() const;
 
 private:
        CFX_WideString                          ReversalStr(CFX_WideString cbFrom);
@@ -194,7 +194,7 @@ public:
        CJS_Document(JSFXObject pObject) : CJS_Object(pObject) {};
        virtual ~CJS_Document(){};
 
-       virtual FX_BOOL InitInstance(IFXJS_Context* cc);        
+       virtual FX_BOOL InitInstance(IFXJS_Context* cc);
 
        DECLARE_JS_CLASS(CJS_Document);
 
index 573fb39..70d1d39 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_FIELD_H_
@@ -100,7 +100,7 @@ struct CJS_DelayData
 class Field : public CJS_EmbedObj
 {
 public:
-       Field(CJS_Object* pJSObject);   
+       Field(CJS_Object* pJSObject);
        virtual ~Field(void);
 
     FX_BOOL alignment(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
@@ -221,12 +221,12 @@ public:
        static void SetValue(CPDFSDK_Document* pDocument, const CFX_WideString& swFieldName, int nControlIndex, const CJS_WideStringArray& strArray);
 
 public:
-       static void                                                     AddField(CPDFSDK_Document* pDocument, int nPageIndex, int nFieldType, 
+       static void                                                     AddField(CPDFSDK_Document* pDocument, int nPageIndex, int nFieldType,
                                                                                        const CFX_WideString& sName, const CPDF_Rect& rcCoords);
 public:
-       static void                                                     UpdateFormField(CPDFSDK_Document* pDocument, CPDF_FormField* pFormField, 
+       static void                                                     UpdateFormField(CPDFSDK_Document* pDocument, CPDF_FormField* pFormField,
                                                                                        FX_BOOL bChangeMark, FX_BOOL bResetAP, FX_BOOL bRefresh);
-       static void                                                     UpdateFormControl(CPDFSDK_Document* pDocument, CPDF_FormControl* pFormControl, 
+       static void                                                     UpdateFormControl(CPDFSDK_Document* pDocument, CPDF_FormControl* pFormControl,
                                                                                        FX_BOOL bChangeMark, FX_BOOL bResetAP, FX_BOOL bRefresh);
 
        static CPDFSDK_Widget*                                  GetWidget(CPDFSDK_Document* pDocument, CPDF_FormControl* pFormControl);
index 3f5bfd2..1d0c55f 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_IJAVASCRIPT_H_
@@ -46,7 +46,7 @@ public:
        virtual void                            OnField_Format(CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit) = 0;
        virtual void                            OnField_Keystroke(CFX_WideString& strChange, const CFX_WideString& strChangeEx,
                                                                        FX_BOOL KeyDown, FX_BOOL bModifier, int &nSelEnd,int &nSelStart, FX_BOOL bShift,
-                                                                       CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit, 
+                                                                       CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit,
                                                                        FX_BOOL bFieldFull, FX_BOOL &bRc) = 0;
        virtual void                            OnField_Validate(CFX_WideString& strChange, const CFX_WideString& strChangeEx, FX_BOOL bKeyDown,
                                                                        FX_BOOL bModifier, FX_BOOL bShift, CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL& bRc) = 0;
index 20a3bb8..0298005 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_ICON_H_
index ebd9e3c..2e2cf37 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_CONTEXT_H_
@@ -38,7 +38,7 @@ public:
        virtual void                            OnPage_Close(CPDFSDK_Document* pTarget);
        virtual void                            OnPage_InView(CPDFSDK_Document* pTarget);
        virtual void                            OnPage_OutView(CPDFSDK_Document* pTarget);
-       
+
        virtual void                            OnField_MouseDown(FX_BOOL bModifier, FX_BOOL bShift, CPDF_FormField *pTarget);
        virtual void                            OnField_MouseEnter(FX_BOOL bModifier, FX_BOOL bShift, CPDF_FormField *pTarget);
        virtual void                            OnField_MouseExit(FX_BOOL bModifier, FX_BOOL bShift, CPDF_FormField *pTarget);
@@ -50,7 +50,7 @@ public:
        virtual void                            OnField_Format(CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit);
        virtual void                            OnField_Keystroke(CFX_WideString& strChange, const CFX_WideString& strChangeEx,
                                                                        FX_BOOL bKeyDown, FX_BOOL bModifier, int &nSelEnd,int &nSelStart, FX_BOOL bShift,
-                                                                       CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit, 
+                                                                       CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit,
                                                                        FX_BOOL bFieldFull, FX_BOOL &bRc);
        virtual void                            OnField_Validate(CFX_WideString& strChange, const CFX_WideString& strChangeEx, FX_BOOL bKeyDown,
                                                                        FX_BOOL bModifier, FX_BOOL bShift, CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL& bRc);
@@ -83,14 +83,14 @@ public:
 
        FX_BOOL                                         DoJob(int nMode, const CFX_WideString& script, CFX_WideString& info);
 
-       CJS_EventHandler*                       GetEventHandler(){return m_pEventHandler;};     
+       CJS_EventHandler*                       GetEventHandler(){return m_pEventHandler;};
        CPDFSDK_Document*                       GetReaderDocument();
 
 private:
-       CJS_Runtime*                            m_pRuntime;     
-       CJS_EventHandler*                       m_pEventHandler;        
+       CJS_Runtime*                            m_pRuntime;
+       CJS_EventHandler*                       m_pEventHandler;
 
-       FX_BOOL                                         m_bBusy;        
+       FX_BOOL                                         m_bBusy;
        FX_BOOL                                         m_bMsgBoxEnable;
 };
 
index 0195271..dabcb06 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_DEFINE_H_
index 8389831..62afb82 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_EVENTHANDLER_H_
@@ -78,12 +78,12 @@ public:
        void                                    OnPage_Close(CPDFSDK_Document* pDoc);
        void                                    OnPage_InView(CPDFSDK_Document* pTarget);
        void                                    OnPage_OutView(CPDFSDK_Document* pTarget);
-       
+
        void                                    OnField_Calculate(CPDF_FormField* pSource, CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL& bRc);
        void                                    OnField_Format(CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit);
        void                                    OnField_Keystroke(CFX_WideString& strChange, const CFX_WideString& strChangeEx,
                                                                FX_BOOL KeyDown, FX_BOOL bModifier, int &nSelEnd,int &nSelStart, FX_BOOL bShift,
-                                                               CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit, 
+                                                               CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL bWillCommit,
                                                                FX_BOOL bFieldFull, FX_BOOL &bRc);
        void                                    OnField_Validate(CFX_WideString& strChange, const CFX_WideString& strChangeEx, FX_BOOL bKeyDown,
                                                                FX_BOOL bModifier, FX_BOOL bShift, CPDF_FormField* pTarget, CFX_WideString& Value, FX_BOOL& bRc);
@@ -119,7 +119,7 @@ public:
        void                                    Destroy();
        FX_BOOL                                 IsValid();
 
-       
+
        CFX_WideString&                 Change();
        CFX_WideString                  ChangeEx();
        int                                             CommitKey();
@@ -138,7 +138,7 @@ public:
        FX_BOOL                                 WillCommit();
        CFX_WideString                  TargetName();
 
-       JS_EVENT_T                              EventType() {return m_eEventType;};     
+       JS_EVENT_T                              EventType() {return m_eEventType;};
 
 public:
        CJS_Context*                    m_pJSContext;
index 448537a..b3637b9 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_GLOBALDATA_H_
@@ -74,15 +74,15 @@ public:
 
        FX_BOOL                                                         SetGlobalVariablePersistent(const FX_CHAR* propname, FX_BOOL bPersistent);
        FX_BOOL                                                         DeleteGlobalVariable(const FX_CHAR* propname);
-       
+
        int32_t                                                 GetSize() const;
        CJS_GlobalData_Element*                         GetAt(int index) const;
 
 private:
        void                                                            LoadGlobalPersistentVariables();
        void                                                            SaveGlobalPersisitentVariables();
-       
-       CJS_GlobalData_Element*                         GetGlobalVariable(const FX_CHAR* propname);     
+
+       CJS_GlobalData_Element*                         GetGlobalVariable(const FX_CHAR* propname);
        int                                                                     FindGlobalVariable(const FX_CHAR* propname);
 
        void                                                            LoadFileBuffer(const FX_WCHAR* sFilePath, uint8_t*& pBuffer, int32_t& nLength);
index 0eb92b0..3898d18 100644 (file)
@@ -17,7 +17,7 @@ class CJS_Object;
 class CJS_Timer;
 class CJS_Context;
 
-class CJS_EmbedObj 
+class CJS_EmbedObj
 {
 public:
        CJS_EmbedObj(CJS_Object* pJSObject);
@@ -39,7 +39,7 @@ protected:
        CJS_Object*                                     m_pJSObject;
 };
 
-class CJS_Object 
+class CJS_Object
 {
 public:
        CJS_Object(JSFXObject pObject);
index 9c3ece3..f08f4a3 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_RUNTIME_H_
index 4381bd5..6186817 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_JS_VALUE_H_
index ba38503..cff9e11 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_PUBLICMETHODS_H_
@@ -35,7 +35,7 @@ public:
        static FX_BOOL AFMakeNumber(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        static FX_BOOL AFSimple_Calculate(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        static FX_BOOL AFRange_Validate(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
-       static FX_BOOL AFMergeChange(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError); 
+       static FX_BOOL AFMergeChange(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        static FX_BOOL AFParseDateEx(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        static FX_BOOL AFExtractNums(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
 
@@ -56,7 +56,7 @@ public:
        JS_STATIC_GLOBAL_FUN(AFSpecial_Keystroke);
        JS_STATIC_GLOBAL_FUN(AFSpecial_KeystrokeEx);
        JS_STATIC_GLOBAL_FUN(AFSimple);
-       JS_STATIC_GLOBAL_FUN(AFMakeNumber);     
+       JS_STATIC_GLOBAL_FUN(AFMakeNumber);
        JS_STATIC_GLOBAL_FUN(AFSimple_Calculate);
        JS_STATIC_GLOBAL_FUN(AFRange_Validate);
        JS_STATIC_GLOBAL_FUN(AFMergeChange);
@@ -64,7 +64,7 @@ public:
        JS_STATIC_GLOBAL_FUN(AFExtractNums);
 
        JS_STATIC_DECLARE_GLOBAL_FUN();
-       
+
 public:
        static int                              ParseStringInteger(const CFX_WideString & string,int nStart,int & nSkip, int nMaxStep);
        static CFX_WideString   ParseStringString(const CFX_WideString& string, int nStart, int& nSkip);
index 7e51f73..ac90e62 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_APP_H_
@@ -20,11 +20,11 @@ class TimerObj : public CJS_EmbedObj
 public:
        TimerObj(CJS_Object* pJSObject);
        virtual ~TimerObj();
-       
+
 public:
        void                    SetTimer(CJS_Timer* pTimer);
        CJS_Timer*              GetTimer() const;
-       
+
 private:
        CJS_Timer*              m_pTimer;
 };
@@ -34,13 +34,13 @@ class CJS_TimerObj : public CJS_Object
 public:
        CJS_TimerObj(JSFXObject pObject) : CJS_Object(pObject) {}
        virtual ~CJS_TimerObj(){}
-       
+
        DECLARE_JS_CLASS(CJS_TimerObj);
 };
 
 
 // struct APP_MENUITEM_ARRAY;
-// 
+//
 // struct APP_MENUITEM
 // {
 //     APP_MENUITEM() : oSubMenu(NULL), cName(L""), cReturn(L""), bMarked(false), bEnabled(true)
@@ -57,7 +57,7 @@ public:
 // {
 //     APP_MENUITEM_ARRAY() : m_hMenu(NULL), pContents(NULL), nSize(0)
 //     {
-// 
+//
 //     }
 //     APP_MENUITEM * pContents;
 //     HMENU m_hMenu;
@@ -71,21 +71,21 @@ public:
 //     pContent(NULL)
 //     {
 //     }
-// 
+//
 //     APP_MENU* pContent;
 // };
 
 // struct APP_MENU
 // {
-//     APP_MENU():bSubMenu(false), 
+//     APP_MENU():bSubMenu(false),
 //     SubMenuItems(NULL),
 //     cwMenuItemName(L""),
 //     hMenu(NULL),
 //     iSize(0)
 //     {
-// 
+//
 //     }
-// 
+//
 //     APP_MENU(CFX_WideString &cwName):
 //     cwMenuItemName(cwName),
 //     bSubMenu(false),
@@ -93,11 +93,11 @@ public:
 //     hMenu(NULL),
 //     iSize(0)
 //     {
-// 
+//
 //     }
-//     
+//
 //     CFX_WideString cwMenuItemName;
-//     bool bSubMenu;  
+//     bool bSubMenu;
 //     APP_MENU_ARRAY* SubMenuItems;
 //     int iSize;
 //     HMENU hMenu;
@@ -121,7 +121,7 @@ public:
        FX_BOOL                                         runtimeHighlight(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL                                         viewerType(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL                                         viewerVariation(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
-       FX_BOOL                                         viewerVersion(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);    
+       FX_BOOL                                         viewerVersion(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
 
 
        FX_BOOL                                         alert(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
@@ -147,7 +147,7 @@ public:
        FX_BOOL                                         setTimeOut(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
 
 private:
-//     FX_DWORD                                        AppGetTickCount(); 
+//     FX_DWORD                                        AppGetTickCount();
        void                                            TimerProc(CJS_Timer* pTimer);
        void                                            RunJsScript(CJS_Runtime * pRuntime,const CFX_WideString & wsScript);
 //     void                                            ParsePopupMenuObj(APP_MENUITEM * ppMenuItem,JSObject * pObj);
@@ -165,12 +165,12 @@ public:
 
 private:
 
-       bool                                            m_bCalculate;   
+       bool                                            m_bCalculate;
        bool                                            m_bRuntimeHighLight;
 
        CFX_ArrayTemplate<CJS_Timer*>   m_aTimer;
 //     APP_MENU*                                       m_pMenuHead;
-       
+
 public:
 //     static CReader_App* s_App;
 };
@@ -194,7 +194,7 @@ public:
        JS_STATIC_PROP(runtimeHighlight, app);
        JS_STATIC_PROP(viewerType, app);
        JS_STATIC_PROP(viewerVariation, app);
-       JS_STATIC_PROP(viewerVersion, app);     
+       JS_STATIC_PROP(viewerVersion, app);
 
        JS_STATIC_METHOD(alert, app);
        JS_STATIC_METHOD(beep, app);
index 8aab76f..df863b5 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_COLOR_H_
@@ -18,13 +18,13 @@ public:
 
        FX_BOOL black(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL blue(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
-       FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);     
+       FX_BOOL cyan(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL dkGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL gray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL green(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL ltGray(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL magenta(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
-       FX_BOOL red(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);      
+       FX_BOOL red(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL transparent(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL white(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
        FX_BOOL yellow(IFXJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
@@ -32,7 +32,7 @@ public:
        FX_BOOL convert(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
        FX_BOOL equal(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
 
-public:  
+public:
        static void             ConvertPWLColorToArray(const CPWL_Color& color, CJS_Array& array);
        static void             ConvertArrayToPWLColor(CJS_Array& array, CPWL_Color& color);
 
@@ -61,13 +61,13 @@ public:
 
        JS_STATIC_PROP(black, color);
        JS_STATIC_PROP(blue, color);
-       JS_STATIC_PROP(cyan, color);    
+       JS_STATIC_PROP(cyan, color);
        JS_STATIC_PROP(dkGray, color);
        JS_STATIC_PROP(gray, color);
        JS_STATIC_PROP(green, color);
        JS_STATIC_PROP(ltGray, color);
        JS_STATIC_PROP(magenta, color);
-       JS_STATIC_PROP(red, color);     
+       JS_STATIC_PROP(red, color);
        JS_STATIC_PROP(transparent, color);
        JS_STATIC_PROP(white, color);
        JS_STATIC_PROP(yellow, color);
index d49ea41..0cbc291 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_CONSOLE_H_
@@ -22,7 +22,7 @@ public:
        FX_BOOL show(IFXJS_Context* cc, const CJS_Parameters& params, CJS_Value& vRet, CFX_WideString& sError);
 };
 
-class CJS_Console : public CJS_Object  
+class CJS_Console : public CJS_Object
 {
 public:
        CJS_Console(JSFXObject pObject) : CJS_Object(pObject) {};
index f43def9..91a38ba 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_EVENT_H_
index 3c8972c..83e07f6 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_GLOBAL_H_
@@ -58,7 +58,7 @@ private:
        void                                            UpdateGlobalPersistentVariables();
        void                                            CommitGlobalPersisitentVariables();
        void                                            DestroyGlobalPersisitentVariables();
-       FX_BOOL                                         SetGlobalVariables(const FX_CHAR* propname, int nType, 
+       FX_BOOL                                         SetGlobalVariables(const FX_CHAR* propname, int nType,
                                                                        double dData, bool bData, const CFX_ByteString& sData, JSObject pData, bool bDefaultPersistent);
 
        void                                            ObjectToArray(v8::Local<v8::Object> pObj, CJS_GlobalVariableArray& array);
@@ -78,7 +78,7 @@ public:
        CJS_Global(JSFXObject pObject) : CJS_Object(pObject) {};
        virtual ~CJS_Global(void){};
 
-       virtual FX_BOOL InitInstance(IFXJS_Context* cc);        
+       virtual FX_BOOL InitInstance(IFXJS_Context* cc);
 
        DECLARE_SPECIAL_JS_CLASS(CJS_Global);
 
index 9705ada..56f742c 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_REPORT_H_
index 07f52ab..ca4db34 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_JAVASCRIPT_UTIL_H_
index 0191cac..2774f70 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_IPDFWINDOW_H_
index 9141cf0..2bf2eea 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_BUTTON_H_
index 8efbf79..6838bc4 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_CARET_H_
@@ -34,7 +34,7 @@ public:
        virtual void                            InvalidateRect(CPDF_Rect * pRect = NULL);
        virtual void                            SetVisible(FX_BOOL bVisible) {}
        virtual void                            TimerProc();
-       void                                            SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot);       
+       void                                            SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot);
        CFX_ByteString                          GetCaretAppearanceStream(const CPDF_Point & ptOffset);
        void                                            SetInvalidRect(CPDF_Rect rc) {m_rcInvalid = rc;}
 
index b82330c..3f8604f 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_COMBOBOX_H_
@@ -48,7 +48,7 @@ public:
 
 };
 
-class PWL_CLASS CPWL_ComboBox : public CPWL_Wnd  
+class PWL_CLASS CPWL_ComboBox : public CPWL_Wnd
 {
 public:
        CPWL_ComboBox();
@@ -58,7 +58,7 @@ public:
        virtual CFX_ByteString          GetClassName() const;
        virtual void                            OnCreate(PWL_CREATEPARAM & cp);
 
-       virtual FX_BOOL                         OnKeyDown(FX_WORD nChar, FX_DWORD nFlag);       
+       virtual FX_BOOL                         OnKeyDown(FX_WORD nChar, FX_DWORD nFlag);
        virtual FX_BOOL                         OnChar(FX_WORD nChar, FX_DWORD nFlag);
 
        virtual void                            OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0);
@@ -67,13 +67,13 @@ public:
        virtual void                            RePosChildWnd();
 
        virtual CPDF_Rect                       GetFocusRect() const;
-       
+
        virtual void                            SetFocus();
        virtual void                            KillFocus();
 
        FX_BOOL                                         IsModified() const;
 
-public:        
+public:
        void                                            SetFillerNotify(IPWL_Filler_Notify* pNotify);
 
        CFX_WideString                          GetText() const;
@@ -91,13 +91,13 @@ public:
 
        void                                            SetSelectText();
 
-private:       
+private:
        void                                            CreateEdit(const PWL_CREATEPARAM & cp);
        void                                            CreateButton(const PWL_CREATEPARAM & cp);
        void                                            CreateListBox(const PWL_CREATEPARAM & cp);
 
        void                                            SetPopup(FX_BOOL bPopup);
-       
+
 private:
        CPWL_CBEdit*                            m_pEdit;
        CPWL_CBButton*                          m_pButton;
index c59099d..97147a9 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDIT_H_
@@ -19,10 +19,10 @@ class IPWL_Filler_Notify
 {
 public:
         virtual ~IPWL_Filler_Notify() { }
-       virtual void                                    QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX_FLOAT fPopupMax, 
+       virtual void                                    QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX_FLOAT fPopupMax,
                                                                                int32_t & nRet, FX_FLOAT & fPopupRet) = 0; //nRet: (0:bottom 1:top)
        virtual void                                    OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, int32_t nKeyCode,
-                                                                               CFX_WideString & strChange, const CFX_WideString& strChangeEx, 
+                                                                               CFX_WideString & strChange, const CFX_WideString& strChangeEx,
                                                                                int nSelStart, int nSelEnd,
                                                                                FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag) = 0;
        virtual void                                    OnAfterKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, FX_BOOL & bExit, FX_DWORD nFlag) = 0;
@@ -54,8 +54,8 @@ public:
 
        virtual CPDF_Rect                               GetFocusRect() const;
 
-public:                
-       void                                                    SetAlignFormatH(PWL_EDIT_ALIGNFORMAT_H nFormat = PEAH_LEFT, FX_BOOL bPaint = TRUE);     //0:left 1:right 2:middle 
+public:
+       void                                                    SetAlignFormatH(PWL_EDIT_ALIGNFORMAT_H nFormat = PEAH_LEFT, FX_BOOL bPaint = TRUE);     //0:left 1:right 2:middle
        void                                                    SetAlignFormatV(PWL_EDIT_ALIGNFORMAT_V nFormat = PEAV_TOP, FX_BOOL bPaint = TRUE);      //0:top 1:bottom 2:center
 
        void                                                    SetCharArray(int32_t nCharArray);
@@ -82,18 +82,18 @@ public:
        void                                                    ReplaceSel(const FX_WCHAR* csText);
 
        CFX_ByteString                                  GetTextAppearanceStream(const CPDF_Point & ptOffset) const;
-       CFX_ByteString                                  GetCaretAppearanceStream(const CPDF_Point & ptOffset) const;    
+       CFX_ByteString                                  GetCaretAppearanceStream(const CPDF_Point & ptOffset) const;
        CFX_ByteString                                  GetSelectAppearanceStream(const CPDF_Point & ptOffset) const;
 
-       FX_BOOL                                                 IsTextFull() const;     
+       FX_BOOL                                                 IsTextFull() const;
 
        static FX_FLOAT                                 GetCharArrayAutoFontSize(CPDF_Font* pFont, const CPDF_Rect& rcPlate, int32_t nCharArray);
 
        void                                                    SetFillerNotify(IPWL_Filler_Notify* pNotify) {m_pFillerNotify = pNotify;}
 
-       void                                                    GeneratePageObjects(CPDF_PageObjects* pPageObjects, 
+       void                                                    GeneratePageObjects(CPDF_PageObjects* pPageObjects,
                                                                                const CPDF_Point& ptOffset, CFX_ArrayTemplate<CPDF_TextObject*>& ObjArray);
-       void                                                    GeneratePageObjects(CPDF_PageObjects* pPageObjects, 
+       void                                                    GeneratePageObjects(CPDF_PageObjects* pPageObjects,
                                                                                const CPDF_Point& ptOffset);
 
 protected:
@@ -110,7 +110,7 @@ protected:
        virtual void                                    OnInsertText(const CPVT_WordPlace& place, const CPVT_WordPlace& oldplace);
        virtual void                                    OnAddUndo(IFX_Edit_UndoItem* pUndoItem);
 
-private:       
+private:
        CPVT_WordRange                                  GetSelectWordRange() const;
        virtual void                                    ShowVScrollBar(FX_BOOL bShow);
        FX_BOOL                                                 IsVScrollBarVisible() const;
index bfa1868..9b088b1 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_EDITCTRL_H_
@@ -70,16 +70,16 @@ public:
 
        virtual FX_BOOL                                 OnKeyDown(FX_WORD nChar, FX_DWORD nFlag);
        virtual FX_BOOL                                 OnChar(FX_WORD nChar, FX_DWORD nFlag);
-       virtual FX_BOOL                                 OnLButtonDown(const CPDF_Point & point, FX_DWORD nFlag);        
-       virtual FX_BOOL                                 OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);  
+       virtual FX_BOOL                                 OnLButtonDown(const CPDF_Point & point, FX_DWORD nFlag);
+       virtual FX_BOOL                                 OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
        virtual FX_BOOL                                 OnMouseMove(const CPDF_Point & point, FX_DWORD nFlag);
        virtual void                                    OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0);
 
        virtual void                                    CreateChildWnd(const PWL_CREATEPARAM & cp);
-       virtual void                                    RePosChildWnd();        
+       virtual void                                    RePosChildWnd();
        virtual void                                    SetFontSize(FX_FLOAT fFontSize);
        virtual FX_FLOAT                                GetFontSize() const;
-       
+
 public:
        virtual void                                    SetText(const FX_WCHAR* csText);
 
@@ -105,11 +105,11 @@ public:
 
        void                                                    Paint();
 
-       void                                                    EnableRefresh(FX_BOOL bRefresh);        
+       void                                                    EnableRefresh(FX_BOOL bRefresh);
        CPDF_Point                                              GetScrollPos() const;
        void                                                    SetScrollPos(const CPDF_Point& point);
 
-       void                                                    SetEditNotify(IPWL_Edit_Notify* pNotify) {m_pEditNotify = pNotify;}     
+       void                                                    SetEditNotify(IPWL_Edit_Notify* pNotify) {m_pEditNotify = pNotify;}
 
        void                                                    SetCharSet(uint8_t nCharSet){m_nCharSet = nCharSet;}
        int32_t                                         GetCharSet() const;
@@ -142,15 +142,15 @@ protected:
 protected:
        void                                                    GetCaretInfo(CPDF_Point & ptHead, CPDF_Point & ptFoot) const;
        void                                                    SetCaret(FX_BOOL bVisible, const CPDF_Point & ptHead, const CPDF_Point & ptFoot);
-       
+
        void                                                    SetEditCaret(FX_BOOL bVisible);
 
 protected:
-       virtual void                                    IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 
-                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax, 
+       virtual void                                    IOnSetScrollInfoX(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
+                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax,
                                                                                                FX_FLOAT fSmallStep, FX_FLOAT fBigStep){}
-       virtual void                                    IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax, 
-                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax, 
+       virtual void                                    IOnSetScrollInfoY(FX_FLOAT fPlateMin, FX_FLOAT fPlateMax,
+                                                                                               FX_FLOAT fContentMin, FX_FLOAT fContentMax,
                                                                                                FX_FLOAT fSmallStep, FX_FLOAT fBigStep);
        virtual void                                    IOnSetScrollPosX(FX_FLOAT fx){}
        virtual void                                    IOnSetScrollPosY(FX_FLOAT fy);
@@ -166,7 +166,7 @@ protected:
        IFX_Edit*                                               m_pEdit;
        CPWL_Caret*                                             m_pEditCaret;
        FX_BOOL                                                 m_bMouseDown;
-       IPWL_Edit_Notify*                               m_pEditNotify;  
+       IPWL_Edit_Notify*                               m_pEditNotify;
 
 private:
        int32_t                                         m_nCharSet;
index f83575b..d32cc93 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_FONTMAP_H_
@@ -85,9 +85,9 @@ public:
        static CFX_ByteString                                           GetDefaultFontByCharset(int32_t nCharset);
 
        CPDF_Font*                                                                      AddFontToDocument(CPDF_Document* pDoc, CFX_ByteString& sFontName, uint8_t nCharset);
-       static FX_BOOL                                                          IsStandardFont(const CFX_ByteString& sFontName);                                                        
+       static FX_BOOL                                                          IsStandardFont(const CFX_ByteString& sFontName);
        CPDF_Font*                                                                      AddStandardFont(CPDF_Document* pDoc, CFX_ByteString& sFontName);
-       CPDF_Font*                                                                      AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName, 
+       CPDF_Font*                                                                      AddSystemFont(CPDF_Document* pDoc, CFX_ByteString& sFontName,
                                                                                                        uint8_t nCharset);
 
 protected:
index 1a2adf6..44a5c0c 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICON_H_
@@ -23,7 +23,7 @@ public:
        virtual CPDF_Stream *                   GetPDFStream();
 
 public:
-       void                                                    SetPDFStream(CPDF_Stream* pStream);     
+       void                                                    SetPDFStream(CPDF_Stream* pStream);
        void                                                    GetImageSize(FX_FLOAT & fWidth,FX_FLOAT & fHeight);
        CPDF_Matrix                                             GetImageMatrix();
        CFX_ByteString                                  GetImageAlias();
@@ -34,7 +34,7 @@ protected:
        CFX_ByteString                                  m_sImageAlias;
 };
 
-class PWL_CLASS CPWL_Icon : public CPWL_Image 
+class PWL_CLASS CPWL_Icon : public CPWL_Image
 {
 public:
        CPWL_Icon();
index 74438c2..2f6b323 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_ICONLIST_H_
@@ -86,7 +86,7 @@ private:
        CPWL_IconList_Item*                                     GetListItem(int32_t nItemIndex) const;
        void                                                            SelectItem(int32_t nItemIndex, FX_BOOL bSelect);
        int32_t                                                 FindItemIndex(const CPDF_Point& point);
-       
+
        FX_BOOL                                                         m_nSelectIndex;
        IPWL_IconList_Notify*                           m_pNotify;
        FX_BOOL                                                         m_bEnableNotify;
@@ -117,7 +117,7 @@ protected:
        virtual void                                            OnCreated();
        virtual void                                            RePosChildWnd();
        virtual void                                            CreateChildWnd(const PWL_CREATEPARAM & cp);
-       
+
        virtual void                                            OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0);
 
 private:
index 6d9754d..7f28189 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_LABEL_H_
index 56a1fbf..c107a0c 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_LISTCTRL_H_
index ee6ec6f..a60eba3 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_NOTE_H_
@@ -70,7 +70,7 @@ public:
        virtual IPWL_NoteItem*                          GetSubItems(int32_t index) const = 0;
        virtual void                                            DeleteSubItem(IPWL_NoteItem* pNoteItem) = 0;
        virtual void                                            SetFocus() = 0;
-       
+
        virtual IPWL_NoteItem*                          GetParentItem() const = 0;
        virtual void*                                           GetPrivateData() const = 0;
        virtual CFX_WideString                          GetAuthorName() const = 0;
@@ -151,7 +151,7 @@ protected:
        virtual void                                            OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0);
        virtual void                                            RePosChildWnd();
        virtual void                                            OnSetFocus();
-       virtual void                                            OnKillFocus();  
+       virtual void                                            OnKillFocus();
 
 private:
        FX_BOOL                                                         m_bEnableNotify;
@@ -213,7 +213,7 @@ private:
        CPWL_Note_Edit*                                         m_pEdit;
 };
 
-class PWL_CLASS CPWL_NoteItem : public CPWL_Wnd, public IPWL_NoteItem 
+class PWL_CLASS CPWL_NoteItem : public CPWL_Wnd, public IPWL_NoteItem
 {
 public:
        CPWL_NoteItem();
@@ -269,7 +269,7 @@ public:
 
        void                                                            SetNoteFocus(FX_BOOL bLast);
        void                                                            OnContentsValidate();
-       
+
        void                                                            OnCreateNoteItem();
 
 protected:
@@ -320,7 +320,7 @@ public:
        CFX_WideString                                          GetReplyString() const;
        void                                                            SetReplyString(const CFX_WideString& string);
 
-       //0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close / 5-options 
+       //0-normal / 1-caption / 2-leftbottom corner / 3-rightbottom corner / 4-close / 5-options
        int32_t                                                 NoteHitTest(const CPDF_Point& point) const;
        CPDF_Rect                                                       GetCaptionRect() const {return m_rcCaption;}
        IPopup_Note*                                            GetPopupNote() const {return m_pPopupNote;}
@@ -346,7 +346,7 @@ private:
        CPWL_Note_CloseBox*                                     m_pCloseBox;
        CPWL_Note_LBBox*                                        m_pLBBox;
        CPWL_Note_RBBox*                                        m_pRBBox;
-       CPWL_ScrollBar*                                         m_pContentsBar; 
+       CPWL_ScrollBar*                                         m_pContentsBar;
        CPWL_Note_Options*                                      m_pOptions;
        IPWL_NoteNotify*                                        m_pNoteNotify;
        FX_BOOL                                                         m_bResizing;
index bf92399..0390222 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SCROLLBAR_H_
@@ -19,8 +19,8 @@ public:
        {
        }
        FX_FLOAT                                        fContentMin;
-       FX_FLOAT                                        fContentMax;    
-       FX_FLOAT                                        fPlateWidth;    
+       FX_FLOAT                                        fContentMax;
+       FX_FLOAT                                        fPlateWidth;
        FX_FLOAT                                        fBigStep;
        FX_FLOAT                                        fSmallStep;
 };
@@ -38,7 +38,7 @@ enum PWL_SBBUTTON_TYPE
        PSBT_POS
 };
 
-class CPWL_SBButton : public CPWL_Wnd  
+class CPWL_SBButton : public CPWL_Wnd
 {
 public:
        CPWL_SBButton(PWL_SCROLLBAR_TYPE eScrollBarType,PWL_SBBUTTON_TYPE eButtonType);
@@ -97,7 +97,7 @@ public:
        FX_FLOAT                                        fSmallStep;
 };
 
-class CPWL_ScrollBar : public CPWL_Wnd  
+class CPWL_ScrollBar : public CPWL_Wnd
 {
 public:
        CPWL_ScrollBar(PWL_SCROLLBAR_TYPE sbType = SBT_HSCROLL);
@@ -115,13 +115,13 @@ public:
        virtual void                            OnNotify(CPWL_Wnd* pWnd, FX_DWORD msg, intptr_t wParam = 0, intptr_t lParam = 0);
 
        virtual void                            CreateChildWnd(const PWL_CREATEPARAM & cp);
-       
-       FX_FLOAT                                        GetScrollBarWidth() const;      
+
+       FX_FLOAT                                        GetScrollBarWidth() const;
        PWL_SCROLLBAR_TYPE                      GetScrollBarType() const {return m_sbType;};
 
        void                                            SetNotifyForever(FX_BOOL bForever) {m_bNotifyForever = bForever;}
 
-protected:                     
+protected:
        void                                            SetScrollRange(FX_FLOAT fMin,FX_FLOAT fMax,FX_FLOAT fClientWidth);
        void                                            SetScrollPos(FX_FLOAT fPos);
        void                                            MovePosButton(FX_BOOL bRefresh);
@@ -156,7 +156,7 @@ private:
        CPWL_SBButton*                          m_pMaxButton;
        CPWL_SBButton*                          m_pPosButton;
        PWL_SCROLL_PRIVATEDATA          m_sData;
-       FX_BOOL                                         m_bMouseDown;   
+       FX_BOOL                                         m_bMouseDown;
        FX_BOOL                                         m_bMinOrMax;
        FX_BOOL                                         m_bNotifyForever;
        FX_FLOAT                                        m_nOldPos;
index be5ec58..c945277 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SIGNATURE_H_
index 9b4ffd2..f6659df 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SPECIALBUTTON_H_
index 9f121e8..2da0f42 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_UTILS_H_
@@ -21,7 +21,7 @@ template<class T> T PWL_MAX (const T & i, const T & j) { return ((i > j) ? i : j
 #define PWL_PDF2WIN(color)                                     (uint8_t(color*255))
 #define PWL_WIN2PDF(color)                                     ((FX_FLOAT)((FX_FLOAT)color/255.0f))
 
-#define PWL_MAKEDWORD(low,high)                                ((FX_DWORD)((FX_WORD)(low) | (FX_DWORD)(((FX_WORD)(high))<<16))) 
+#define PWL_MAKEDWORD(low,high)                                ((FX_DWORD)((FX_WORD)(low) | (FX_DWORD)(((FX_WORD)(high))<<16)))
 #define PWL_GETLOWWORD(dword)                          ((FX_WORD)(dword))
 #define PWL_GETHIGHWORD(dword)                         ((FX_WORD)(dword>>16))
 
@@ -137,7 +137,7 @@ public:
                                                                                                                IFX_Edit_FontMap * pFontMap,
                                                                                                                CPDF_Stream * pIconStream,
                                                                                                                CPDF_IconFit & IconFit,
-                                                                                                               const CFX_WideString & sLabel,                                                                                                          
+                                                                                                               const CFX_WideString & sLabel,
                                                                                                                const CPWL_Color & crText,
                                                                                                                FX_FLOAT fFontSize,
                                                                                                                int32_t nLayOut);
@@ -148,7 +148,7 @@ public:
                                                                                                                int32_t nStyle,
                                                                                                                const CPWL_Color & crText);
 
-       static CFX_ByteString                                   GetEditAppStream(IFX_Edit* pEdit, const CPDF_Point & ptOffset, const CPVT_WordRange * pRange = NULL, 
+       static CFX_ByteString                                   GetEditAppStream(IFX_Edit* pEdit, const CPDF_Point & ptOffset, const CPVT_WordRange * pRange = NULL,
                                                                                                                FX_BOOL bContinuous = TRUE, FX_WORD SubWord = 0);
        static CFX_ByteString                                   GetEditSelAppStream(IFX_Edit* pEdit, const CPDF_Point & ptOffset,
                                                                                                                const CPVT_WordRange * pRange = NULL);
@@ -177,13 +177,13 @@ public:
        static void                                                             DrawShadow(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                                                                FX_BOOL bVertical, FX_BOOL bHorizontal, CPDF_Rect rect,
                                                                                                                int32_t nTransparancy, int32_t nStartGray, int32_t nEndGray);
-       static void                                                             DrawEditSpellCheck(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device, IFX_Edit* pEdit, 
-                                                                                                               const CPDF_Rect& rcClip, const CPDF_Point& ptOffset, const CPVT_WordRange* pRange, 
+       static void                                                             DrawEditSpellCheck(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device, IFX_Edit* pEdit,
+                                                                                                               const CPDF_Rect& rcClip, const CPDF_Point& ptOffset, const CPVT_WordRange* pRange,
                                                                                                                IPWL_SpellCheck* pSpellCheck);
 public:
        static void                                                             ConvertCMYK2RGB(FX_FLOAT dC,FX_FLOAT dM,FX_FLOAT dY,FX_FLOAT dK,FX_FLOAT &dR,FX_FLOAT &dG,FX_FLOAT &dB);
        static void                                                             ConvertRGB2CMYK(FX_FLOAT dR,FX_FLOAT dG,FX_FLOAT dB,FX_FLOAT &dC,FX_FLOAT &dM,FX_FLOAT &dY,FX_FLOAT &dK);
-       
+
        static void                                                             ConvertRGB2GRAY(FX_FLOAT dR,FX_FLOAT dG,FX_FLOAT dB,FX_FLOAT &dGray);
        static void                                                             ConvertGRAY2RGB(FX_FLOAT dGray,FX_FLOAT &dR,FX_FLOAT &dG,FX_FLOAT &dB);
 
@@ -193,10 +193,10 @@ public:
        static void                                                             PWLColorToARGB(const CPWL_Color& color, int32_t& alpha, FX_FLOAT& red, FX_FLOAT& green, FX_FLOAT& blue);
 
 public:
-       static CFX_ByteString                                   GetIconAppStream(int32_t nType, const CPDF_Rect& rect, const CPWL_Color& crFill, 
+       static CFX_ByteString                                   GetIconAppStream(int32_t nType, const CPDF_Rect& rect, const CPWL_Color& crFill,
                                                                                                const CPWL_Color& crStroke = PWL_DEFAULT_BLACKCOLOR);
        static void                                                             DrawIconAppStream(CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
-                                                                                               int32_t nType, const CPDF_Rect & rect, const CPWL_Color& crFill, 
+                                                                                               int32_t nType, const CPDF_Rect & rect, const CPWL_Color& crFill,
                                                                                                const CPWL_Color& crStroke, const int32_t nTransparancy);
 
 private:
index e74dc88..3ef4e67 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_WND_H_
@@ -24,7 +24,7 @@ class IPWL_SpellCheck;
 #ifdef FX_READER_DLL
        #ifdef PWL_EXPORT
                        #define PWL_CLASS               __declspec(dllexport)
-                       #define PWL_FUNCTION    PWL_CLASS       
+                       #define PWL_FUNCTION    PWL_CLASS
                #else
                        #define PWL_CLASS
                        #define PWL_FUNCTION
@@ -124,7 +124,7 @@ struct PWL_CLASS CPWL_Color
        CPWL_Color(int32_t r, int32_t g, int32_t b) :
                nColorType(COLORTYPE_RGB), fColor1(r/255.0f), fColor2(g/255.0f), fColor3(b/255.0f), fColor4(0)
        {}
-       
+
        void ConvertColorType(int32_t other_nColorType);
 
        /*
@@ -133,13 +133,13 @@ struct PWL_CLASS CPWL_Color
        COLORTYPE_CMYK
        COLORTYPE_GRAY
        */
-       int32_t                                 nColorType; 
+       int32_t                                 nColorType;
        FX_FLOAT                                        fColor1,fColor2,fColor3,fColor4;
 };
 
 inline FX_BOOL operator == (const CPWL_Color &c1, const CPWL_Color &c2)
 {
-       return c1.nColorType == c2.nColorType && 
+       return c1.nColorType == c2.nColorType &&
                c1.fColor1 - c2.fColor1 < 0.0001 && c1.fColor1 - c2.fColor1 > -0.0001 &&
                c1.fColor2 - c2.fColor2 < 0.0001 && c1.fColor2 - c2.fColor2 > -0.0001 &&
                c1.fColor3 - c2.fColor3 < 0.0001 && c1.fColor3 - c2.fColor3 > -0.0001 &&
@@ -174,7 +174,7 @@ class IPWL_SpellCheck
 public:
         virtual ~IPWL_SpellCheck() { }
        virtual FX_BOOL                                                 CheckWord(const FX_CHAR* sWord) = 0;
-       virtual void                                                    SuggestWords(const FX_CHAR* sWord, CFX_ByteStringArray & sSuggest) = 0; 
+       virtual void                                                    SuggestWords(const FX_CHAR* sWord, CFX_ByteStringArray & sSuggest) = 0;
 };
 
 class IPWL_Provider
@@ -224,7 +224,7 @@ public:
                sTextStrokeColor(),
                nTransparency(255),
                fFontSize(PWL_DEFAULT_FONTSIZE),
-               sDash(3,0,0),   
+               sDash(3,0,0),
                pAttachedData(NULL),
                pParentWnd(NULL),
                pMsgControl(NULL),
@@ -233,7 +233,7 @@ public:
        {
        }
 
-       CPDF_Rect                               rcRectWnd;                              //required      
+       CPDF_Rect                               rcRectWnd;                              //required
        IFX_SystemHandler*              pSystemHandler;                 //required
        IFX_Edit_FontMap*               pFontMap;                               //required for text window
        IPWL_Provider*                  pProvider;                              //required for self coordinate
@@ -268,7 +268,7 @@ public:
        static void                                             TimerProc(int32_t idEvent);
 
 private:
-       int32_t                                                 m_nTimerID;     
+       int32_t                                                 m_nTimerID;
        CPWL_TimerHandler*                                      m_pAttached;
        IFX_SystemHandler*                                      m_pSystemHandler;
 };
@@ -296,7 +296,7 @@ public:
        virtual ~CPWL_Wnd();
 
        void                                                    Create(const PWL_CREATEPARAM & cp);
-       virtual CFX_ByteString                  GetClassName() const;   
+       virtual CFX_ByteString                  GetClassName() const;
        void                                                    Destroy();
        void                                                    Move(const CPDF_Rect & rcNew,FX_BOOL bReset,FX_BOOL bRefresh);
        virtual void                                    InvalidateRect(CPDF_Rect* pRect = NULL);
@@ -341,13 +341,13 @@ public:
 
        virtual FX_BOOL                                 IsModified() const {return FALSE;}
 
-       virtual void                                    SetFontSize(FX_FLOAT fFontSize);        
+       virtual void                                    SetFontSize(FX_FLOAT fFontSize);
 
-       void                                                    SetBackgroundColor(const CPWL_Color & color);           
+       void                                                    SetBackgroundColor(const CPWL_Color & color);
        void                                                    SetBorderColor(const CPWL_Color & color);
        void                                                    SetBorderWidth(int32_t nBorderWidth);
        void                                                    SetClipRect(const CPDF_Rect & rect);
-       void                                                    SetBorderStyle(int32_t eBorderStyle);   
+       void                                                    SetBorderStyle(int32_t eBorderStyle);
        void                                                    SetBorderDash(const CPWL_Dash & sDash);
 
        CPDF_Rect                                               GetOriginWindowRect() const;
@@ -355,18 +355,18 @@ public:
        virtual CPDF_Rect                               GetClientRect() const;
        CPDF_Point                                              GetCenterPoint() const;
        CPDF_Rect                                               GetClientCenterSquare() const;
-       CPDF_Rect                                               GetWindowCenterSquare() const;          
-       int32_t                                         GetBorderWidth() const;         
-       FX_BOOL                                                 IsVisible() const {return m_bVisible;}  
+       CPDF_Rect                                               GetWindowCenterSquare() const;
+       int32_t                                         GetBorderWidth() const;
+       FX_BOOL                                                 IsVisible() const {return m_bVisible;}
        FX_BOOL                                                 HasFlag(FX_DWORD dwFlags) const;
        void                                                    AddFlag(FX_DWORD dwFlags);
        void                                                    RemoveFlag(FX_DWORD dwFlags);
-       CPDF_Rect                                               GetClipRect() const;            
-       CPWL_Wnd*                                               GetParentWindow() const;                
-       int32_t                                         GetBorderStyle() const; 
+       CPDF_Rect                                               GetClipRect() const;
+       CPWL_Wnd*                                               GetParentWindow() const;
+       int32_t                                         GetBorderStyle() const;
        CPWL_Dash                                               GetBorderDash() const;
        void*                                                   GetAttachedData() const;
-       
+
        FX_BOOL                                                 WndHitTest(const CPDF_Point & point) const;
        FX_BOOL                                                 ClientHitTest(const CPDF_Point & point) const;
        FX_BOOL                                                 IsCaptureMouse() const;
@@ -380,7 +380,7 @@ public:
        IPWL_Provider*                                  GetProvider() const;
        virtual IFX_SystemHandler*              GetSystemHandler() const;
        IPWL_FocusHandler*                              GetFocusHandler() const;
-       
+
        int32_t                                         GetTransparency();
        void                                                    SetTransparency(int32_t nTransparency);
 
@@ -395,15 +395,15 @@ public:
        virtual CPDF_Rect                               ParentToChild(const CPDF_Rect& rect) const;
 
        //those methods only implemented by listctrl item
-       virtual FX_FLOAT                                GetItemHeight(FX_FLOAT fLimitWidth) {return 0;} 
-       virtual FX_FLOAT                                GetItemLeftMargin() {return 0;} 
-       virtual FX_FLOAT                                GetItemRightMargin() {return 0;} 
+       virtual FX_FLOAT                                GetItemHeight(FX_FLOAT fLimitWidth) {return 0;}
+       virtual FX_FLOAT                                GetItemLeftMargin() {return 0;}
+       virtual FX_FLOAT                                GetItemRightMargin() {return 0;}
 
        void                                                    EnableWindow(FX_BOOL bEnable);
        FX_BOOL                                                 IsEnabled();
        virtual void                                    SetCursor();
 
-protected:     
+protected:
        virtual void                                    CreateChildWnd(const PWL_CREATEPARAM & cp);
        virtual void                                    RePosChildWnd();
        void                                                    GetAppearanceStream(CFX_ByteTextBuf & sAppStream);
@@ -424,20 +424,20 @@ protected:
        virtual void                                    OnDisabled();
 
        void                                                    SetNotifyFlag(FX_BOOL bNotifying = TRUE){m_bNotifying = bNotifying;};
+
        FX_BOOL                                                 IsValid() const;
-       PWL_CREATEPARAM                                 GetCreationParam() const;               
-       FX_BOOL                                                 IsNotifying() const {return m_bNotifying;}      
-       
+       PWL_CREATEPARAM                                 GetCreationParam() const;
+       FX_BOOL                                                 IsNotifying() const {return m_bNotifying;}
+
        void                                                    InvalidateRectMove(const CPDF_Rect & rcOld, const CPDF_Rect & rcNew);
 
        void                                                    PWLtoWnd(const CPDF_Point & point, int32_t& x, int32_t& y) const;
-       FX_RECT                                                 PWLtoWnd(const CPDF_Rect & rect) const; 
+       FX_RECT                                                 PWLtoWnd(const CPDF_Rect & rect) const;
        FX_HWND                                                 GetAttachedHWnd() const;
-       
+
        FX_BOOL                                                 IsWndCaptureMouse(const CPWL_Wnd * pWnd) const;
-       FX_BOOL                                                 IsWndCaptureKeyboard(const CPWL_Wnd * pWnd) const;      
-       const CPWL_Wnd*                                 GetRootWnd() const;     
+       FX_BOOL                                                 IsWndCaptureKeyboard(const CPWL_Wnd * pWnd) const;
+       const CPWL_Wnd*                                 GetRootWnd() const;
 
        FX_BOOL                                                 IsCTRLpressed(FX_DWORD nFlag) const;
        FX_BOOL                                                 IsSHIFTpressed(FX_DWORD nFlag) const;
@@ -449,28 +449,28 @@ private:
        void                                                    RemoveChild(CPWL_Wnd * pWnd);
 
        void                                                    CreateScrollBar(const PWL_CREATEPARAM & cp);
-       void                                                    CreateVScrollBar(const PWL_CREATEPARAM & cp);   
+       void                                                    CreateVScrollBar(const PWL_CREATEPARAM & cp);
 
-       void                                                    AjustStyle();   
+       void                                                    AjustStyle();
        void                                                    CreateMsgControl();
        void                                                    DestroyMsgControl();
-       
-       CPWL_MsgControl*                                GetMsgControl() const;  
-       
+
+       CPWL_MsgControl*                                GetMsgControl() const;
+
 protected:
        CFX_ArrayTemplate<CPWL_Wnd*>    m_aChildren;
 
 private:
        PWL_CREATEPARAM                                 m_sPrivateParam;
-       
+
        CPWL_ScrollBar*                                 m_pVScrollBar;
 
        CPDF_Rect                                               m_rcWindow;
        CPDF_Rect                                               m_rcClip;
 
-       FX_BOOL                                                 m_bCreated;                     
+       FX_BOOL                                                 m_bCreated;
        FX_BOOL                                                 m_bVisible;
-       FX_BOOL                                                 m_bNotifying;   
+       FX_BOOL                                                 m_bNotifying;
        FX_BOOL                                                 m_bEnabled;
 };
 
index ff1eebf..24095c8 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FormFiller.h"
@@ -22,7 +22,7 @@ CBA_FontMap::CBA_FontMap(CPDFSDK_Annot* pAnnot, IFX_SystemHandler* pSystemHandle
        m_pAnnotDict = pAnnot->GetPDFAnnot()->GetAnnotDict();
 }
 
-CBA_FontMap::CBA_FontMap(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict, 
+CBA_FontMap::CBA_FontMap(CPDF_Document* pDocument, CPDF_Dictionary* pAnnotDict,
                                                 IFX_SystemHandler* pSystemHandler) :
        CPWL_FontMap(pSystemHandler),
        m_pDocument(pDocument),
@@ -49,7 +49,7 @@ void CBA_FontMap::Initial(const FX_CHAR* fontname)
 
        if (!m_pDefaultFont)
        {
-               m_pDefaultFont = GetAnnotDefaultFont(m_sDefaultFontName);       
+               m_pDefaultFont = GetAnnotDefaultFont(m_sDefaultFontName);
                if (m_pDefaultFont)
                {
                        if (const CFX_SubstFont* pSubstFont = m_pDefaultFont->GetSubstFont())
@@ -118,7 +118,7 @@ CPDF_Document* CBA_FontMap::GetDocument()
        return m_pDocument;
 }
 
-CPDF_Font* CBA_FontMap::FindResFontSameCharset(CPDF_Dictionary* pResDict, CFX_ByteString& sFontAlias, 
+CPDF_Font* CBA_FontMap::FindResFontSameCharset(CPDF_Dictionary* pResDict, CFX_ByteString& sFontAlias,
                                                                                                        int32_t nCharset)
 {
        if (!pResDict) return NULL;
@@ -208,10 +208,10 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAl
                        pStreamDict->SetAt("Resources", pStreamResList);
                }
 
-               if (pStreamResList) 
+               if (pStreamResList)
                {
                        CPDF_Dictionary* pStreamResFontList = pStreamResList->GetDict("Font");
-                       if (!pStreamResFontList) 
+                       if (!pStreamResFontList)
                        {
                                pStreamResFontList = new CPDF_Dictionary;
                                int32_t objnum = m_pDocument->AddIndirectObject(pStreamResFontList);
@@ -237,7 +237,7 @@ CPDF_Font* CBA_FontMap::GetAnnotDefaultFont(CFX_ByteString &sAlias)
                if (CPDF_Dictionary * pRootDict = m_pDocument->GetRoot())
                        pAcroFormDict = pRootDict->GetDict("AcroForm");
        }
-       
+
        CFX_ByteString sDA;
        CPDF_Object* pObj;
        if ((pObj = FPDF_GetFieldAttr(m_pAnnotDict, "DA")))
@@ -251,8 +251,8 @@ CPDF_Font* CBA_FontMap::GetAnnotDefaultFont(CFX_ByteString &sAlias)
                        sDA = pObj ? pObj->GetString() : CFX_ByteString();
                }
        }
-       
-       CPDF_Dictionary * pFontDict = NULL;     
+
+       CPDF_Dictionary * pFontDict = NULL;
 
        if (!sDA.IsEmpty())
        {
@@ -273,7 +273,7 @@ CPDF_Font* CBA_FontMap::GetAnnotDefaultFont(CFX_ByteString &sAlias)
                                                        pFontDict = pResFontDict->GetDict(sAlias);
 
                if (bWidget)
-               {                       
+               {
                        if (!pFontDict)
                        {
                                if (pAcroFormDict)
index dad485c..55d2d45 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FormFiller.h"
@@ -27,7 +27,7 @@ CPWL_Wnd* CFFL_CheckBox::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageVie
 
        ASSERT(m_pWidget != NULL);
        pWnd->SetCheck(m_pWidget->IsChecked());
-       
+
        return pWnd;
 }
 
@@ -46,7 +46,7 @@ FX_BOOL       CFFL_CheckBox::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFla
 {
        switch (nChar)
        {
-       case FWL_VKEY_Return:   
+       case FWL_VKEY_Return:
        case FWL_VKEY_Space:
                {
                        CFFL_IFormFiller* pIFormFiller = m_pApp->GetIFormFiller();
@@ -115,9 +115,9 @@ void CFFL_CheckBox::SaveData(CPDFSDK_PageView* pPageView)
 
        if (CPWL_CheckBox* pWnd = (CPWL_CheckBox*)GetPDFWindow(pPageView, FALSE))
        {
-               
+
                FX_BOOL bNewChecked = pWnd->IsChecked();
-               
+
 
                if (bNewChecked)
                {
index e10c981..ed38144 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FormFiller.h"
@@ -37,9 +37,9 @@ PWL_CREATEPARAM CFFL_ComboBox::GetCreateParam()
        ASSERT(m_pWidget != NULL);
 
        int nFlags = m_pWidget->GetFieldFlags();
-       
+
        if (nFlags & FIELDFLAG_EDIT)
-       {               
+       {
                cp.dwFlags |= PCBS_ALLOWCUSTOMTEXT;
        }
 
@@ -111,7 +111,7 @@ FX_BOOL     CFFL_ComboBox::IsDataChanged(CPDFSDK_PageView* pPageView)
                        return nCurSel != m_pWidget->GetSelectedIndex(0);
                }
        }
-       
+
        return FALSE;
 }
 
@@ -143,7 +143,7 @@ void CFFL_ComboBox::SaveData(CPDFSDK_PageView* pPageView)
                        bSetValue = FALSE;
 
                CFX_WideString sOldValue;
-               
+
 
                if (bSetValue)
                {
@@ -161,7 +161,7 @@ void CFFL_ComboBox::SaveData(CPDFSDK_PageView* pPageView)
                SetChangeMark();
 
                m_pWidget->GetPDFPage();
-               
+
 
        }
 }
@@ -175,7 +175,7 @@ void CFFL_ComboBox::SaveData(CPDFSDK_PageView* pPageView)
                {
                        if (CPWL_Edit* pEdit = (CPWL_Edit*)*pComboBox)
                        {
-                               fa.bFieldFull = pEdit->IsTextFull();    
+                               fa.bFieldFull = pEdit->IsTextFull();
                                int nSelStart = 0;
                                int nSelEnd = 0;
                                pEdit->GetSel(nSelStart, nSelEnd);
@@ -213,7 +213,7 @@ void CFFL_ComboBox::SaveData(CPDFSDK_PageView* pPageView)
 
 
 
-void CFFL_ComboBox::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 
+void CFFL_ComboBox::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        const PDFSDK_FieldAction& fa)
 {
        switch (type)
@@ -233,7 +233,7 @@ void CFFL_ComboBox::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AAc
        }
 }
 
-FX_BOOL        CFFL_ComboBox::IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld, 
+FX_BOOL        CFFL_ComboBox::IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld,
                                                                        const PDFSDK_FieldAction& faNew)
 {
        switch (type)
@@ -287,11 +287,11 @@ CPWL_Wnd* CFFL_ComboBox::ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRe
 {
        if (bRestoreValue)
                SaveState(pPageView);
-       
+
        DestroyPDFWindow(pPageView);
-       
+
        CPWL_Wnd* pRet = NULL;
-       
+
        if (bRestoreValue)
        {
                RestoreState(pPageView);
@@ -299,18 +299,18 @@ CPWL_Wnd* CFFL_ComboBox::ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRe
        }
        else
                pRet = GetPDFWindow(pPageView, TRUE);
-       
+
        m_pWidget->UpdateField();
-       
+
        return pRet;
 }
 
 void CFFL_ComboBox::OnKeyStroke(FX_BOOL bKeyDown, FX_UINT nFlag)
 {
        ASSERT(m_pWidget != NULL);
-       
+
        int nFlags = m_pWidget->GetFieldFlags();
-       
+
        if (nFlags & FIELDFLAG_COMMITONSELCHANGE)
        {
                if (m_bValid)
@@ -399,14 +399,14 @@ void CFFL_ComboBox::OnAddUndo(CPWL_Edit* pEdit)
 CFX_WideString CFFL_ComboBox::GetSelectExportText()
 {
        CFX_WideString swRet;
-       
+
        int nExport = -1;
        CPDFSDK_PageView *pPageView = GetCurPageView();
        if (CPWL_ComboBox * pComboBox = (CPWL_ComboBox*)GetPDFWindow(pPageView, FALSE))
        {
                nExport = pComboBox->GetSelect();
        }
-       
+
        if (nExport >= 0)
        {
                if (CPDF_FormField * pFormField = m_pWidget->GetFormField())
@@ -416,6 +416,6 @@ CFX_WideString CFFL_ComboBox::GetSelectExportText()
                                swRet = pFormField->GetOptionLabel(nExport);
                }
        }
-       
+
        return swRet;
 }
index d9a9848..7f5ee2f 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 
@@ -22,7 +22,7 @@ CFFL_FormFiller::CFFL_FormFiller(CPDFDoc_Environment* pApp, CPDFSDK_Annot* pAnno
        m_pAnnot(pAnnot),
        m_bValid(FALSE),
        m_ptOldPos(0,0)
-{ 
+{
        m_pWidget = (CPDFSDK_Widget*) pAnnot;
 }
 
@@ -89,7 +89,7 @@ FX_RECT CFFL_FormFiller::GetViewBBox(CPDFSDK_PageView *pPageView, CPDFSDK_Annot*
        return rect.GetOutterRect();
 }
 
-void CFFL_FormFiller::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+void CFFL_FormFiller::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                /*const CRect& rcWindow,*/ FX_DWORD dwFlags)
 {
@@ -109,14 +109,14 @@ void CFFL_FormFiller::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_A
        }
 }
 
-void CFFL_FormFiller::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+void CFFL_FormFiller::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                /*const CRect& rcWindow,*/ FX_DWORD dwFlags)
 {
        ASSERT(pAnnot != NULL);
-       
+
        CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
-       
+
        pWidget->DrawAppearance(pDevice, pUser2Device, CPDF_Annot::Normal, NULL);
 }
 
@@ -146,7 +146,7 @@ void CFFL_FormFiller::OnMouseExit(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pA
 FX_BOOL CFFL_FormFiller::OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, TRUE))
-       {               
+       {
                m_bValid = TRUE;
                FX_RECT rect = GetViewBBox(pPageView,pAnnot);
                InvalidateRect(rect.left, rect.top, rect.right, rect.bottom);
@@ -163,7 +163,7 @@ FX_BOOL CFFL_FormFiller::OnLButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Anno
 FX_BOOL        CFFL_FormFiller::OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-       {       
+       {
                FX_RECT rcFFL = GetViewBBox(pPageView, pAnnot);
                InvalidateRect(rcFFL.left, rcFFL.top, rcFFL.right, rcFFL.bottom);
                pWnd->OnLButtonUp(WndtoPWL(pPageView, point),nFlags);
@@ -176,7 +176,7 @@ FX_BOOL     CFFL_FormFiller::OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot*
 FX_BOOL        CFFL_FormFiller::OnLButtonDblClk(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-       {                               
+       {
                pWnd->OnLButtonDblClk(WndtoPWL(pPageView, point),nFlags);
                return TRUE;
        }
@@ -192,7 +192,7 @@ FX_BOOL CFFL_FormFiller::OnMouseMove(CPDFSDK_PageView *pPageView, CPDFSDK_Annot*
        }
 
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-       {                               
+       {
                pWnd->OnMouseMove(WndtoPWL(pPageView, point),nFlags);
                return TRUE;
        }
@@ -205,7 +205,7 @@ FX_BOOL CFFL_FormFiller::OnMouseWheel(CPDFSDK_PageView *pPageView, CPDFSDK_Annot
        if (!IsValid()) return FALSE;
 
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, TRUE))
-       {                               
+       {
                return pWnd->OnMouseWheel(zDelta, WndtoPWL(pPageView, point),nFlags);
        }
 
@@ -215,7 +215,7 @@ FX_BOOL CFFL_FormFiller::OnMouseWheel(CPDFSDK_PageView *pPageView, CPDFSDK_Annot
 FX_BOOL CFFL_FormFiller::OnRButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, TRUE))
-       {                               
+       {
                pWnd->OnRButtonDown(WndtoPWL(pPageView, point),nFlags);
                return TRUE;
        }
@@ -226,7 +226,7 @@ FX_BOOL CFFL_FormFiller::OnRButtonDown(CPDFSDK_PageView *pPageView, CPDFSDK_Anno
 FX_BOOL        CFFL_FormFiller::OnRButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-       {                               
+       {
                pWnd->OnRButtonUp(WndtoPWL(pPageView, point),nFlags);
                return TRUE;
        }
@@ -237,7 +237,7 @@ FX_BOOL     CFFL_FormFiller::OnRButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot*
 FX_BOOL        CFFL_FormFiller::OnRButtonDblClk(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAnnot, FX_UINT nFlags, const CPDF_Point& point)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-       {                               
+       {
                pWnd->OnRButtonDblClk(WndtoPWL(pPageView, point),nFlags);
                return TRUE;
        }
@@ -253,7 +253,7 @@ FX_BOOL CFFL_FormFiller::OnKeyDown(CPDFSDK_Annot* pAnnot, FX_UINT nKeyCode, FX_U
                ASSERT(pPageView != NULL);
 
                if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-               {                               
+               {
                        return pWnd->OnKeyDown(nKeyCode,nFlags);
                }
        }
@@ -269,7 +269,7 @@ FX_BOOL     CFFL_FormFiller::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nF
                ASSERT(pPageView != NULL);
 
                if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-               {                               
+               {
                        return pWnd->OnChar(nChar,nFlags);
                }
        }
@@ -296,23 +296,23 @@ FX_BOOL   CFFL_FormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag)
        CPDFSDK_PageView* pPageView = pDoc->GetPageView(pPage);
        ASSERT(pPageView != NULL);
 
-       
+
 
        CPWL_Wnd * pWnd = NULL;
        if ( (pWnd = GetPDFWindow(pPageView, TRUE)))
-       {                               
+       {
                pWnd->SetFocus();
        }
 
        m_bValid = TRUE;
-       
-       
-       
+
+
+
 
        m_bValid = TRUE;
        FX_RECT rcRect = GetViewBBox(pPageView,pAnnot);
        InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom);
-       
+
        return TRUE;
 }
 
@@ -326,10 +326,10 @@ FX_BOOL   CFFL_FormFiller::OnKillFocus(CPDFSDK_Annot* pAnnot, FX_UINT nFlag)
                CommitData(pPageView, nFlag);
 
                if (CPWL_Wnd* pWnd = GetPDFWindow(pPageView, FALSE))
-               {                               
+               {
                        pWnd->KillFocus();
                }
-               
+
                switch (m_pWidget->GetFieldType())
                {
                case FIELDTYPE_PUSHBUTTON:
@@ -357,10 +357,10 @@ PWL_CREATEPARAM   CFFL_FormFiller::GetCreateParam()
 
        PWL_CREATEPARAM cp;
 
-       cp.pParentWnd = NULL;   
+       cp.pParentWnd = NULL;
        cp.pProvider = this;
        cp.rcRectWnd = GetPDFWindowRect();
-       
+
        FX_DWORD dwCreateFlags = PWS_BORDER | PWS_BACKGROUND | PWS_VISIBLE;
 
        ASSERT(m_pWidget != NULL);
@@ -369,7 +369,7 @@ PWL_CREATEPARAM     CFFL_FormFiller::GetCreateParam()
        FX_DWORD dwFieldFlag = m_pWidget->GetFieldFlags();
 
        if (dwFieldFlag & FIELDFLAG_READONLY)
-       {               
+       {
                dwCreateFlags |= PWS_READONLY;
        }
 
@@ -393,7 +393,7 @@ PWL_CREATEPARAM     CFFL_FormFiller::GetCreateParam()
 
        cp.fFontSize = m_pWidget->GetFontSize();
        cp.dwBorderWidth = m_pWidget->GetBorderWidth();
-       
+
        int nBorderStyle = m_pWidget->GetBorderStyle();
 
        switch (nBorderStyle)
@@ -403,7 +403,7 @@ PWL_CREATEPARAM     CFFL_FormFiller::GetCreateParam()
                break;
        case BBS_DASH:
                cp.nBorderStyle = PBS_DASH;
-               cp.sDash = CPWL_Dash(3,3,0);                    
+               cp.sDash = CPWL_Dash(3,3,0);
                break;
        case BBS_BEVELED:
                cp.nBorderStyle = PBS_BEVELED;
@@ -500,7 +500,7 @@ CPDF_Matrix CFFL_FormFiller::GetWindowMatrix(void* pAttachedData)
                        pPrivateData->pPageView->GetCurrentMatrix(mtPageView);
                        CPDF_Matrix mt = GetCurMatrix();
                        mt.Concat(mtPageView);
-                       
+
                        return mt;
                }
        }
@@ -520,7 +520,7 @@ CPDF_Matrix CFFL_FormFiller::GetCurMatrix()
        switch (m_pWidget->GetRotate())
        {
        default:
-       case 0:         
+       case 0:
                mt = CPDF_Matrix(1,0,0,1,0,0);
                break;
        case 90:
@@ -578,7 +578,7 @@ CPDFSDK_PageView* CFFL_FormFiller::GetCurPageView()
 CPDF_Rect CFFL_FormFiller::GetFocusBox(CPDFSDK_PageView* pPageView)
 {
        if (CPWL_Wnd * pWnd = GetPDFWindow(pPageView, FALSE))
-       {                       
+       {
                CPDF_Rect rcFocus =  FFLtoWnd(pPageView, PWLtoFFL(pWnd->GetFocusRect()));
                ASSERT(pPageView);
                CPDF_Rect rcPage = pPageView->GetPDFPage()->GetPageBBox();
@@ -594,7 +594,7 @@ CPDF_Rect CFFL_FormFiller::FFLtoPWL(const CPDF_Rect& rect)
 {
        CPDF_Matrix mt;
        mt.SetReverse(GetCurMatrix());
-       
+
        CPDF_Rect temp = rect;
        mt.TransformRect(temp);
 
@@ -604,7 +604,7 @@ CPDF_Rect CFFL_FormFiller::FFLtoPWL(const CPDF_Rect& rect)
 CPDF_Rect CFFL_FormFiller::PWLtoFFL(const CPDF_Rect& rect)
 {
        CPDF_Matrix mt = GetCurMatrix();
-       
+
        CPDF_Rect temp = rect;
        mt.TransformRect(temp);
 
@@ -635,10 +635,10 @@ CPDF_Point CFFL_FormFiller::PWLtoFFL(const CPDF_Point & point)
 CPDF_Point CFFL_FormFiller::WndtoPWL(CPDFSDK_PageView* pPageView, const CPDF_Point& pt)
 {
 //     ASSERT(pPageView != NULL);
-// 
+//
 //     CPDF_Point point(0.0f, 0.0f);
 //     pPageView->WindowToDoc(pt.x, pt.y, point.x, point.y);
-// 
+//
        return FFLtoPWL(pt);
 //     return CPDF_Point(0, 0);
 }
@@ -646,10 +646,10 @@ CPDF_Point CFFL_FormFiller::WndtoPWL(CPDFSDK_PageView* pPageView, const CPDF_Poi
 CPDF_Rect CFFL_FormFiller::FFLtoWnd(CPDFSDK_PageView* pPageView, const CPDF_Rect & rect)
 {
 //     FX_RECT rcRet(0,0,0,0);
-// 
-//     ASSERT(pPageView != NULL);      
+//
+//     ASSERT(pPageView != NULL);
 //     pPageView->DocToWindow(rect, rcRet);
-//     
+//
        return rect;
 
 }
@@ -723,12 +723,12 @@ void CFFL_FormFiller::GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::A
        fa.sValue = m_pWidget->GetValue();
 }
 
-void CFFL_FormFiller::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 
+void CFFL_FormFiller::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                        const PDFSDK_FieldAction& fa)
 {
 }
 
-FX_BOOL        CFFL_FormFiller::IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld, 
+FX_BOOL        CFFL_FormFiller::IsActionDataChanged(CPDF_AAction::AActionType type, const PDFSDK_FieldAction& faOld,
                                                                        const PDFSDK_FieldAction& faNew)
 {
        return FALSE;
@@ -744,7 +744,7 @@ void CFFL_FormFiller::RestoreState(CPDFSDK_PageView* pPageView)
 
 CPWL_Wnd*  CFFL_FormFiller::ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRestoreValue)
 {
-       return GetPDFWindow(pPageView, FALSE); 
+       return GetPDFWindow(pPageView, FALSE);
 }
 
 void CFFL_FormFiller::TimerProc()
@@ -765,7 +765,7 @@ void CFFL_FormFiller::OnKeyStroke(FX_BOOL bKeyDown)
 void CFFL_FormFiller::EscapeFiller(CPDFSDK_PageView* pPageView, FX_BOOL bDestroyPDFWindow)
 {
        m_bValid = FALSE;
-       
+
        FX_RECT rcRect = GetViewBBox(pPageView, m_pWidget);
        InvalidateRect(rcRect.left, rcRect.top, rcRect.right, rcRect.bottom);
 
@@ -857,7 +857,7 @@ FX_BOOL     CFFL_Button::OnLButtonUp(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAn
 
        m_bMouseDown = FALSE;
        m_pWidget->GetPDFPage();
-       
+
 
        FX_RECT rect = GetViewBBox(pPageView, pAnnot);
        InvalidateRect(rect.left, rect.top, rect.right, rect.bottom);
@@ -871,7 +871,7 @@ FX_BOOL     CFFL_Button::OnMouseMove(CPDFSDK_PageView *pPageView, CPDFSDK_Annot* pAn
        return TRUE;
 }
 
-void CFFL_Button::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+void CFFL_Button::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                        CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                        /*const CRect& rcWindow,*/ FX_DWORD dwFlags)
 {
@@ -911,7 +911,7 @@ void CFFL_Button::OnDraw(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot
 }
 
 
-void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+void CFFL_Button::OnDrawDeactive(CPDFSDK_PageView *pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                                 CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                                 /*const CRect& rcWindow, */FX_DWORD dwFlags)
 {
index 0066b7e..9969c18 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FFL_FormFiller.h"
@@ -20,7 +20,7 @@
 
 /* ----------------------------- CFFL_IFormFiller ----------------------------- */
 
-CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp) : 
+CFFL_IFormFiller::CFFL_IFormFiller(CPDFDoc_Environment* pApp) :
        m_pApp(pApp),
        m_bNotifying(FALSE)
 {
@@ -73,7 +73,7 @@ FX_RECT CFFL_IFormFiller::GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot
        }
 }
 
-void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot, 
+void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, /*HDC hDC,*/ CPDFSDK_Annot* pAnnot,
                                                CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                /*const CRect& rcWindow,*/ FX_DWORD dwFlags)
 {
@@ -87,9 +87,9 @@ void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, /*HDC hDC,*/ CPDFSDK_
                        if (pFormFiller->IsValid())
                        {
                                pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device, dwFlags);
-                               
+
                                pAnnot->GetPDFPage();
-                               
+
 
                                CPDFSDK_Document* pDocument = m_pApp->GetCurrentDoc();
                                ASSERT(pDocument != NULL);
@@ -100,23 +100,23 @@ void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, /*HDC hDC,*/ CPDFSDK_
                                        if (!rcFocus.IsEmpty())
                                        {
                                                CFX_PathData path;
-                                               
+
                                                path.SetPointCount(5);
                                                path.SetPoint(0, rcFocus.left,  rcFocus.top, FXPT_MOVETO);
                                                path.SetPoint(1, rcFocus.left,  rcFocus.bottom, FXPT_LINETO);
                                                path.SetPoint(2, rcFocus.right,  rcFocus.bottom, FXPT_LINETO);
                                                path.SetPoint(3, rcFocus.right,  rcFocus.top, FXPT_LINETO);
                                                path.SetPoint(4, rcFocus.left,  rcFocus.top, FXPT_LINETO);
-                                               
+
                                                CFX_GraphStateData gsd;
-                                               gsd.SetDashCount(1);                            
+                                               gsd.SetDashCount(1);
                                                gsd.m_DashArray[0] = 1.0f;
-                                               gsd.m_DashPhase = 0;    
-                                               
+                                               gsd.m_DashPhase = 0;
+
                                                gsd.m_LineWidth = 1.0f;
                                                pDevice->DrawPath(&path, pUser2Device, &gsd, 0, ArgbEncode(255,0,0,0), FXFILL_ALTERNATE);
 
-                                       //      ::DrawFocusRect(hDC, &rcFocus); 
+                                       //      ::DrawFocusRect(hDC, &rcFocus);
                                        }
                                }
 
@@ -133,7 +133,7 @@ void CFFL_IFormFiller::OnDraw(CPDFSDK_PageView* pPageView, /*HDC hDC,*/ CPDFSDK_
                {
                        pWidget->DrawShadow(pDevice, pPageView);
                }
-       
+
        }
 }
 
@@ -167,30 +167,30 @@ void CFFL_IFormFiller::OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot*
 {
        ASSERT(pAnnot != NULL);
        ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
-       
+
        if (!m_bNotifying)
        {
                CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
                if (pWidget->GetAAction(CPDF_AAction::CursorEnter))
                {
                        m_bNotifying = TRUE;
-                       
+
                        int nValueAge = pWidget->GetValueAge();
 
                        pWidget->ClearAppModified();
-                       
+
                        ASSERT(pPageView != NULL);
-                       
-                       
-                       
+
+
+
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
                        pWidget->OnAAction(CPDF_AAction::CursorEnter, fa, pPageView );
                        m_bNotifying = FALSE;
-                       
+
                        //if ( !IsValidAnnot(pPageView, pAnnot) ) return;
-                       
+
                        if (pWidget->IsAppModified())
                        {
                                if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE))
@@ -200,7 +200,7 @@ void CFFL_IFormFiller::OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot*
                        }
                }
        }
-       
+
        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))
        {
                pFormFiller->OnMouseEnter(pPageView, pAnnot);
@@ -211,7 +211,7 @@ void CFFL_IFormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* p
 {
        ASSERT(pAnnot != NULL);
        ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
-       
+
        if (!m_bNotifying)
        {
                CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
@@ -221,20 +221,20 @@ void CFFL_IFormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* p
                        pWidget->GetAppearanceAge();
                        int nValueAge = pWidget->GetValueAge();
                        pWidget->ClearAppModified();
-                       
+
                        ASSERT(pPageView != NULL);
-                       
-                       
-                       
+
+
+
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
-                       
+
                        pWidget->OnAAction(CPDF_AAction::CursorExit, fa, pPageView);
                        m_bNotifying = FALSE;
-                       
+
                        //if (!IsValidAnnot(pPageView, pAnnot)) return;
-                       
+
                        if (pWidget->IsAppModified())
                        {
                                if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE))
@@ -244,7 +244,7 @@ void CFFL_IFormFiller::OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* p
                        }
                }
        }
-       
+
        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
        {
                pFormFiller->OnMouseExit(pPageView, pAnnot);
@@ -255,7 +255,7 @@ FX_BOOL     CFFL_IFormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, CPDFSDK_Ann
 {
        ASSERT(pAnnot != NULL);
        ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
-       
+
        if (!m_bNotifying)
        {
                CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
@@ -265,19 +265,19 @@ FX_BOOL   CFFL_IFormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, CPDFSDK_Ann
                        pWidget->GetAppearanceAge();
                        int nValueAge = pWidget->GetValueAge();
                        pWidget->ClearAppModified();
-                       
+
                        ASSERT(pPageView != NULL);
-                       
-                       
-                       
+
+
+
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlags);
                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlags);
                        pWidget->OnAAction(CPDF_AAction::ButtonDown, fa, pPageView);
                        m_bNotifying = FALSE;
-                       
+
                        if (!IsValidAnnot(pPageView, pAnnot)) return TRUE;
-                       
+
                        if (pWidget->IsAppModified())
                        {
                                if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE))
@@ -287,12 +287,12 @@ FX_BOOL   CFFL_IFormFiller::OnLButtonDown(CPDFSDK_PageView* pPageView, CPDFSDK_Ann
                        }
                }
        }
-       
+
        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
        {
                return pFormFiller->OnLButtonDown(pPageView, pAnnot, nFlags, point);
        }
-       
+
        return FALSE;
 }
 
@@ -300,13 +300,13 @@ FX_BOOL   CFFL_IFormFiller::OnLButtonUp(CPDFSDK_PageView* pPageView, CPDFSDK_Annot
 {
        ASSERT(pAnnot != NULL);
        ASSERT(pAnnot->GetPDFAnnot()->GetSubType() == "Widget");
-       
+
        CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
        //      CReader_Page* pPage = pAnnot->GetPage();
        //      ASSERT(pPage != NULL);
        CPDFSDK_Document* pDocument = m_pApp->GetCurrentDoc();
-       ASSERT(pDocument != NULL);              
-       
+       ASSERT(pDocument != NULL);
+
        switch (pWidget->GetFieldType())
        {
        case FIELDTYPE_PUSHBUTTON:
@@ -321,9 +321,9 @@ FX_BOOL     CFFL_IFormFiller::OnLButtonUp(CPDFSDK_PageView* pPageView, CPDFSDK_Annot
                pDocument->SetFocusAnnot(pAnnot);
                break;
        }
-       
+
        FX_BOOL bRet = FALSE;
-       
+
        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
        {
                bRet = pFormFiller->OnLButtonUp(pPageView, pAnnot, nFlags, point);
@@ -342,7 +342,7 @@ FX_BOOL     CFFL_IFormFiller::OnLButtonUp(CPDFSDK_PageView* pPageView, CPDFSDK_Annot
 void CFFL_IFormFiller::OnButtonUp(CPDFSDK_Widget* pWidget, CPDFSDK_PageView* pPageView, FX_BOOL& bReset, FX_BOOL& bExit,FX_UINT nFlag)
 {
        ASSERT(pWidget != NULL);
-       
+
        if (!m_bNotifying)
        {
                if (pWidget->GetAAction(CPDF_AAction::ButtonUp))
@@ -350,33 +350,33 @@ void CFFL_IFormFiller::OnButtonUp(CPDFSDK_Widget* pWidget, CPDFSDK_PageView* pPa
                        m_bNotifying = TRUE;
                        int nAge = pWidget->GetAppearanceAge();
                        int nValueAge = pWidget->GetValueAge();
-                       
+
                        ASSERT(pPageView != NULL);
 //                     CReader_DocView* pDocView = pPageView->GetDocView();
 //                     ASSERT(pDocView != NULL);
-                       
-                       
-                       
+
+
+
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
 
                        pWidget->OnAAction(CPDF_AAction::ButtonUp, fa, pPageView);
                        m_bNotifying = FALSE;
-                       
+
                        if (!IsValidAnnot(pPageView, pWidget))
                        {
                                bExit = TRUE;
                                return;
                        }
-                       
+
                        if (nAge != pWidget->GetAppearanceAge())
                        {
                                if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE))
                                {
                                        pFormFiller->ResetPDFWindow(pPageView, nValueAge == pWidget->GetValueAge());
                                }
-                               
+
                                bReset = TRUE;
                        }
                }
@@ -469,7 +469,7 @@ FX_BOOL     CFFL_IFormFiller::OnKeyDown(CPDFSDK_Annot* pAnnot, FX_UINT nKeyCode, FX_
 
        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, FALSE))
        {
-               return pFormFiller->OnKeyDown(pAnnot, nKeyCode, nFlags);        
+               return pFormFiller->OnKeyDown(pAnnot, nKeyCode, nFlags);
        }
 
        return FALSE;
@@ -526,25 +526,25 @@ FX_BOOL CFFL_IFormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot,FX_UINT nFlag)
                        pWidget->GetAppearanceAge();
                        int nValueAge = pWidget->GetValueAge();
                        pWidget->ClearAppModified();
+
+
                        CPDFSDK_PageView* pPageView = pAnnot->GetPageView();
                        ASSERT(pPageView != NULL);
-                       
+
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
 
+
                        CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, TRUE);
                        if(!pFormFiller) return FALSE;
                        pFormFiller->GetActionData(pPageView, CPDF_AAction::GetFocus, fa);
+
                        pWidget->OnAAction(CPDF_AAction::GetFocus, fa, pPageView);
                        m_bNotifying = FALSE;
-                       
+
  //                    if (!IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pAnnot)) return FALSE;
+
                        if (pWidget->IsAppModified())
                        {
                                if (CFFL_FormFiller* pFormFiller = GetFormFiller(pWidget, FALSE))
@@ -554,7 +554,7 @@ FX_BOOL CFFL_IFormFiller::OnSetFocus(CPDFSDK_Annot* pAnnot,FX_UINT nFlag)
                        }
                }
        }
-       
+
        if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, TRUE))
        {
                if (pFormFiller->OnSetFocus(pAnnot, nFlag))
@@ -584,19 +584,19 @@ FX_BOOL   CFFL_IFormFiller::OnKillFocus(CPDFSDK_Annot* pAnnot,FX_UINT nFlag)
                                {
                                        m_bNotifying = TRUE;
                                        pWidget->ClearAppModified();
+
                                        CPDFSDK_PageView* pPageView = pWidget->GetPageView();
                                        ASSERT(pPageView != NULL);
+
                                        PDFSDK_FieldAction fa;
                                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
                                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
+
                                        pFormFiller->GetActionData(pPageView, CPDF_AAction::LoseFocus, fa);
+
                                        pWidget->OnAAction(CPDF_AAction::LoseFocus, fa, pPageView);
                                        m_bNotifying = FALSE;
+
                                }
                        }
                }
@@ -631,16 +631,16 @@ FX_BOOL   CFFL_IFormFiller::IsFillingAllowed(CPDFSDK_Widget* pWidget)
        {
                CPDF_Page* pPage = pWidget->GetPDFPage();
                ASSERT(pPage != NULL);
+
                CPDF_Document* pDocument = pPage->m_pDocument;
                ASSERT(pDocument != NULL);
+
                FX_DWORD dwPermissions = pDocument->GetUserPermissions();
-               return (dwPermissions&FPDFPERM_FILL_FORM) || 
-                               (dwPermissions&FPDFPERM_ANNOT_FORM) || 
+               return (dwPermissions&FPDFPERM_FILL_FORM) ||
+                               (dwPermissions&FPDFPERM_ANNOT_FORM) ||
                        (dwPermissions&FPDFPERM_MODIFY);
        }
-       return TRUE;    
+       return TRUE;
 }
 
 CFFL_FormFiller* CFFL_IFormFiller::GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL bRegister)
@@ -656,7 +656,7 @@ CFFL_FormFiller* CFFL_IFormFiller::GetFormFiller(CPDFSDK_Annot* pAnnot, FX_BOOL
 
        if (bRegister)
        {
-               CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;              
+               CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot;
 
                int nFieldType = pWidget->GetFieldType();
                switch(nFieldType)
@@ -725,7 +725,7 @@ void CFFL_IFormFiller::QueryWherePopup(void* pPrivateData, FX_FLOAT fPopupMin,FX
 
        CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
 
-       
+
 
 
        CPDF_Rect rcPageView(0,0,0,0);
@@ -834,8 +834,8 @@ void CFFL_IFormFiller::OnSetWindowRect(void* pPrivateData, const CPDF_Rect & rcW
        }
 }
 
-void CFFL_IFormFiller::OnKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, int32_t nKeyCode, CFX_WideString& strChange, 
-                                                                  const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, 
+void CFFL_IFormFiller::OnKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, int32_t nKeyCode, CFX_WideString& strChange,
+                                                                  const CFX_WideString& strChangeEx, FX_BOOL bKeyDown,
                                                                   FX_BOOL & bRC, FX_BOOL & bExit)
 {
        ASSERT(pPrivateData != NULL);
@@ -861,8 +861,8 @@ void CFFL_IFormFiller::OnKeyStrokeCommit(CPDFSDK_Widget* pWidget, CPDFSDK_PageVi
                        ASSERT(pPageView != NULL);
 //                     CReader_DocView* pDocView = pPageView->GetDocView();
 //                     ASSERT(pDocView != NULL);
-                       
-               
+
+
 
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
@@ -901,8 +901,8 @@ void CFFL_IFormFiller::OnValidate(CPDFSDK_Widget* pWidget, CPDFSDK_PageView* pPa
                        ASSERT(pPageView != NULL);
 //                     CReader_DocView* pDocView = pPageView->GetDocView();
 //                     ASSERT(pDocView != NULL);
-                       
-                       
+
+
 
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
@@ -1041,17 +1041,17 @@ void CFFL_IFormFiller::DoPaste(CPDFSDK_Document* pDocument)
 
 }
 void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, int32_t nKeyCode,
-                                                                                         CFX_WideString & strChange, const CFX_WideString& strChangeEx, 
+                                                                                         CFX_WideString & strChange, const CFX_WideString& strChangeEx,
                                                                                          int nSelStart, int nSelEnd,
                                                                                FX_BOOL bKeyDown, FX_BOOL & bRC, FX_BOOL & bExit, FX_DWORD nFlag)
 {
        ASSERT(pPrivateData != NULL);
        CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
        ASSERT(pData->pWidget != NULL);
-       
+
        CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
        ASSERT(pFormFiller != NULL);
-       
+
        if (!m_bNotifying)
        {
                if (pData->pWidget->GetAAction(CPDF_AAction::KeyStroke))
@@ -1062,7 +1062,7 @@ void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData
 
                        ASSERT(pData->pPageView != NULL);
                        CPDFSDK_Document* pDocument  = pData->pPageView->GetSDKDocument();
-                       
+
                        PDFSDK_FieldAction fa;
                        fa.bModifier = m_pApp->FFI_IsCTRLKeyDown(nFlag);
                        fa.bShift = m_pApp->FFI_IsSHIFTKeyDown(nFlag);
@@ -1077,7 +1077,7 @@ void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData
 
                        pFormFiller->GetActionData(pData->pPageView, CPDF_AAction::KeyStroke, fa);
                        pFormFiller->SaveState(pData->pPageView);
-                       
+
                        if (pData->pWidget->OnAAction(CPDF_AAction::KeyStroke, fa, pData->pPageView))
                        {
                                if (!IsValidAnnot(pData->pPageView, pData->pWidget))
@@ -1086,14 +1086,14 @@ void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData
                                        m_bNotifying = FALSE;
                                        return;
                                }
-                               
+
                                if (nAge != pData->pWidget->GetAppearanceAge())
                                {
                                        CPWL_Wnd* pWnd = pFormFiller->ResetPDFWindow(pData->pPageView, nValueAge == pData->pWidget->GetValueAge());
                                        pData = (CFFL_PrivateData*)pWnd->GetAttachedData();
                                        bExit = TRUE;
                                }
-                               
+
                                if (fa.bRC)
                                {
                                        pFormFiller->SetActionData(pData->pPageView, CPDF_AAction::KeyStroke, fa);
@@ -1104,7 +1104,7 @@ void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData
                                        pFormFiller->RestoreState(pData->pPageView);
                                        bRC = FALSE;
                                }
-                               
+
                                if (pDocument->GetFocusAnnot() != pData->pWidget)
                                {
                                        pFormFiller->CommitData(pData->pPageView,nFlag);
@@ -1112,7 +1112,7 @@ void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData
                                }
                        }
                        else
-                       {                       
+                       {
                                if (!IsValidAnnot(pData->pPageView, pData->pWidget))
                                {
                                        bExit = TRUE;
@@ -1120,21 +1120,21 @@ void CFFL_IFormFiller::OnBeforeKeyStroke(FX_BOOL bEditOrList, void* pPrivateData
                                        return;
                                }
                        }
-                       
+
                        m_bNotifying = FALSE;
                }
        }
 }
 
-void   CFFL_IFormFiller::OnAfterKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, FX_BOOL & bExit,FX_DWORD nFlag) 
+void   CFFL_IFormFiller::OnAfterKeyStroke(FX_BOOL bEditOrList, void* pPrivateData, FX_BOOL & bExit,FX_DWORD nFlag)
 {
        ASSERT(pPrivateData != NULL);
        CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
        ASSERT(pData->pWidget != NULL);
-       
+
        CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
        ASSERT(pFormFiller != NULL);
-       
+
        if (!bEditOrList)
                pFormFiller->OnKeyStroke(bExit);
 }
index 6ee608a..4622d4f 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FormFiller.h"
@@ -39,9 +39,9 @@ PWL_CREATEPARAM       CFFL_ListBox::GetCreateParam()
 
        ASSERT(m_pWidget != NULL);
        FX_DWORD dwFieldFlag = m_pWidget->GetFieldFlags();
-               
+
        if (dwFieldFlag & FIELDFLAG_MULTISELECT)
-       {               
+       {
                cp.dwFlags |= PLBS_MULTIPLESEL;
        }
 
@@ -76,7 +76,7 @@ CPWL_Wnd* CFFL_ListBox::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView
        if (pWnd->HasFlag(PLBS_MULTIPLESEL))
        {
                m_OriginSelections.RemoveAll();
-               
+
                FX_BOOL bSetCaret = FALSE;
                for (int32_t i=0,sz=m_pWidget->CountOptions(); i<sz; i++)
                {
@@ -103,9 +103,9 @@ CPWL_Wnd* CFFL_ListBox::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageView
                        }
                }
        }
-       
+
        pWnd->SetTopVisibleIndex(m_pWidget->GetTopVisibleIndex());
-       
+
        return pWnd;
 }
 
@@ -143,7 +143,7 @@ FX_BOOL     CFFL_ListBox::IsDataChanged(CPDFSDK_PageView* pPageView)
                        return pListBox->GetCurSel() != m_pWidget->GetSelectedIndex(0);
                }
        }
-       
+
        return FALSE;
 }
 
@@ -165,10 +165,10 @@ void CFFL_ListBox::SaveData(CPDFSDK_PageView* pPageView)
                        }
                }
 
-               
+
                int32_t nNewTopIndex = pListBox->GetTopVisibleIndex();
 
-               m_pWidget->ClearSelection(FALSE);       
+               m_pWidget->ClearSelection(FALSE);
 
                if (m_pWidget->GetFieldFlags() & FIELDFLAG_MULTISELECT)
                {
@@ -235,7 +235,7 @@ void CFFL_ListBox::GetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AAct
 }
 
 
-void CFFL_ListBox::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type, 
+void CFFL_ListBox::SetActionData(CPDFSDK_PageView* pPageView, CPDF_AAction::AActionType type,
                                                                const PDFSDK_FieldAction& fa)
 {
 }
@@ -269,11 +269,11 @@ CPWL_Wnd* CFFL_ListBox::ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRes
 {
        if (bRestoreValue)
                SaveState(pPageView);
-       
+
        DestroyPDFWindow(pPageView);
-       
+
        CPWL_Wnd* pRet = NULL;
-       
+
        if (bRestoreValue)
        {
                RestoreState(pPageView);
@@ -281,9 +281,9 @@ CPWL_Wnd* CFFL_ListBox::ResetPDFWindow(CPDFSDK_PageView* pPageView, FX_BOOL bRes
        }
        else
                pRet = GetPDFWindow(pPageView, TRUE);
-       
+
        m_pWidget->UpdateField();
-       
+
        return pRet;
 }
 
@@ -292,7 +292,7 @@ void CFFL_ListBox::OnKeyStroke(FX_BOOL bKeyDown, FX_DWORD nFlag)
        ASSERT(m_pWidget != NULL);
 
        int nFlags = m_pWidget->GetFieldFlags();
-       
+
        if (nFlags & FIELDFLAG_COMMITONSELCHANGE)
        {
                if (m_bValid)
index 4fd2bd8..58a2202 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 // #include "../../include/formfiller/FormFiller.h"
@@ -14,7 +14,7 @@
 
 //#pragma warning(disable: 4800)
 
-CFFL_Notify::CFFL_Notify(CFFL_FormFiller * pFormFiller) : 
+CFFL_Notify::CFFL_Notify(CFFL_FormFiller * pFormFiller) :
        m_bDoActioning(FALSE),
        m_nNotifyFlag(0)
 {
@@ -94,15 +94,15 @@ FX_BOOL CFFL_Notify::OnFormat(int iCommitKey)
        return TRUE;
 }
 
-FX_BOOL CFFL_Notify::OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue, CFX_WideString& strChange, 
+FX_BOOL CFFL_Notify::OnKeyStroke(CPDF_FormField* pFormField, int nCommitKey, CFX_WideString& strValue, CFX_WideString& strChange,
                                                           const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifier,
-                                                          FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull, 
+                                                          FX_BOOL bShift, FX_BOOL bWillCommit, FX_BOOL bFieldFull,
                                                           int& nSelStart, int& nSelEnd, FX_BOOL& bRC)
 {
        return TRUE;
 }
 
-FX_BOOL CFFL_Notify::OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange, 
+FX_BOOL CFFL_Notify::OnValidate(CPDF_FormField* pFormField, CFX_WideString& strValue, CFX_WideString & strChange,
                                                                           const CFX_WideString& strChangeEx, FX_BOOL bKeyDown, FX_BOOL bModifier,
                                                                           FX_BOOL bShift, FX_BOOL & bRC)
 {
index b8a07fb..a5df488 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FormFiller.h"
@@ -23,7 +23,7 @@ CPWL_Wnd* CFFL_PushButton::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageV
 {
        CPWL_PushButton* pWnd = new CPWL_PushButton();
        pWnd->Create(cp);
-       
+
        return pWnd;
 }
 
@@ -33,7 +33,7 @@ FX_BOOL       CFFL_PushButton::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nF
        return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags);
 }
 
-void CFFL_PushButton::OnDraw(CPDFSDK_PageView *pPageView,  CPDFSDK_Annot* pAnnot, 
+void CFFL_PushButton::OnDraw(CPDFSDK_PageView *pPageView,  CPDFSDK_Annot* pAnnot,
                                                         CFX_RenderDevice* pDevice, CPDF_Matrix* pUser2Device,
                                                         FX_DWORD dwFlags)
 {
index 708d6df..1f73e8c 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FormFiller.h"
@@ -27,7 +27,7 @@ CPWL_Wnd* CFFL_RadioButton::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_Page
 
        ASSERT(m_pWidget != NULL);
        pWnd->SetCheck(m_pWidget->IsChecked());
-       
+
        return pWnd;
 }
 
@@ -47,7 +47,7 @@ FX_BOOL       CFFL_RadioButton::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT n
 {
        switch (nChar)
        {
-       case FWL_VKEY_Return:   
+       case FWL_VKEY_Return:
        case FWL_VKEY_Space:
                {
                        CFFL_IFormFiller* pIFormFiller = m_pApp->GetIFormFiller();
@@ -109,7 +109,7 @@ void CFFL_RadioButton::SaveData(CPDFSDK_PageView* pPageView)
 
        if (CPWL_RadioButton* pWnd = (CPWL_RadioButton*)GetPDFWindow(pPageView, FALSE))
        {
-               
+
                FX_BOOL bNewChecked = pWnd->IsChecked();
 
                if (bNewChecked)
index 33fb751..ff3bcaf 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #include "../../include/formfiller/FFL_TextField.h"
@@ -36,16 +36,16 @@ PWL_CREATEPARAM CFFL_TextField::GetCreateParam()
 
 
        if (nFlags & FIELDFLAG_PASSWORD)
-       {               
+       {
                cp.dwFlags |= PES_PASSWORD;
        }
 
        if (!(nFlags & FIELDFLAG_DONOTSPELLCHECK))
-       {               
+       {
        }
 
        if (nFlags & FIELDFLAG_MULTILINE)
-       {               
+       {
                cp.dwFlags |= PES_MULTILINE | PES_AUTORETURN | PES_TOP;
 
                if (!(nFlags & FIELDFLAG_DONOTSCROLL))
@@ -64,17 +64,17 @@ PWL_CREATEPARAM CFFL_TextField::GetCreateParam()
        }
 
        if (nFlags & FIELDFLAG_COMB)
-       {               
+       {
                cp.dwFlags |= PES_CHARARRAY;
        }
 
        if (nFlags & FIELDFLAG_RICHTEXT)
-       {               
+       {
                cp.dwFlags |= PES_RICH;
        }
 
        cp.dwFlags |= PES_UNDO;
-       
+
        switch (m_pWidget->GetAlignment())
        {
        default:
@@ -115,7 +115,7 @@ CPWL_Wnd* CFFL_TextField::NewPDFWindow(const PWL_CREATEPARAM& cp, CPDFSDK_PageVi
        ASSERT(m_pWidget != NULL);
        int32_t nMaxLen = m_pWidget->GetMaxLen();
        CFX_WideString swValue = m_pWidget->GetValue();
-       
+
        if (nMaxLen > 0)
        {
                if (pWnd->HasFlag(PES_CHARARRAY))
@@ -146,7 +146,7 @@ FX_BOOL     CFFL_TextField::OnChar(CPDFSDK_Annot* pAnnot, FX_UINT nChar, FX_UINT nFl
                        m_bValid = !m_bValid;
                        CPDF_Rect rcAnnot = pAnnot->GetRect();
                        m_pApp->FFI_Invalidate(pAnnot->GetPDFPage(), rcAnnot.left, rcAnnot.top, rcAnnot.right, rcAnnot.bottom);
+