InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
SLCTileComposer.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 __SLCTileComposer_h__
25
#define __SLCTileComposer_h__
26
27
class
IComposeScanner
;
28
class
IDrawingStyle
;
29
class
SLCTileMeasure
;
30
43
class
SLCTileComposer
44
{
45
public
:
51
SLCTileComposer
(
IComposeScanner
* composeScanner,
52
const
PMReal
& xPosition,
53
const
TextIndex& startingIndex) :
54
fXPosition(xPosition),
55
fTextIndex(startingIndex),
56
fTextSpan(0),
57
fTextWidth(0.0),
58
fFitTextSpan(0),
59
fFitTextWidth(0.0)
60
{
61
fComposeScanner = composeScanner; fComposeScanner->
AddRef
();
62
}
63
66
virtual
~SLCTileComposer
(
void
)
67
{
68
if
(fComposeScanner != nil) fComposeScanner->
Release
();
69
}
70
88
virtual
SLComposerStatusCode
FlowTextByTileWidth
(
const
SLCTileMeasure
& tile,
SLCGlyphNodeList
& glyphNodeList);
89
103
virtual
SLComposerStatusCode
FlowTextByTileTextSpan
(
const
SLCTileMeasure
& tile,
SLCGlyphNodeList
& glyphNodeList);
104
107
inline
int32
GetTextSpan
(
void
)
const
108
{
109
return
fTextSpan;
110
}
111
114
inline
PMReal
GetTextWidth
(
void
)
const
115
{
116
return
fTextWidth;
117
}
118
122
inline
int32
GetFitTextSpan
(
void
)
const
123
{
124
return
fFitTextSpan;
125
}
126
131
inline
PMReal
GetFitTextWidth
(
void
)
const
132
{
133
return
fFitTextWidth;
134
}
135
136
private
:
139
IComposeScanner
* fComposeScanner;
140
143
const
PMReal
fXPosition;
144
147
const
TextIndex fTextIndex;
148
151
int32 fTextSpan;
152
155
PMReal
fTextWidth;
156
159
int32 fFitTextSpan;
160
163
PMReal
fFitTextWidth;
164
};
165
166
#endif // __SLCTileComposer_h__
167
168
// End, SLCTileComposer.h
169
tmpdoxygeninput
SLCTileComposer.h
Generated on Sat Jul 19 2025 02:54:18 for InDesign SDK by
1.8.3.1