Cleanup: Get this rid of "this->" in fpdfsdk/
[pdfium.git] / fpdfsdk / include / fxedit / fxet_edit.h
index 6fd7b9a..d92f290 100644 (file)
@@ -162,7 +162,7 @@ public:
 
        virtual ~CFX_Edit_RectArray()
        {
-               this->Empty();
+               Empty();
        }
 
        void Empty()
@@ -170,7 +170,7 @@ public:
                for (int32_t i = 0, sz = m_Rects.GetSize(); i < sz; i++)
                        delete m_Rects.GetAt(i);
 
-               this->m_Rects.RemoveAll();
+               m_Rects.RemoveAll();
        }
 
        void Add(const CPDF_Rect & rect)
@@ -242,7 +242,7 @@ public:
 
        CPVT_WordRange ConvertToWordRange() const
        {
-               return CPVT_WordRange(this->BeginPos,this->EndPos);
+               return CPVT_WordRange(BeginPos, EndPos);
        }
 
        void Default()
@@ -253,28 +253,28 @@ public:
 
        void Set(const CPVT_WordPlace & begin,const CPVT_WordPlace & end)
        {
-               this->BeginPos = begin;
-               this->EndPos = end;
+               BeginPos = begin;
+               EndPos = end;
        }
 
        void SetBeginPos(const CPVT_WordPlace & begin)
        {
-               this->BeginPos = begin;
+               BeginPos = begin;
        }
 
        void SetEndPos(const CPVT_WordPlace & end)
        {
-               this->EndPos = end;
+               EndPos = end;
        }
 
        FX_BOOL IsExist() const
        {
-               return this->BeginPos != this->EndPos;
+               return BeginPos != EndPos;
        }
 
        FX_BOOL operator != (const CPVT_WordRange & wr) const
        {
-               return wr.BeginPos != this->BeginPos || wr.EndPos != this->EndPos;
+               return wr.BeginPos != BeginPos || wr.EndPos != EndPos;
        }
 
        CPVT_WordPlace BeginPos,EndPos;
@@ -618,7 +618,7 @@ public:
        void                                                                    OnVK_HOME(FX_BOOL bShift,FX_BOOL bCtrl);
        void                                                                    OnVK_END(FX_BOOL bShift,FX_BOOL bCtrl);
 
-       void                                                                    SetText(FX_LPCWSTR text,int32_t charset = DEFAULT_CHARSET,
+       void                                                                    SetText(const FX_WCHAR* text,int32_t charset = DEFAULT_CHARSET,
                                                                                                        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);
@@ -626,11 +626,11 @@ public:
        FX_BOOL                                                                 Delete();               
        FX_BOOL                                                                 Clear();
        FX_BOOL                                                                 Empty();
-       FX_BOOL                                                                 InsertText(FX_LPCWSTR text, int32_t charset = DEFAULT_CHARSET,
+       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, FX_LPCWSTR text, int32_t charset, 
+       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);
 
@@ -679,14 +679,14 @@ private:
        void                                                                    SetContentChanged();
        void                                                                    EnableNotify(FX_BOOL bNotify);
 
-       void                                                                    SetText(FX_LPCWSTR text,int32_t charset,
+       void                                                                    SetText(const FX_WCHAR* text,int32_t charset,
                                                                                                        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                                                                 Clear(FX_BOOL bAddUndo, FX_BOOL bPaint);
-       FX_BOOL                                                                 InsertText(FX_LPCWSTR text, int32_t charset,
+       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);