InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IJustificationStyle.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: eric_menninga
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 __IJustificationStyle__
25
#define __IJustificationStyle__
26
27
28
#include "IPMUnknown.h"
29
#include "IWaxLine.h"
30
#include "TextID.h"
31
32
39
class
IJustificationStyle
:
public
IPMUnknown
40
{
41
public
:
42
enum
{ kDefaultIID = IID_IJUSTIFICATIONSTYLE };
43
44
enum
JustificationMethod
{
49
kJustifMethodDefault
= 0,
54
kJustifMethodArabic
,
60
kJustifMethodNaskh
,
66
kJustifMethodTraditionalNaskhTatweel
,
72
kJustifMethodTraditionalNaskhKashida
,
78
kJustifMethodTraditionalNaskhTatweelFrac
,
84
kJustifMethodTraditionalNaskhKashidaFrac
85
};
86
87
91
virtual
void
SetKernAfter
(
PMReal
kern) = 0;
92
96
virtual
PMReal
GetKernAfter
()
const
= 0;
97
102
virtual
JustificationMethod
GetJustificationMethod
()
const
= 0;
107
virtual
void
SetJustificationMethod
(
JustificationMethod
justMethod) = 0;
108
112
virtual
PMReal
GetAlteredWordspace
()
const
= 0;
113
117
virtual
PMReal
GetAlteredLetterspace
(bool16 isVertical)
const
= 0;
118
123
virtual
void
SetMinWordspace
(
PMReal
min) = 0;
124
129
virtual
void
SetMaxWordspace
(
PMReal
max) = 0;
130
135
virtual
void
SetDesiredWordspace
(
PMReal
desired) = 0;
136
141
virtual
void
SetMinLetterspace
(
PMReal
min) = 0;
142
147
virtual
void
SetMaxLetterspace
(
PMReal
max) = 0;
148
153
virtual
void
SetDesiredLetterspace
(
PMReal
desired) = 0;
154
158
virtual
void
SetMinGlyphscale
(
PMReal
min) = 0;
159
163
virtual
void
SetMaxGlyphscale
(
PMReal
max) = 0;
164
168
virtual
void
SetDesiredGlyphscale
(
PMReal
desired) = 0;
169
174
virtual
void
GetWordspace
(
PMReal
*min,
PMReal
*des,
PMReal
*max)
const
= 0;
179
virtual
void
GetLetterspace
(
PMReal
*min,
PMReal
*des,
PMReal
*max)
const
= 0;
184
virtual
void
GetGlyphscale
(
PMReal
*min,
PMReal
*des,
PMReal
*max)
const
= 0;
185
186
// unused at this time
187
virtual
bool16 GetAutoQuadding()
const
= 0;
188
virtual
void
SetAutoQuadding(bool16 b) = 0;
189
193
virtual
void
SetLigaturesBreakBelow
(
PMReal
below) = 0;
197
virtual
void
SetLigaturesBreakAbove
(
PMReal
above) = 0;
198
201
virtual
PMReal
GetLigaturesBreakBelow
()
const
= 0;
204
virtual
PMReal
GetLigaturesBreakAbove
()
const
= 0;
205
209
virtual
bool16
LigaturesAllowed
(bool16 isVertical)
const
= 0;
210
217
virtual
double
GetLastLineLengthPenalty
(
double
width,
double
target)
const
= 0;
218
226
virtual
double
GetLineConsistencyPenalty
(IWaxLine::LineTightness prevLine,
227
IWaxLine::LineTightness thisLine,
228
double
capheight)
const
= 0;
229
234
virtual
PMReal
GetKashidaWidth
()
const
= 0;
239
virtual
void
SetKashidaWidth
(
PMReal
width) = 0;
240
241
};
242
243
#endif
244
// __IJustificationStyle__
245
tmpdoxygeninput
IJustificationStyle.h
Generated on Sat Jul 19 2025 02:54:14 for InDesign SDK by
1.8.3.1