InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITableTextSelection.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 __ITABLETEXTSELECTION__
25 #define __ITABLETEXTSELECTION__
26 
27 #include "IPMUnknown.h"
28 #include "TablesUIID.h"
29 #include "TableTypes.h"
30 
31 class ITableModel;
32 
40 {
41 public:
42  enum { kDefaultIID = IID_ITABLETEXTSELECTION };
43 
45  enum WhatToSelect {
49  kEnd,
51  kAll,
58 
69  virtual void SelectTextInCell(const ITableModel *tableModel, const GridAddress& cell, WhatToSelect whatToSelect = kStart, int32 index = -1) = 0;
70 
74  virtual bool16 IsTableSelection() const = 0;
75 
81  virtual GridArea GetSelection() const = 0;
82 
86  virtual TextIndex GetIndexOfLastCharInCell() const = 0;
87 
91  virtual TextIndex GetIndexOfFirstCharInCell() const = 0;
92 
96  virtual TextIndex GetFirstSelectedTextIndex(void) const = 0;
97 
101  virtual TextIndex GetLastSelectedTextIndex(void) const = 0;
102 };
103 
104 
105 #endif //__ITABLETEXTSELECTION__