InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
SwatchesObserver.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: SusanCL
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
// Class definition for SwatchesObserver.
24
// TODO: Move to private/includes
25
//
26
//========================================================================================
27
28
#ifndef __SwatchesObserverr__
29
#define __SwatchesObserverr__
30
31
#include "CObserver.h"
32
33
class
ISubject
;
34
class
UIDRef
;
35
class
IGraphicStateRenderObjects
;
36
37
//========================================================================================
38
// Class Definition
39
//========================================================================================
46
class
SwatchesObserver
:
public
CObserver
47
{
48
public
:
49
// ----- Initialization -----
50
51
SwatchesObserver
(
IPMUnknown
*boss);
52
virtual
~
SwatchesObserver
();
53
60
virtual
void
Update
(
const
ClassID
& theChange,
ISubject
* theSubject,
61
const
PMIID
& protocol,
void
* changedBy);
65
virtual
void
AutoAttach
();
69
virtual
void
AutoDetach
();
70
71
72
73
protected
:
84
virtual
bool16
UpdateSwatchesUIDData
(
IGraphicStateRenderObjects
* iGfxStateRenderObjects,
const
ClassID
& theChange);
85
95
virtual
bool16
UpdateRenderObject
(
IGraphicStateRenderObjects
* iGfxStateRenderObjects,
ClassID
targetRenderObjectClassID,
UID
targetRenderingUID,
UID
prevRenderingUID);
96
105
virtual
bool16
ApplyRenderObjectAttributes
(
IDataBase
* iDataBase,
UID
targetRenderingUID,
UID
prevRenderingUID, bool16 swatchIsUniqueSelection = kFalse);
112
virtual
bool16
ProcessGraphicStateChanges
(
IGraphicStateRenderObjects
* iGfxStateRenderObjects,
UIDRef
swatchRef,
const
ClassID
& theChange);
113
116
PMIID
fAttachAsIID
;
119
PMIID
fAttachToIID
;
120
121
private
:
129
bool16 ClearEveryBlock (
IGraphicStateRenderObjects
* iGfxStateRenderObjects,
UIDRef
swatchRef,
const
ClassID
& theChange);
130
138
bool16 HandleRenderObjectChanged (
IGraphicStateRenderObjects
* iGfxStateRenderObjects,
UIDRef
swatchRef,
const
ClassID
& theChange);
139
143
void
LogColorBookAndName();
144
145
};
146
147
148
#endif // SwatchesObserver
tmpdoxygeninput
SwatchesObserver.h
Generated on Sat Jul 19 2025 02:54:18 for InDesign SDK by
1.8.3.1