InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
PreferenceUtils.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Tommy Donovan
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 __PreferenceUtils__
25
#define __PreferenceUtils__
26
27
class
IPMUnknown
;
28
class
IActiveContext
;
29
30
31
template
<
class
FACE>
32
inline
FACE* QuerySessionPreferences()
33
{
34
IPMUnknown
* face = QuerySessionPreferences(FACE::kDefaultIID);
35
36
return
static_cast<
FACE*
>
(face);
37
}
38
39
// ---- Query for a preferences interface from either the workspace of the document
40
// or Session, whichever is active.
41
IPMUnknown
* QueryPreferences(
PMIID
prefInterfaceID,
IActiveContext
* activeContext);
42
43
// ---- Query for a preferences interface in the session workspace.
44
IPMUnknown
* QuerySessionPreferences(
PMIID
prefInterfaceID);
45
46
// ---- Query for a preferences interface in the workspace of the document in which
47
// "object" resides.
48
IPMUnknown
* QueryPreferences(
PMIID
prefInterfaceID,
const
IPMUnknown
*
object
);
49
IPMUnknown
* QueryPreferences(
PMIID
prefInterfaceID,
const
UIDRef
& ref);
50
51
52
#endif
tmpdoxygeninput
PreferenceUtils.h
Generated on Sat Jul 19 2025 02:54:17 for InDesign SDK by
1.8.3.1