| 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 XFA_FWL_THEME_CFWL_WIDGETTP_H_ |    7 #ifndef XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 
|    8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ |    8 #define XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 
|    9  |    9  | 
|   10 #include <memory> |   10 #include <memory> | 
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   86   VSepWidth, |   86   VSepWidth, | 
|   87   WeekHeight, |   87   WeekHeight, | 
|   88   WeekNumHeight, |   88   WeekNumHeight, | 
|   89   WeekNumWidth, |   89   WeekNumWidth, | 
|   90   WeekWidth, |   90   WeekWidth, | 
|   91   Width |   91   Width | 
|   92 }; |   92 }; | 
|   93  |   93  | 
|   94 class CFDE_TextOut; |   94 class CFDE_TextOut; | 
|   95 class CFGAS_GEFont; |   95 class CFGAS_GEFont; | 
|   96 class CFWL_ArrowData; |  | 
|   97 class CFWL_ThemeBackground; |   96 class CFWL_ThemeBackground; | 
|   98 class CFWL_ThemePart; |   97 class CFWL_ThemePart; | 
|   99 class CFWL_ThemeText; |   98 class CFWL_ThemeText; | 
|  100 class IFGAS_FontMgr; |   99 class IFGAS_FontMgr; | 
|  101 class IFWL_Widget; |  100 class IFWL_Widget; | 
|  102  |  101  | 
|  103 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |  102 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 
|  104 class CFX_FontSourceEnum_File; |  103 class CFX_FontSourceEnum_File; | 
|  105 #endif |  104 #endif | 
|  106  |  105  | 
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  226   uint32_t m_dwValue; |  225   uint32_t m_dwValue; | 
|  227   CFX_RectF m_rtMargin; |  226   CFX_RectF m_rtMargin; | 
|  228   uint32_t m_dwThemeID; |  227   uint32_t m_dwThemeID; | 
|  229   CFX_Matrix _ctm; |  228   CFX_Matrix _ctm; | 
|  230 }; |  229 }; | 
|  231 FX_BOOL FWLTHEME_Init(); |  230 FX_BOOL FWLTHEME_Init(); | 
|  232 void FWLTHEME_Release(); |  231 void FWLTHEME_Release(); | 
|  233 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); |  232 uint32_t FWL_GetThemeLayout(uint32_t dwThemeID); | 
|  234 uint32_t FWL_GetThemeColor(uint32_t dwThemeID); |  233 uint32_t FWL_GetThemeColor(uint32_t dwThemeID); | 
|  235  |  234  | 
|  236 class CFWL_ArrowData { |  | 
|  237  public: |  | 
|  238   static CFWL_ArrowData* GetInstance(); |  | 
|  239   static FX_BOOL IsInstance(); |  | 
|  240   static void DestroyInstance(); |  | 
|  241   virtual ~CFWL_ArrowData(); |  | 
|  242   void SetColorData(uint32_t dwID); |  | 
|  243  |  | 
|  244   class CColorData { |  | 
|  245    public: |  | 
|  246     FX_ARGB clrBorder[4]; |  | 
|  247     FX_ARGB clrStart[4]; |  | 
|  248     FX_ARGB clrEnd[4]; |  | 
|  249     FX_ARGB clrSign[4]; |  | 
|  250   } * m_pColorData; |  | 
|  251  |  | 
|  252  protected: |  | 
|  253   CFWL_ArrowData(); |  | 
|  254   static CFWL_ArrowData* m_pInstance; |  | 
|  255 }; |  | 
|  256  |  | 
|  257 class CFWL_FontData { |  235 class CFWL_FontData { | 
|  258  public: |  236  public: | 
|  259   CFWL_FontData(); |  237   CFWL_FontData(); | 
|  260   virtual ~CFWL_FontData(); |  238   virtual ~CFWL_FontData(); | 
|  261   FX_BOOL Equal(const CFX_WideStringC& wsFontFamily, |  239   FX_BOOL Equal(const CFX_WideStringC& wsFontFamily, | 
|  262                 uint32_t dwFontStyles, |  240                 uint32_t dwFontStyles, | 
|  263                 uint16_t wCodePage); |  241                 uint16_t wCodePage); | 
|  264   FX_BOOL LoadFont(const CFX_WideStringC& wsFontFamily, |  242   FX_BOOL LoadFont(const CFX_WideStringC& wsFontFamily, | 
|  265                    uint32_t dwFontStyles, |  243                    uint32_t dwFontStyles, | 
|  266                    uint16_t wCodePage); |  244                    uint16_t wCodePage); | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|  288  |  266  | 
|  289  protected: |  267  protected: | 
|  290   CFWL_FontManager(); |  268   CFWL_FontManager(); | 
|  291   virtual ~CFWL_FontManager(); |  269   virtual ~CFWL_FontManager(); | 
|  292  |  270  | 
|  293   static CFWL_FontManager* s_FontManager; |  271   static CFWL_FontManager* s_FontManager; | 
|  294   std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |  272   std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 
|  295 }; |  273 }; | 
|  296  |  274  | 
|  297 #endif  // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |  275 #endif  // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 
| OLD | NEW |