InDesign SDK
20.5
InDesign SDK
Documentation
Bosses
Sample plug-ins
Class Index
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
IXReferenceUID.h
1
//========================================================================================
2
//
3
// $File$
4
//
5
// Owner: Edmund Lui
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
// Data interface for copying page items.
24
//
25
//========================================================================================
26
27
#ifndef __IXReferenceUID__
28
#define __IXReferenceUID__
29
30
#include "IPMUnknown.h"
31
#include "ShuksanID.h"
32
#include "ISession.h"
33
34
class
ICommand
;
35
68
class
IXReferenceUID
:
public
IPMUnknown
69
{
70
public
:
71
enum
{ kDefaultIID = IID_IXREFERENCEUID };
72
78
virtual
int32
BeginXRefSession
(
IDataBase
*pSrcDB,
IDataBase
*pDestDB) = 0;
79
83
virtual
int32
EndXRefSession
() = 0;
84
87
virtual
IDataBase
*
GetSrcDB
() = 0;
88
91
virtual
IDataBase
*
GetDestDB
() = 0;
92
93
// Need to migrate the functionality below into a reponder the responds
100
virtual
UID
GetDestUID
(
IDataBase
*pSrcDB,
IDataBase
*pDestDB,
UID
srcID) = 0;
101
108
virtual
void
BindSrcAndDestUID
(
IDataBase
*pSrcDB,
IDataBase
*pDestDB,
UID
srcUID,
UID
destUID) = 0;
109
110
// NOT RECOMMENDED FOR CASUAL USE!
111
// jwb 1/20/00: not yet ready for prime time; causes problems like 332917 and 334428
112
// ddarling 7/9/04: Added back to the public interface for a nasty case with the object styles ref conversion which deletes
113
// a UID in a deferred command during the ending of the xref session. The problem is when the UID is
114
// deleted we need to remove it from the XRef session cache
115
virtual
void
UnbindSrcUID(
IDataBase
* pSrcDB,
IDataBase
* pDestDB,
UID
srcUID ) = 0 ;
116
124
virtual
ICommand
*
GetDeferredCmd
(
IDataBase
*pSrcDB,
IDataBase
*pDestDB,
UID
srcID)
const
= 0;
125
133
virtual
void
BindDeferredCmd
(
IDataBase
*pSrcDB,
IDataBase
*pDestDB,
UID
srcID,
ICommand
*pCmd) = 0;
134
135
} ;
136
139
class
BeginEnd_XrefSession
140
{
141
public
:
142
BeginEnd_XrefSession
(
IDataBase
* srcDB,
IDataBase
* destDB):
143
fXRef(GetExecutionContextSession(),IID_IXREFERENCEUID)
144
{
145
if
( fXRef )
146
fXRef->
BeginXRefSession
(srcDB, destDB);
147
}
148
~
BeginEnd_XrefSession
()
149
{
150
if
( fXRef )
151
fXRef->
EndXRefSession
();
152
}
153
private
:
154
InterfacePtr<IXReferenceUID>
fXRef;
155
};
156
157
#endif // __IXReferenceUID__
tmpdoxygeninput
IXReferenceUID.h
Generated on Sat Jul 19 2025 02:54:17 for InDesign SDK by
1.8.3.1