summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/pdfwindow')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_button.cpp (renamed from fpdfsdk/pdfwindow/PWL_Button.cpp)6
-rw-r--r--fpdfsdk/pdfwindow/cpwl_button.h (renamed from fpdfsdk/pdfwindow/PWL_Button.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_caret.cpp (renamed from fpdfsdk/pdfwindow/PWL_Caret.cpp)6
-rw-r--r--fpdfsdk/pdfwindow/cpwl_caret.h (renamed from fpdfsdk/pdfwindow/PWL_Caret.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_combo_box.cpp (renamed from fpdfsdk/pdfwindow/PWL_ComboBox.cpp)12
-rw-r--r--fpdfsdk/pdfwindow/cpwl_combo_box.h (renamed from fpdfsdk/pdfwindow/PWL_ComboBox.h)12
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit.cpp (renamed from fpdfsdk/pdfwindow/PWL_Edit.cpp)22
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit.h (renamed from fpdfsdk/pdfwindow/PWL_Edit.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp (renamed from fpdfsdk/pdfwindow/PWL_EditCtrl.cpp)12
-rw-r--r--fpdfsdk/pdfwindow/cpwl_edit_ctrl.h (renamed from fpdfsdk/pdfwindow/PWL_EditCtrl.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_font_map.cpp (renamed from fpdfsdk/pdfwindow/PWL_FontMap.cpp)4
-rw-r--r--fpdfsdk/pdfwindow/cpwl_font_map.h (renamed from fpdfsdk/pdfwindow/PWL_FontMap.h)6
-rw-r--r--fpdfsdk/pdfwindow/cpwl_icon.cpp (renamed from fpdfsdk/pdfwindow/PWL_Icon.cpp)6
-rw-r--r--fpdfsdk/pdfwindow/cpwl_icon.h (renamed from fpdfsdk/pdfwindow/PWL_Icon.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_list_box.cpp (renamed from fpdfsdk/pdfwindow/PWL_ListBox.cpp)15
-rw-r--r--fpdfsdk/pdfwindow/cpwl_list_box.h (renamed from fpdfsdk/pdfwindow/PWL_ListBox.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp (renamed from fpdfsdk/pdfwindow/PWL_ScrollBar.cpp)6
-rw-r--r--fpdfsdk/pdfwindow/cpwl_scroll_bar.h (renamed from fpdfsdk/pdfwindow/PWL_ScrollBar.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_special_button.cpp (renamed from fpdfsdk/pdfwindow/PWL_SpecialButton.cpp)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_special_button.h (renamed from fpdfsdk/pdfwindow/PWL_SpecialButton.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_utils.cpp (renamed from fpdfsdk/pdfwindow/PWL_Utils.cpp)43
-rw-r--r--fpdfsdk/pdfwindow/cpwl_utils.h (renamed from fpdfsdk/pdfwindow/PWL_Utils.h)8
-rw-r--r--fpdfsdk/pdfwindow/cpwl_wnd.cpp (renamed from fpdfsdk/pdfwindow/PWL_Wnd.cpp)6
-rw-r--r--fpdfsdk/pdfwindow/cpwl_wnd.h (renamed from fpdfsdk/pdfwindow/PWL_Wnd.h)44
24 files changed, 146 insertions, 134 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Button.cpp b/fpdfsdk/pdfwindow/cpwl_button.cpp
index 96be469454..de9054ae32 100644
--- a/fpdfsdk/pdfwindow/PWL_Button.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_button.cpp
@@ -4,9 +4,9 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Button.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_button.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
CPWL_Button::CPWL_Button() : m_bMouseDown(false) {}
diff --git a/fpdfsdk/pdfwindow/PWL_Button.h b/fpdfsdk/pdfwindow/cpwl_button.h
index 2d1193f89d..9f4a47733e 100644
--- a/fpdfsdk/pdfwindow/PWL_Button.h
+++ b/fpdfsdk/pdfwindow/cpwl_button.h
@@ -4,10 +4,10 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_BUTTON_H_
-#define FPDFSDK_PDFWINDOW_PWL_BUTTON_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_BUTTON_H_
+#define FPDFSDK_PDFWINDOW_CPWL_BUTTON_H_
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CPWL_Button : public CPWL_Wnd {
public:
@@ -24,4 +24,4 @@ class CPWL_Button : public CPWL_Wnd {
bool m_bMouseDown;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_BUTTON_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_BUTTON_H_
diff --git a/fpdfsdk/pdfwindow/PWL_Caret.cpp b/fpdfsdk/pdfwindow/cpwl_caret.cpp
index 3658fbc23a..3275dd1b33 100644
--- a/fpdfsdk/pdfwindow/PWL_Caret.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_caret.cpp
@@ -4,13 +4,13 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Caret.h"
+#include "fpdfsdk/pdfwindow/cpwl_caret.h"
#include "core/fxge/cfx_graphstatedata.h"
#include "core/fxge/cfx_pathdata.h"
#include "core/fxge/cfx_renderdevice.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#define PWL_CARET_FLASHINTERVAL 500
diff --git a/fpdfsdk/pdfwindow/PWL_Caret.h b/fpdfsdk/pdfwindow/cpwl_caret.h
index 7c041f4f5e..325f13b7eb 100644
--- a/fpdfsdk/pdfwindow/PWL_Caret.h
+++ b/fpdfsdk/pdfwindow/cpwl_caret.h
@@ -4,10 +4,10 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_CARET_H_
-#define FPDFSDK_PDFWINDOW_PWL_CARET_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_CARET_H_
+#define FPDFSDK_PDFWINDOW_CPWL_CARET_H_
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
struct PWL_CARET_INFO {
public:
@@ -50,4 +50,4 @@ class CPWL_Caret : public CPWL_Wnd {
CFX_FloatRect m_rcInvalid;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_CARET_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_CARET_H_
diff --git a/fpdfsdk/pdfwindow/PWL_ComboBox.cpp b/fpdfsdk/pdfwindow/cpwl_combo_box.cpp
index a4dbeabacf..42786806d0 100644
--- a/fpdfsdk/pdfwindow/PWL_ComboBox.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_combo_box.cpp
@@ -4,18 +4,18 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_ComboBox.h"
+#include "fpdfsdk/pdfwindow/cpwl_combo_box.h"
#include <algorithm>
#include "core/fxge/cfx_pathdata.h"
#include "core/fxge/cfx_renderdevice.h"
#include "fpdfsdk/fxedit/fxet_list.h"
-#include "fpdfsdk/pdfwindow/PWL_Edit.h"
-#include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
-#include "fpdfsdk/pdfwindow/PWL_ListBox.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit_ctrl.h"
+#include "fpdfsdk/pdfwindow/cpwl_list_box.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#include "public/fpdf_fwlevent.h"
#define PWLCB_DEFAULTFONTSIZE 12.0f
diff --git a/fpdfsdk/pdfwindow/PWL_ComboBox.h b/fpdfsdk/pdfwindow/cpwl_combo_box.h
index 9211777656..71bd1a9e1c 100644
--- a/fpdfsdk/pdfwindow/PWL_ComboBox.h
+++ b/fpdfsdk/pdfwindow/cpwl_combo_box.h
@@ -4,15 +4,15 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_
-#define FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_COMBO_BOX_H_
+#define FPDFSDK_PDFWINDOW_CPWL_COMBO_BOX_H_
#include <memory>
#include "core/fxcrt/cfx_unowned_ptr.h"
-#include "fpdfsdk/pdfwindow/PWL_Edit.h"
-#include "fpdfsdk/pdfwindow/PWL_ListBox.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit.h"
+#include "fpdfsdk/pdfwindow/cpwl_list_box.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CPWL_CBEdit : public CPWL_Edit {
public:
@@ -104,4 +104,4 @@ class CPWL_ComboBox : public CPWL_Wnd {
CFX_UnownedPtr<CFFL_FormFiller> m_pFormFiller;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_COMBOBOX_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_COMBO_BOX_H_
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/cpwl_edit.cpp
index a2f1c89a8a..fd785e0603 100644
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_edit.cpp
@@ -4,7 +4,7 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Edit.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit.h"
#include <algorithm>
#include <memory>
@@ -20,12 +20,12 @@
#include "core/fxge/cfx_renderdevice.h"
#include "core/fxge/fx_font.h"
#include "fpdfsdk/fxedit/fxet_edit.h"
-#include "fpdfsdk/pdfwindow/PWL_Caret.h"
-#include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
-#include "fpdfsdk/pdfwindow/PWL_FontMap.h"
-#include "fpdfsdk/pdfwindow/PWL_ScrollBar.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_caret.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit_ctrl.h"
+#include "fpdfsdk/pdfwindow/cpwl_font_map.h"
+#include "fpdfsdk/pdfwindow/cpwl_scroll_bar.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#include "public/fpdf_fwlevent.h"
#include "third_party/base/stl_util.h"
@@ -637,10 +637,10 @@ bool CPWL_Edit::OnKeyDown(uint16_t nChar, uint32_t nFlag) {
}
/**
-*In case of implementation swallow the OnKeyDown event.
-*If the event is swallowed, implementation may do other unexpected things, which
-*is not the control means to do.
-*/
+ *In case of implementation swallow the OnKeyDown event.
+ *If the event is swallowed, implementation may do other unexpected things,
+ *which is not the control means to do.
+ */
bool CPWL_Edit::IsProceedtoOnChar(uint16_t nKeyCode, uint32_t nFlag) {
bool bCtrl = IsCTRLpressed(nFlag);
bool bAlt = IsALTpressed(nFlag);
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.h b/fpdfsdk/pdfwindow/cpwl_edit.h
index 6fc02cae6f..1ed01b9657 100644
--- a/fpdfsdk/pdfwindow/PWL_Edit.h
+++ b/fpdfsdk/pdfwindow/cpwl_edit.h
@@ -4,13 +4,13 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_EDIT_H_
-#define FPDFSDK_PDFWINDOW_PWL_EDIT_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_EDIT_H_
+#define FPDFSDK_PDFWINDOW_CPWL_EDIT_H_
#include "core/fpdfdoc/cpvt_wordrange.h"
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_basic.h"
-#include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit_ctrl.h"
class IPWL_Filler_Notify {
public:
@@ -136,4 +136,4 @@ class CPWL_Edit : public CPWL_EditCtrl {
CFX_UnownedPtr<CFFL_FormFiller> m_pFormFiller;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_EDIT_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_EDIT_H_
diff --git a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
index c149e80f14..9c22cead58 100644
--- a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.cpp
@@ -4,17 +4,17 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit_ctrl.h"
#include "core/fpdfdoc/cpvt_section.h"
#include "core/fpdfdoc/cpvt_word.h"
#include "core/fxge/fx_font.h"
#include "fpdfsdk/fxedit/fxet_edit.h"
-#include "fpdfsdk/pdfwindow/PWL_Caret.h"
-#include "fpdfsdk/pdfwindow/PWL_FontMap.h"
-#include "fpdfsdk/pdfwindow/PWL_ScrollBar.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_caret.h"
+#include "fpdfsdk/pdfwindow/cpwl_font_map.h"
+#include "fpdfsdk/pdfwindow/cpwl_scroll_bar.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#include "public/fpdf_fwlevent.h"
CPWL_EditCtrl::CPWL_EditCtrl()
diff --git a/fpdfsdk/pdfwindow/PWL_EditCtrl.h b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.h
index 623079b3d9..59bb623776 100644
--- a/fpdfsdk/pdfwindow/PWL_EditCtrl.h
+++ b/fpdfsdk/pdfwindow/cpwl_edit_ctrl.h
@@ -4,13 +4,13 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_
-#define FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_EDIT_CTRL_H_
+#define FPDFSDK_PDFWINDOW_CPWL_EDIT_CTRL_H_
#include <memory>
#include "core/fxcrt/fx_string.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CFX_Edit;
class CPWL_Caret;
@@ -105,4 +105,4 @@ class CPWL_EditCtrl : public CPWL_Wnd {
int32_t m_nCharSet;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_EDITCTRL_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_EDIT_CTRL_H_
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.cpp b/fpdfsdk/pdfwindow/cpwl_font_map.cpp
index c981f18705..f0c74ba0ce 100644
--- a/fpdfsdk/pdfwindow/PWL_FontMap.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_font_map.cpp
@@ -4,7 +4,7 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_FontMap.h"
+#include "fpdfsdk/pdfwindow/cpwl_font_map.h"
#include <utility>
@@ -15,7 +15,7 @@
#include "core/fpdfapi/parser/cpdf_parser.h"
#include "core/fpdfdoc/ipvt_fontmap.h"
#include "core/fxcrt/fx_codepage.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#include "third_party/base/ptr_util.h"
#include "third_party/base/stl_util.h"
diff --git a/fpdfsdk/pdfwindow/PWL_FontMap.h b/fpdfsdk/pdfwindow/cpwl_font_map.h
index ca3ab231bd..de7a944425 100644
--- a/fpdfsdk/pdfwindow/PWL_FontMap.h
+++ b/fpdfsdk/pdfwindow/cpwl_font_map.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_
-#define FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_FONT_MAP_H_
+#define FPDFSDK_PDFWINDOW_CPWL_FONT_MAP_H_
#include <memory>
#include <vector>
@@ -93,4 +93,4 @@ class CPWL_FontMap : public IPVT_FontMap {
CFX_UnownedPtr<CFX_SystemHandler> const m_pSystemHandler;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_FONTMAP_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_FONT_MAP_H_
diff --git a/fpdfsdk/pdfwindow/PWL_Icon.cpp b/fpdfsdk/pdfwindow/cpwl_icon.cpp
index e1397bff0c..1464a09348 100644
--- a/fpdfsdk/pdfwindow/PWL_Icon.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_icon.cpp
@@ -4,14 +4,14 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Icon.h"
+#include "fpdfsdk/pdfwindow/cpwl_icon.h"
#include <algorithm>
#include "core/fpdfapi/parser/cpdf_array.h"
#include "core/fpdfapi/parser/cpdf_stream.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
CPWL_Image::CPWL_Image() : m_pPDFStream(nullptr) {}
diff --git a/fpdfsdk/pdfwindow/PWL_Icon.h b/fpdfsdk/pdfwindow/cpwl_icon.h
index c5d116be69..c7b8cb4b56 100644
--- a/fpdfsdk/pdfwindow/PWL_Icon.h
+++ b/fpdfsdk/pdfwindow/cpwl_icon.h
@@ -4,12 +4,12 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_ICON_H_
-#define FPDFSDK_PDFWINDOW_PWL_ICON_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_ICON_H_
+#define FPDFSDK_PDFWINDOW_CPWL_ICON_H_
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_string.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CPWL_Image : public CPWL_Wnd {
public:
@@ -55,4 +55,4 @@ class CPWL_Icon : public CPWL_Image {
CFX_UnownedPtr<CPDF_IconFit> m_pIconFit;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_ICON_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_ICON_H_
diff --git a/fpdfsdk/pdfwindow/PWL_ListBox.cpp b/fpdfsdk/pdfwindow/cpwl_list_box.cpp
index 09487c3314..5c161bfdda 100644
--- a/fpdfsdk/pdfwindow/PWL_ListBox.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_list_box.cpp
@@ -4,15 +4,15 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_ListBox.h"
+#include "fpdfsdk/pdfwindow/cpwl_list_box.h"
#include "fpdfsdk/fxedit/fxet_edit.h"
#include "fpdfsdk/fxedit/fxet_list.h"
-#include "fpdfsdk/pdfwindow/PWL_Edit.h"
-#include "fpdfsdk/pdfwindow/PWL_EditCtrl.h"
-#include "fpdfsdk/pdfwindow/PWL_ScrollBar.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit.h"
+#include "fpdfsdk/pdfwindow/cpwl_edit_ctrl.h"
+#include "fpdfsdk/pdfwindow/cpwl_scroll_bar.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#include "public/fpdf_fwlevent.h"
#include "third_party/base/ptr_util.h"
@@ -70,8 +70,7 @@ CPWL_ListBox::CPWL_ListBox()
m_bHoverSel(false),
m_pFillerNotify(nullptr) {}
-CPWL_ListBox::~CPWL_ListBox() {
-}
+CPWL_ListBox::~CPWL_ListBox() {}
CFX_ByteString CPWL_ListBox::GetClassName() const {
return "CPWL_ListBox";
diff --git a/fpdfsdk/pdfwindow/PWL_ListBox.h b/fpdfsdk/pdfwindow/cpwl_list_box.h
index 75d23bb7c6..6cf37ae40c 100644
--- a/fpdfsdk/pdfwindow/PWL_ListBox.h
+++ b/fpdfsdk/pdfwindow/cpwl_list_box.h
@@ -4,14 +4,14 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
-#define FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_LIST_BOX_H_
+#define FPDFSDK_PDFWINDOW_CPWL_LIST_BOX_H_
#include <memory>
#include "core/fxcrt/cfx_unowned_ptr.h"
#include "fpdfsdk/fxedit/fx_edit.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CFX_ListCtrl;
class CPWL_List_Notify;
@@ -115,4 +115,4 @@ class CPWL_ListBox : public CPWL_Wnd {
CFX_UnownedPtr<CFFL_FormFiller> m_pFormFiller;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_LISTBOX_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_LIST_BOX_H_
diff --git a/fpdfsdk/pdfwindow/PWL_ScrollBar.cpp b/fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp
index 36ee5c762f..2f234b2432 100644
--- a/fpdfsdk/pdfwindow/PWL_ScrollBar.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_scroll_bar.cpp
@@ -4,12 +4,12 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_ScrollBar.h"
+#include "fpdfsdk/pdfwindow/cpwl_scroll_bar.h"
#include "core/fxge/cfx_pathdata.h"
#include "core/fxge/cfx_renderdevice.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
PWL_FLOATRANGE::PWL_FLOATRANGE() {
Default();
diff --git a/fpdfsdk/pdfwindow/PWL_ScrollBar.h b/fpdfsdk/pdfwindow/cpwl_scroll_bar.h
index 165d0e022c..0ab2928f2a 100644
--- a/fpdfsdk/pdfwindow/PWL_ScrollBar.h
+++ b/fpdfsdk/pdfwindow/cpwl_scroll_bar.h
@@ -4,11 +4,11 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_SCROLLBAR_H_
-#define FPDFSDK_PDFWINDOW_PWL_SCROLLBAR_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_SCROLL_BAR_H_
+#define FPDFSDK_PDFWINDOW_CPWL_SCROLL_BAR_H_
#include "core/fxcrt/cfx_unowned_ptr.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CPWL_SBButton;
class CPWL_ScrollBar;
@@ -182,4 +182,4 @@ class CPWL_ScrollBar : public CPWL_Wnd {
float m_fOldPosButton;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_SCROLLBAR_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_SCROLL_BAR_H_
diff --git a/fpdfsdk/pdfwindow/PWL_SpecialButton.cpp b/fpdfsdk/pdfwindow/cpwl_special_button.cpp
index d2a13219d2..56aa739545 100644
--- a/fpdfsdk/pdfwindow/PWL_SpecialButton.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_special_button.cpp
@@ -4,10 +4,10 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Button.h"
-#include "fpdfsdk/pdfwindow/PWL_SpecialButton.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_special_button.h"
+#include "fpdfsdk/pdfwindow/cpwl_button.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
CPWL_PushButton::CPWL_PushButton() {}
diff --git a/fpdfsdk/pdfwindow/PWL_SpecialButton.h b/fpdfsdk/pdfwindow/cpwl_special_button.h
index 93f611b744..ed80d31639 100644
--- a/fpdfsdk/pdfwindow/PWL_SpecialButton.h
+++ b/fpdfsdk/pdfwindow/cpwl_special_button.h
@@ -4,10 +4,10 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_SPECIALBUTTON_H_
-#define FPDFSDK_PDFWINDOW_PWL_SPECIALBUTTON_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_SPECIAL_BUTTON_H_
+#define FPDFSDK_PDFWINDOW_CPWL_SPECIAL_BUTTON_H_
-#include "fpdfsdk/pdfwindow/PWL_Button.h"
+#include "fpdfsdk/pdfwindow/cpwl_button.h"
class CPWL_PushButton : public CPWL_Button {
public:
@@ -53,4 +53,4 @@ class CPWL_RadioButton : public CPWL_Button {
bool m_bChecked;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_SPECIALBUTTON_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_SPECIAL_BUTTON_H_
diff --git a/fpdfsdk/pdfwindow/PWL_Utils.cpp b/fpdfsdk/pdfwindow/cpwl_utils.cpp
index dbac6ad8bc..0a3591923a 100644
--- a/fpdfsdk/pdfwindow/PWL_Utils.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_utils.cpp
@@ -4,7 +4,7 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
#include <algorithm>
#include <memory>
@@ -14,8 +14,8 @@
#include "core/fxge/cfx_pathdata.h"
#include "core/fxge/cfx_renderdevice.h"
#include "fpdfsdk/fxedit/fxet_edit.h"
-#include "fpdfsdk/pdfwindow/PWL_Icon.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_icon.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
CFX_FloatRect CPWL_Utils::OffsetRect(const CFX_FloatRect& rect,
float x,
@@ -703,7 +703,9 @@ CFX_ByteString CPWL_Utils::GetCircleBorderAppStream(
case BorderStyle::UNDERLINE: {
sColor = CPWL_Utils::GetColorAppStream(color, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fWidth << " w\n" << sColor
+ sAppStream << "q\n"
+ << fWidth << " w\n"
+ << sColor
<< CPWL_Utils::GetAP_Circle(
CPWL_Utils::DeflateRect(rect, fWidth / 2.0f))
<< " S\nQ\n";
@@ -712,9 +714,11 @@ CFX_ByteString CPWL_Utils::GetCircleBorderAppStream(
case BorderStyle::DASH: {
sColor = CPWL_Utils::GetColorAppStream(color, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fWidth << " w\n"
+ sAppStream << "q\n"
+ << fWidth << " w\n"
<< "[" << dash.nDash << " " << dash.nGap << "] "
- << dash.nPhase << " d\n" << sColor
+ << dash.nPhase << " d\n"
+ << sColor
<< CPWL_Utils::GetAP_Circle(
CPWL_Utils::DeflateRect(rect, fWidth / 2.0f))
<< " S\nQ\n";
@@ -725,13 +729,16 @@ CFX_ByteString CPWL_Utils::GetCircleBorderAppStream(
sColor = CPWL_Utils::GetColorAppStream(color, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fHalfWidth << " w\n" << sColor
- << CPWL_Utils::GetAP_Circle(rect) << " S\nQ\n";
+ sAppStream << "q\n"
+ << fHalfWidth << " w\n"
+ << sColor << CPWL_Utils::GetAP_Circle(rect) << " S\nQ\n";
}
sColor = CPWL_Utils::GetColorAppStream(crLeftTop, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fHalfWidth << " w\n" << sColor
+ sAppStream << "q\n"
+ << fHalfWidth << " w\n"
+ << sColor
<< CPWL_Utils::GetAP_HalfCircle(
CPWL_Utils::DeflateRect(rect, fHalfWidth * 0.75f),
FX_PI / 4.0f)
@@ -740,7 +747,9 @@ CFX_ByteString CPWL_Utils::GetCircleBorderAppStream(
sColor = CPWL_Utils::GetColorAppStream(crRightBottom, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fHalfWidth << " w\n" << sColor
+ sAppStream << "q\n"
+ << fHalfWidth << " w\n"
+ << sColor
<< CPWL_Utils::GetAP_HalfCircle(
CPWL_Utils::DeflateRect(rect, fHalfWidth * 0.75f),
FX_PI * 5 / 4.0f)
@@ -752,13 +761,16 @@ CFX_ByteString CPWL_Utils::GetCircleBorderAppStream(
sColor = CPWL_Utils::GetColorAppStream(color, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fHalfWidth << " w\n" << sColor
- << CPWL_Utils::GetAP_Circle(rect) << " S\nQ\n";
+ sAppStream << "q\n"
+ << fHalfWidth << " w\n"
+ << sColor << CPWL_Utils::GetAP_Circle(rect) << " S\nQ\n";
}
sColor = CPWL_Utils::GetColorAppStream(crLeftTop, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fHalfWidth << " w\n" << sColor
+ sAppStream << "q\n"
+ << fHalfWidth << " w\n"
+ << sColor
<< CPWL_Utils::GetAP_HalfCircle(
CPWL_Utils::DeflateRect(rect, fHalfWidth * 0.75f),
FX_PI / 4.0f)
@@ -767,7 +779,9 @@ CFX_ByteString CPWL_Utils::GetCircleBorderAppStream(
sColor = CPWL_Utils::GetColorAppStream(crRightBottom, false);
if (sColor.GetLength() > 0) {
- sAppStream << "q\n" << fHalfWidth << " w\n" << sColor
+ sAppStream << "q\n"
+ << fHalfWidth << " w\n"
+ << sColor
<< CPWL_Utils::GetAP_HalfCircle(
CPWL_Utils::DeflateRect(rect, fHalfWidth * 0.75f),
FX_PI * 5 / 4.0f)
@@ -1152,4 +1166,3 @@ void CPWL_Utils::DrawBorder(CFX_RenderDevice* pDevice,
}
}
}
-
diff --git a/fpdfsdk/pdfwindow/PWL_Utils.h b/fpdfsdk/pdfwindow/cpwl_utils.h
index 29fe239635..297eb89b6e 100644
--- a/fpdfsdk/pdfwindow/PWL_Utils.h
+++ b/fpdfsdk/pdfwindow/cpwl_utils.h
@@ -4,11 +4,11 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_UTILS_H_
-#define FPDFSDK_PDFWINDOW_PWL_UTILS_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_UTILS_H_
+#define FPDFSDK_PDFWINDOW_CPWL_UTILS_H_
#include "core/fpdfdoc/cpvt_wordrange.h"
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
class CFX_Edit;
struct CPWL_Color;
@@ -159,4 +159,4 @@ class CPWL_Utils {
float fRotate);
};
-#endif // FPDFSDK_PDFWINDOW_PWL_UTILS_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_UTILS_H_
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/pdfwindow/cpwl_wnd.cpp
index 151921bc8e..57e2643220 100644
--- a/fpdfsdk/pdfwindow/PWL_Wnd.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_wnd.cpp
@@ -4,13 +4,13 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#include "fpdfsdk/pdfwindow/PWL_Wnd.h"
+#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
#include <map>
#include <vector>
-#include "fpdfsdk/pdfwindow/PWL_ScrollBar.h"
-#include "fpdfsdk/pdfwindow/PWL_Utils.h"
+#include "fpdfsdk/pdfwindow/cpwl_scroll_bar.h"
+#include "fpdfsdk/pdfwindow/cpwl_utils.h"
#include "third_party/base/ptr_util.h"
#include "third_party/base/stl_util.h"
diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h
index d9d2f8ed66..86b0c66272 100644
--- a/fpdfsdk/pdfwindow/PWL_Wnd.h
+++ b/fpdfsdk/pdfwindow/cpwl_wnd.h
@@ -4,8 +4,8 @@
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-#ifndef FPDFSDK_PDFWINDOW_PWL_WND_H_
-#define FPDFSDK_PDFWINDOW_PWL_WND_H_
+#ifndef FPDFSDK_PDFWINDOW_CPWL_WND_H_
+#define FPDFSDK_PDFWINDOW_CPWL_WND_H_
#include <memory>
#include <vector>
@@ -180,26 +180,26 @@ struct PWL_CREATEPARAM {
mtChild.SetIdentity();
}
- CFX_FloatRect rcRectWnd; // required
- CFX_SystemHandler* pSystemHandler; // required
- IPVT_FontMap* pFontMap; // required
- IPWL_Provider::ObservedPtr pProvider; // required
- IPWL_FocusHandler* pFocusHandler; // optional
- uint32_t dwFlags; // optional
- CPWL_Color sBackgroundColor; // optional
+ CFX_FloatRect rcRectWnd; // required
+ CFX_SystemHandler* pSystemHandler; // required
+ IPVT_FontMap* pFontMap; // required
+ IPWL_Provider::ObservedPtr pProvider; // required
+ IPWL_FocusHandler* pFocusHandler; // optional
+ uint32_t dwFlags; // optional
+ CPWL_Color sBackgroundColor; // optional
CPDFSDK_Widget::ObservedPtr pAttachedWidget; // required
- BorderStyle nBorderStyle; // optional
- int32_t dwBorderWidth; // optional
- CPWL_Color sBorderColor; // optional
- CPWL_Color sTextColor; // optional
- int32_t nTransparency; // optional
- float fFontSize; // optional
- CPWL_Dash sDash; // optional
- void* pAttachedData; // optional
- CPWL_Wnd* pParentWnd; // ignore
- CPWL_MsgControl* pMsgControl; // ignore
- int32_t eCursorType; // ignore
- CFX_Matrix mtChild; // ignore
+ BorderStyle nBorderStyle; // optional
+ int32_t dwBorderWidth; // optional
+ CPWL_Color sBorderColor; // optional
+ CPWL_Color sTextColor; // optional
+ int32_t nTransparency; // optional
+ float fFontSize; // optional
+ CPWL_Dash sDash; // optional
+ void* pAttachedData; // optional
+ CPWL_Wnd* pParentWnd; // ignore
+ CPWL_MsgControl* pMsgControl; // ignore
+ int32_t eCursorType; // ignore
+ CFX_Matrix mtChild; // ignore
};
class CPWL_Wnd : public CPWL_TimerHandler {
@@ -367,4 +367,4 @@ class CPWL_Wnd : public CPWL_TimerHandler {
bool m_bEnabled;
};
-#endif // FPDFSDK_PDFWINDOW_PWL_WND_H_
+#endif // FPDFSDK_PDFWINDOW_CPWL_WND_H_