InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
LocaleIndex.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Michael Burbidge
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 __LocaleIndex_h__
25
#define __LocaleIndex_h__
26
27
#include "CoreResTypes.h"
28
#include "PMTypes.fh"
29
30
#ifdef __ODFRC__
31
34
type
LocaleIndex
(kLocaleIndexRsrcType)
35
{
38
longint;
39
42
longint = $$CountOf(LocaleEntries);
43
array LocaleEntries
44
{
48
integer;
49
52
integer;
53
56
longint;
57
}
58
};
59
60
#else
61
62
#include "PMLocaleId.h"
63
64
#ifdef PUBLIC_BUILD
65
#endif
66
67
class
PMLocaleIdEndianWrapper
68
{
69
public
:
70
typedef
base_type
data_type
;
71
72
operator
PMLocaleId
()
const
73
{
74
return
PMLocaleId
(fFeatureSetId, fUserInterfaceId);
75
}
76
77
private
:
78
ResourceEndianWrapper16<int16>
fFeatureSetId;
79
ResourceEndianWrapper16<int16>
fUserInterfaceId;
80
};
81
84
struct
LocaleIndexEntry
85
{
88
PMLocaleIdEndianWrapper
fLocaleId
;
89
ResourceEndianWrapper32<RsrcID>
fRsrcId;
90
};
91
97
class
LocaleIndex
98
{
99
public
:
103
RsrcType
GetRsrcType
()
const
{
return
fRsrcType; }
104
108
int32
GetLength
()
const
{
return
fLength; }
109
114
PMLocaleId
GetLocaleId
(int32 index)
const
{
return
fIndexEntry[index].
fLocaleId
; }
115
120
RsrcID
GetRsrcId
(int32 index)
const
{
return
fIndexEntry[index].fRsrcId; }
121
126
bool16
HasRsrcForLocale
(
const
PMLocaleId
& localeId)
const
;
127
132
RsrcID
GetRsrcIdForLocale
(
const
PMLocaleId
& localeId)
const
;
133
134
private
:
135
ResourceEndianWrapper32<RsrcType>
fRsrcType;
136
ResourceEndianWrapper32<int32>
fLength;
137
LocaleIndexEntry
fIndexEntry[1];
138
};
139
140
141
142
#endif // __ODFRC__
143
144
#endif // __LocaleIndex_h__
tmpdoxygeninput
LocaleIndex.h
Generated on Sat Jul 19 2025 02:54:17 for InDesign SDK by
1.8.3.1