InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISetDrawOptionOverrideCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Dave Stephens
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 // Purpose: This Data interface is used to set an object level override of the IDrawOptions
24 // on a pageitem.
25 //
26 //========================================================================================
27 
28 #ifndef __ISetDrawOptionOverrideCmdData__
29 #define __ISetDrawOptionOverrideCmdData__
30 
31 #include "IDrawOptionOverrides.h"
32 #include "GenericID.h"
33 
35 {
36 public:
37  DisplayOptionRange(): fnStart(0), fnCount(0), fnOption(0) {}
38  DisplayOptionRange(const DisplayOptionRange& r): fnStart(r.fnStart), fnCount(r.fnCount), fnOption(r.fnOption) {}
39 public:
40  uint32 fnOption;
41  int32 fnStart;
42  int32 fnCount;
43 };
44 
62 {
63 public:
64  enum { kDefaultIID = IID_ISETDRAWOPTIONOVERRIDECMDDATA };
65 
71  virtual void SetDisplayOption(uint32 displayOption) = 0;
72 
75  virtual uint32 GetDisplayOption() const = 0;
76 
79  virtual void ClearOptionRange() = 0;
80  virtual void AppendOptionRange( const DisplayOptionRange& range ) = 0;
81  virtual int32 GetOptionRangeCount() const = 0;
82  virtual DisplayOptionRange GetNthDisplayOptionRange(int32 n) const = 0;
83 
89  virtual IDrawOptionOverrides::OverrideLocation GetOverrideLocation() const = 0;
90 };
91 
92 #endif // __ISetDrawOptionOverrideCmdData__