| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 class IFWL_Widget; | 94 class IFWL_Widget; |
| 95 class CFDE_TextOut; | 95 class CFDE_TextOut; |
| 96 class IFX_Font; | 96 class IFX_Font; |
| 97 class IFX_FontMgr; | 97 class IFX_FontMgr; |
| 98 class CFWL_ArrowData; | 98 class CFWL_ArrowData; |
| 99 class CFWL_ThemeBackground; | 99 class CFWL_ThemeBackground; |
| 100 class CFWL_ThemePart; | 100 class CFWL_ThemePart; |
| 101 class CFWL_ThemeText; | 101 class CFWL_ThemeText; |
| 102 | 102 |
| 103 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 103 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 104 class IFX_FontSourceEnum; | 104 class CFX_FontSourceEnum_File; |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 class CFWL_WidgetTP { | 107 class CFWL_WidgetTP { |
| 108 public: | 108 public: |
| 109 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); | 109 virtual FX_BOOL IsValidWidget(IFWL_Widget* pWidget); |
| 110 virtual uint32_t GetThemeID(IFWL_Widget* pWidget); | 110 virtual uint32_t GetThemeID(IFWL_Widget* pWidget); |
| 111 virtual uint32_t SetThemeID(IFWL_Widget* pWidget, | 111 virtual uint32_t SetThemeID(IFWL_Widget* pWidget, |
| 112 uint32_t dwThemeID, | 112 uint32_t dwThemeID, |
| 113 FX_BOOL bChildren = TRUE); | 113 FX_BOOL bChildren = TRUE); |
| 114 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix); | 114 virtual FWL_ERR GetThemeMatrix(IFWL_Widget* pWidget, CFX_Matrix& matrix); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 uint16_t wCodePage); | 263 uint16_t wCodePage); |
| 264 IFX_Font* GetFont() const { return m_pFont; } | 264 IFX_Font* GetFont() const { return m_pFont; } |
| 265 | 265 |
| 266 protected: | 266 protected: |
| 267 CFX_WideString m_wsFamily; | 267 CFX_WideString m_wsFamily; |
| 268 uint32_t m_dwStyles; | 268 uint32_t m_dwStyles; |
| 269 uint32_t m_dwCodePage; | 269 uint32_t m_dwCodePage; |
| 270 IFX_Font* m_pFont; | 270 IFX_Font* m_pFont; |
| 271 IFX_FontMgr* m_pFontMgr; | 271 IFX_FontMgr* m_pFontMgr; |
| 272 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ | 272 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |
| 273 IFX_FontSourceEnum* m_pFontSource; | 273 CFX_FontSourceEnum_File* m_pFontSource; |
| 274 #endif | 274 #endif |
| 275 }; | 275 }; |
| 276 | 276 |
| 277 class CFWL_FontManager { | 277 class CFWL_FontManager { |
| 278 public: | 278 public: |
| 279 static CFWL_FontManager* GetInstance(); | 279 static CFWL_FontManager* GetInstance(); |
| 280 static void DestroyInstance(); | 280 static void DestroyInstance(); |
| 281 | 281 |
| 282 IFX_Font* FindFont(const CFX_WideStringC& wsFontFamily, | 282 IFX_Font* FindFont(const CFX_WideStringC& wsFontFamily, |
| 283 uint32_t dwFontStyles, | 283 uint32_t dwFontStyles, |
| 284 uint16_t dwCodePage); | 284 uint16_t dwCodePage); |
| 285 | 285 |
| 286 protected: | 286 protected: |
| 287 CFWL_FontManager(); | 287 CFWL_FontManager(); |
| 288 virtual ~CFWL_FontManager(); | 288 virtual ~CFWL_FontManager(); |
| 289 | 289 |
| 290 static CFWL_FontManager* s_FontManager; | 290 static CFWL_FontManager* s_FontManager; |
| 291 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; | 291 std::vector<std::unique_ptr<CFWL_FontData>> m_FontsArray; |
| 292 }; | 292 }; |
| 293 | 293 |
| 294 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ | 294 #endif // XFA_FWL_THEME_CFWL_WIDGETTP_H_ |
| OLD | NEW |