InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
QuickApplyFindListNode.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Kevin Van Wiel
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 __QUICKAPPLYFINDLISTNODE__
25 #define __QUICKAPPLYFINDLISTNODE__
26 
27 #include "IPMUnknown.h"
28 #include "FindChangeID.h"
29 #include "K2Vector.h"
30 #include "WidgetDefs.h"
31 #include "widgetid.h"
32 #include "SysControlIds.h"
33 
34 class PMString;
35 
41 {
42  public:
43  typedef object_type data_type;
44 
50  fName(""),
51  fType(kStandardTreeNodeChildWidgetIconRsrcID),
52  fPluginID(kApplicationRsrcPluginID),
53  fIconRsrcID(kStandardTreeNodeChildWidgetIconRsrcID),
54  fReference(0),
55  fEllipseStyle(kEllipsizeEnd) {}
56 
63  {
64  this->fName = node.fName;
65  this->fType = node.fType;
66  this->fPluginID = node.fPluginID;
67  this->fIconRsrcID = node.fIconRsrcID;
68  this->fReference = node.fReference;
69  this->fEllipseStyle = node.fEllipseStyle;
70  }
71 
82  QuickApplyFindListNode(PMString name, uint32 type, PluginID pluginID, RsrcID iconRsrcID, uint32 reference, EllipsizeStyle ellipseStyle)
83  { fName = name; fType = type; fPluginID = pluginID; fIconRsrcID = iconRsrcID;
84  fReference = reference; fEllipseStyle = ellipseStyle; }
85 
90 
95  {
96  this->fName = node.fName;
97  this->fType = node.fType;
98  this->fPluginID = node.fPluginID;
99  this->fIconRsrcID = node.fIconRsrcID;
100  this->fReference = node.fReference;
101  this->fEllipseStyle = node.fEllipseStyle;
102 
103  return *this;
104  }
105 
109  inline bool16 operator == (const QuickApplyFindListNode &node) { return (this->fName == node.fName && this->fType == node.fType &&
110  this->fPluginID == node.fPluginID && this->fIconRsrcID == node.fIconRsrcID &&
111  this->fReference == node.fReference && this->fEllipseStyle == node.fEllipseStyle); }
112 
117 
121  uint32 fType;
122 
127 
131  RsrcID fIconRsrcID;
132 
136  uint32 fReference;
137 
141  EllipsizeStyle fEllipseStyle;
142 };
143 
144 
145 
146 #endif // __QUICKAPPLYFINDLISTNODE__