InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CBooleanControlDataObserver.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Tom Taylor
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 __CBOOLEANCONTROLDATAOBSERVER__
25 #define __CBOOLEANCONTROLDATAOBSERVER__
26 
27 #include "CObserver.h"
28 #include "HelperInterface.h"
29 #include "ShuksanID.h"
30 
31 //----------------------------------------------------------------------------------------
32 // Class Info
33 //----------------------------------------------------------------------------------------
34 
35 
36 #ifdef ID_DEPRECATED
37 
40 class CBooleanControlDataObserver : public CObserver
41 {
42  public:
43  CBooleanControlDataObserver(IPMUnknown *boss, PMIID interfaceID = IID_IOBSERVER);
44  virtual ~CBooleanControlDataObserver();
45 
46  virtual void Update(const ClassID& theChange, ISubject* theSubject, const PMIID& protocol, void* changedBy) ;
47 
48  virtual void AutoAttach();
49  // If the observer knows who to attach itself to, it'll do so with this call
50 
51  virtual void AutoDetach();
52  // If the observer knows who to detach itself from, it'll do so with this call
53 
54  protected:
55 
56  // Clients should override DoBooleanUpdate to do the heart of the work when
57  // the boolean control changes state.
58  virtual void DoBooleanUpdate(bool16 selected);
59 
60 
61 };
62 #endif
63 
64 
65 #endif