InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ISelectUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
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 __ISelectUtils__
25 #define __ISelectUtils__
26 
27 #include "AppFrameworkID.h"
28 #include "IPMUnknown.h"
29 #include "Utils.h"
30 
31 #include "IShape.h"
32 #include "PMRect.h"
33 #include "PathSelectionList.h"
34 #include "HitTestDragConstants.h"
35 #include "ISelectionMessages.h"
36 
37 class ICommand;
38 class UIDList;
39 class ITextFocus;
40 class IFocusCache;
41 class IPMUnknown;
42 class IUIDListData;
43 class RangeData;
44 class ISelectionManager;
45 
46 
47 
48 #ifdef ID_DEPRECATED
49 
51 class ISelectUtils : public IPMUnknown
52 {
53 public:
54  enum { kDefaultIID = IID_ISELECTUTILS };
55 
56  // These 2 will go away when Shawn unifies the TextSelectionSuite
57 
58 #if 0
59 
61  virtual ICommand* SelectTextRange( const UIDRef& model, const RangeData& rangeToSelect,
62  //if doScroll is kScrollIntoView and scrollSpot is nil then scrollSpot defaults to MidPoint(rangeToSelect)
63  Selection::ScrollChoice doScroll, const RangeData* scrollSpot,
64  //if selMgr is non-nil, then view is ignored
65  //if selMgr is nil, then the view's selMgr is used,
66  //if view is nil, then the session's active selMgr is used for now--later I'll assert.
67  ISelectionManager* selMgr, IControlView* view
68  ) = 0;
69 #endif
70 
73  virtual ErrorCode ProcessSelectText( const UIDRef& model, const RangeData& rangeToSelect,
74  Selection::ScrollChoice doScroll, const RangeData* scrollSpot,
75  ISelectionManager* selMgr, IControlView* view
76  ) = 0;
77 
80  virtual void GoToTextWithMarker(UIDRef &textStory, TextIndex nStart, int32 nnCount) = 0;
81 
82 };
83 
84 #endif // ID_DEPRECATED
85 
86 #endif // __ISelectUtils__