InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CellTable.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Adobe Developer Technologies
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 __CELLTABLE_H__
25 #define __CELLTABLE_H__
26 
27 #include "WideString.h"
28 
29 extern const WideString kNullWideString;
30 
37 class CellData {
38  public:
42  CellData();
46  ~CellData();
47 
51  bool SetString(const WideString& str);
54  const WideString& GetString(void);
55 
56  protected:
57  private:
58  WideString string;
59 };
60 
61 
69 class CellTable {
70  public:
76  CellTable(int32 numColumn, int32 numRow);
77 
81  ~CellTable();
82 
88  bool SetString(const WideString& str, int32 column, int32 row);
89 
94  const WideString& GetString(int32 column, int32 row);
95 
96  private:
97  int32 maxColumn, maxRow;
98  CellData* table;
99 
100 };
101 
102 #endif // __CELLTABLE_H__
103 
104 //End, CellTable.h