InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
XMLContentReference.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Will Lin
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 __XMLContentReference__
25
#define __XMLContentReference__
26
27
28
#include "TableTypes.h"
29
#include "IXMLElementCommands.h"
30
31
32
class
IPMStream
;
33
class
IXMLReferenceData
;
34
class
ITableModel
;
35
40
class
XMLContentReference
{
41
public
:
43
typedef
base_type
data_type
;
44
45
47
enum
ContentType
{
48
kContentType_Text = 0,
49
kContentType_PageItem
,
50
kContentType_Table
,
51
kContentType_TableGrid
,
52
kContentType_TableCell
,
53
kContentType_NoContent
54
};
55
56
61
XMLContentReference
();
62
66
XMLContentReference
(
const
UIDRef
& baseUIDRef,
const
GridID
& gridID = kInvalidGridID);
67
71
XMLContentReference
(
const
UIDRef
& baseUIDRef,
const
GridID
& startGrid,
const
GridSpan
& span);
72
76
XMLContentReference
(
const
XMLContentReference
& other);
77
78
84
ContentType
GetContentType
()
const
;
85
89
const
UIDRef
&
GetUIDRef
()
const
;
90
94
void
SetUIDRef
(
const
UIDRef
& uidRef);
95
99
UID
GetUID
()
const
;
100
104
void
SetUID
(
UID
uid);
105
109
IDataBase
*
GetDataBase
()
const
;
110
114
void
SetDataBase
(
IDataBase
*db);
115
119
GridAddress
GetGridAddress
(
const
ITableModel
*tableModel)
const
;
120
124
const
GridID
&
GetGridID
()
const
;
125
129
void
SetGridID
(
GridID
gridID);
130
131
135
const
GridSpan
&
GetSpan
()
const
;
136
140
void
SetSpan
(
const
GridSpan
& span);
141
146
GridArea
GetGridArea
(
ITableModel
*tableModel)
const
;
147
149
void
SetNoContent
(
void
);
150
156
IXMLReferenceData
*
Instantiate
()
const
;
157
161
bool16
IsInline
()
const
;
162
166
bool16
IsTable
()
const
;
167
171
bool16
IsTableCell
()
const
;
172
176
bool16
IsTableGrid
()
const
;
177
181
bool16
IsNoContent
()
const
;
182
186
bool16
IsTableCellPlacedPageItem
()
const
;
187
194
void
ReadWrite
(
IPMStream
*s,
IDataBase
*db = nil);
195
200
bool16
operator ==
(
const
XMLContentReference
& other)
const
;
201
206
inline
bool16
operator !=
(
const
XMLContentReference
& compareAgainst)
const
207
{
return
(!(*
this
== compareAgainst)); }
208
213
bool16
operator <
(
const
XMLContentReference
& compareAgainst)
const
;
214
215
void
SetTableTagPreference(
IXMLElementCommands::TableTagPreference
newSetting)
216
{ fTableGridSetting = newSetting; }
217
IXMLElementCommands::TableTagPreference
GetTableTagPreference()
const
218
{
return
fTableGridSetting; }
219
220
private
:
221
UIDRef
fBaseUIDRef;
222
GridID
fGridID;
223
GridSpan
fSpan;
224
bool16 fIsGrid;
225
IXMLElementCommands::TableTagPreference
fTableGridSetting;
226
bool16 fHasNoContent;
227
};
228
229
DECLARE_BASE_TYPE(
XMLContentReference
);
// no special copy
230
231
232
const
XMLContentReference
kInvalidXMLContentReference;
233
234
235
#endif // __XMLContentReference__
236
tmpdoxygeninput
XMLContentReference.h
Generated on Sat Jul 19 2025 02:54:24 for InDesign SDK by
1.8.3.1