OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _PWL_LABEL_H_ | 7 #ifndef _PWL_LABEL_H_ |
8 #define _PWL_LABEL_H_ | 8 #define _PWL_LABEL_H_ |
9 | 9 |
10 class IFX_Edit; | 10 class IFX_Edit; |
11 | 11 |
12 class PWL_CLASS CPWL_Label : public CPWL_Wnd | 12 class PWL_CLASS CPWL_Label : public CPWL_Wnd { |
13 { | 13 public: |
14 public: | 14 CPWL_Label(); |
15 » CPWL_Label(); | 15 virtual ~CPWL_Label(); |
16 » virtual ~CPWL_Label(); | |
17 | 16 |
18 public: | 17 public: |
19 » virtual CFX_ByteString» » » GetClassName() const;» | 18 virtual CFX_ByteString GetClassName() const; |
20 » virtual void» » » » » SetFontSize(FX_FLOAT fFo
ntSize); | 19 virtual void SetFontSize(FX_FLOAT fFontSize); |
21 » virtual FX_FLOAT» » » » GetFontSize() const; | 20 virtual FX_FLOAT GetFontSize() const; |
22 | 21 |
23 public:»» | 22 public: |
24 » void» » » » » » » SetText(FX_LPCWS
TR csText); | 23 void SetText(FX_LPCWSTR csText); |
25 » CFX_WideString» » » » » GetText() const; | 24 CFX_WideString GetText() const; |
26 | 25 |
27 » void» » » » » » » SetLimitChar(FX_
INT32 nLimitChar); | 26 void SetLimitChar(FX_INT32 nLimitChar); |
28 » void» » » » » » » SetHorzScale(FX_
INT32 nHorzScale); | 27 void SetHorzScale(FX_INT32 nHorzScale); |
29 » void» » » » » » » SetCharSpace(FX_
FLOAT fCharSpace); | 28 void SetCharSpace(FX_FLOAT fCharSpace); |
30 | 29 |
31 » CPDF_Rect» » » » » » GetContentRect()
const;» | 30 CPDF_Rect GetContentRect() const; |
32 » FX_INT32» » » » » » GetTotalWords(); | 31 FX_INT32 GetTotalWords(); |
33 | 32 |
34 » CFX_ByteString» » » » » GetTextAppearanceStream(
const CPDF_Point & ptOffset) const; | 33 CFX_ByteString GetTextAppearanceStream(const CPDF_Point& ptOffset) const; |
35 | 34 |
36 protected: | 35 protected: |
37 » virtual void» » » » » OnCreated(); | 36 virtual void OnCreated(); |
38 » virtual void» » » » » DrawThisAppearance(CFX_R
enderDevice* pDevice, CPDF_Matrix* pUser2Device); | 37 virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, |
39 » virtual void» » » » » GetThisAppearanceStream(
CFX_ByteTextBuf & sAppStream); | 38 CPDF_Matrix* pUser2Device); |
40 » virtual void» » » » » RePosChildWnd();» | 39 virtual void GetThisAppearanceStream(CFX_ByteTextBuf& sAppStream); |
| 40 virtual void RePosChildWnd(); |
41 | 41 |
42 private: | 42 private: |
43 » void» » » » » » » SetParamByFlag()
; | 43 void SetParamByFlag(); |
44 | 44 |
45 private: | 45 private: |
46 » IFX_Edit*» » » » » » m_pEdit; | 46 IFX_Edit* m_pEdit; |
47 }; | 47 }; |
48 | 48 |
49 #endif | 49 #endif |
50 | |
51 | |
OLD | NEW |