Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / xfa / src / fwl / src / core / include / fwl_targetimp.h
1 // Copyright 2014 PDFium Authors. All rights reserved.\r
2 // Use of this source code is governed by a BSD-style license that can be\r
3 // found in the LICENSE file.\r
4 \r
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com\r
6 \r
7 #ifndef _FWL_TARGET_IMP_H\r
8 #define _FWL_TARGET_IMP_H\r
9 class IFWL_Target;\r
10 class CFWL_Target;\r
11 class CFWL_Target : public CFX_Object\r
12 {\r
13 public:\r
14     virtual FX_DWORD            Release();\r
15     virtual IFWL_Target*        Retain();\r
16     virtual     FX_DWORD                GetRefCount() const;\r
17     virtual FWL_ERR                     GetClassName(CFX_WideString &wsClass) const;\r
18     virtual FX_DWORD            GetClassID() const;\r
19     virtual FX_BOOL                     IsInstance(FX_WSTR wsClass) const;\r
20     virtual FWL_ERR                     Initialize();\r
21     virtual FWL_ERR                     Finalize();\r
22 protected:\r
23     CFWL_Target();\r
24     virtual ~CFWL_Target();\r
25     FX_DWORD    m_dwRefCount;\r
26 };\r
27 class IFWL_TargetData : public IFWL_Target\r
28 {\r
29 public:\r
30     FX_LPVOID GetData();\r
31     void          SetData(FX_LPVOID pData);\r
32 };\r
33 #endif\r