InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IStrokeSelectAttributes.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner:
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 // ADOBE CONFIDENTIAL
24 //
25 // Code modeled after PoxyWidget in the Transform Panel
26 //
27 //========================================================================================
28 
29 #ifndef __IStrokeSelectAttributes__
30 #define __IStrokeSelectAttributes__
31 
32 class PMLine;
33 
34 #include "IReferencePointData.h"
35 #include "widgetid.h"
36 
42 {
43 
44 public:
45  enum { kDefaultIID = IID_ISTROKESELECTATTRIBUTES };
46 
50  enum RectLines {
52  kNone = 0,
54  kLeft = 1,
56  kRight = 2,
58  kTop = 4,
60  kBottom = 8,
62  kOuterEdges = 15,
64  kHorizontalMiddle = 16,
66  kVerticalMiddle = 32,
68  kInnerEdges = 48,
70  kAllSides = 63,
71 
73  kTopRight = 9,
75  kTopLeft = 5,
77  kBottomRight = 10,
79  kBottomLeft = 6,
81  kTopMiddle = 17,
83  kBottomMiddle = 18,
85  kLeftMiddle = 36,
87  kRightMiddle = 40
88  };
89 
94  virtual const bool IsSelected(const IStrokeSelectAttributes::RectLines& position) const = 0;
95 
100  virtual const int32 GetSelected() const = 0;
101 
106  virtual void SetSelected(const IStrokeSelectAttributes::RectLines& position) = 0;
107 
112  virtual void SetSelectedValue(const IStrokeSelectAttributes::RectLines& position) = 0;
113 
117  virtual void ResetSelected() = 0;
118 
122  virtual void SelectAll() = 0;
123 
128  virtual int32 GetMostRecentSelection() const = 0;
129 
133  virtual bool16 DrawVertical() const = 0;
134 
138  virtual bool16 DrawBiDi() const = 0;
139 
144  virtual bool16 IsDrawn(const IStrokeSelectAttributes::RectLines& position) = 0;
145 
151  virtual void SetDrawnPosition(const IStrokeSelectAttributes::RectLines& position, bool16 drawVertical, bool16 drawBiDi = kFalse) = 0;
152 
156  virtual const int32 GetDrawnPositions() const = 0;
157 
162  virtual void DrawSingle(bool16 drawVertical, bool16 drawBiDi = kFalse) = 0;
163 
168  virtual void DrawDoubleVertical(bool16 drawVertical, bool16 drawBiDi = kFalse) = 0;
169 
174  virtual void DrawDoubleHorizontal(bool16 drawVertical, bool16 drawBiDi = kFalse) = 0;
175 
180  virtual void DrawAll(bool16 drawVertical, bool16 drawBiDi = kFalse) = 0;
181 
185  virtual void ResetDrawn(bool16 drawVertical, bool16 drawBiDi = kFalse) = 0;
186 
192  virtual const int32 GetSelectedNeighbors(const RectLines& line) const = 0;
193 
194  /*
195  False if you do not want to store the sides selected with the selection
196  Ex: Cell Fill Pane
197  */
198  virtual void SetStoreSidesWithSelection(bool16) = 0;
199 
200 };
201 
202 #endif //define __IStrokeSelectAttributes__
203