InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITableNavigatorSuite.h
1 //========================================================================================
2 //
3 // $File:$
4 //
5 // Owner: Danielle Bessette
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 __ITableNavigatorSuite__
25 #define __ITableNavigatorSuite__
26 
27 #include "IPMUnknown.h"
28 #include "IPMUnknown.h"
29 #include "TablesUIID.h"
30 #include "TableTypes.h"
31 #include "ITableSelectionSuite.h"
32 
33 class ITableModel;
34 
36 {
37 public:
38  enum { kDefaultIID = IID_ITABLENAVIGATOR_SUITE };
39 
43  enum Direction { kInvalidDirection, kNext, kPrev, kUp, kDown, kLeft, kRight, kStartCol, kEndCol, kFirstFrameRow, kLastFrameRow, kStartRow, kEndRow };
44 
51  virtual void MoveSelection(Direction direction, ITableSelectionSuite::SelectAction selectionAction) = 0;
52 
56  virtual Direction GetLastDirection() = 0;
57  virtual void SetLastDirection(Direction direction) = 0;
58 
61  virtual GridAddress GetAnchor() const = 0;
62  virtual void SetAnchor(const GridAddress anchor) = 0;
63 
67  virtual TextIndex GetAnchorTextIndex() const = 0;
68  virtual void SetAnchorTextIndex(const TextIndex anchorIndex) = 0;
69 
73  virtual Direction GetInitalDirection() const = 0;
74  virtual void SetInitalDirection(Direction direction) = 0;
75 };
76 
77 
78 #endif