InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CProxyScript.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jonathan W. Brown
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __CProxyScript__
25 #define __CProxyScript__
26 
27 #include "CScript.h"
28 
29 class CProxyScript : public CScript
30 {
31 public:
32  CProxyScript( IPMUnknown* boss ) ;
33  ~CProxyScript() ;
34 
36  virtual ScriptID GetObjectType( const RequestContext& context ) const ;
37 
42  virtual void SetObjectType( const ScriptID& objectType, const RequestContext& context ) ;
43 
47  virtual IDataBase* GetDataBase( const RequestContext& context ) const ;
48 
50  virtual ScriptObject GetScriptObject( const RequestContext& context ) const ;
51 
53  virtual IPMUnknown* QueryParent( const PMIID& iid, const RequestContext& context ) const ;
54 
56  virtual bool16 HasBeenDeleted( const RequestContext& context ) ;
57 
59  virtual bool16 IsEqual( const IScript* script, const RequestContext& context ) const ;
60 
67  virtual void SetTag( const ScriptLabelKey& key, const ScriptLabelValue& value ) ;
68  using CScript::SetTag; // needed to defeat C++ name lookup rules, to allow looking in base class for function with same name as one here
69 
70 protected:
71  ScriptID fObjectType ;
72 } ;
73 
74 #endif