InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ICounterControlData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Frits Habermann
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 __ICOUNTERCONTROLDATA__
25 #define __ICOUNTERCONTROLDATA__
26 
27 #include "widgetid.h"
28 
32 {
33 public:
34  enum { kDefaultIID = IID_ICOUNTERCONTROLDATA };
35 
39  virtual void SetMinimum(int32 min) = 0;
43  virtual void SetMaximum(int32 max) = 0;
44 
50  virtual void SetValue(int32 value, bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
51 
55  virtual void SetPageSize(int32 pageSize) = 0;
56 
57 
61  virtual int32 GetMinimum() const = 0;
62 
66  virtual int32 GetMaximum() const = 0;
67 
71  virtual int32 GetValue() const = 0;
72 
76  virtual int32 GetPageSize() const = 0;
77 
78 
84  virtual int32 Increment(bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
85 
91  virtual int32 Decrement(bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
92 
98  virtual int32 IncrementMultiple(bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
99 
105  virtual int32 DecrementMultiple(bool16 invalidate = kTrue, bool16 notifyOfChange = kTrue) = 0;
106 
107 
111  virtual int32 GetIncrement() const = 0;
112 
116  virtual int32 GetIncrementMultiple() const = 0;
117 
118 
122  virtual void SetIncrement(int32 increment) = 0;
123 
127  virtual void SetIncrementMultiple(int32 increment) = 0;
128 
129 };
130 
134 {
135 public:
137  CounterControlUpdateParams(int32 oldValue, int32 newValue, bool16 verticalOrientation = kFalse) :
138  fOldValue(oldValue),
139  fNewValue(newValue),
140  fIsVertical(verticalOrientation)
141  {
142  }
143 
145  int32 fOldValue;
147  int32 fNewValue;
149  bool16 fIsVertical;
150 };
151 
152 #endif