InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CmdUtilsMacros.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Manish Jangir
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2019 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 // This header is for private use only.
24 //
25 //
26 //========================================================================================
27 
28 #ifndef __CMDUTILSMACROS__
29 #define __CMDUTILSMACROS__
30 
31 #define EXPANDER_IN(x) #x
32 
33 #define EXPANDER(x) EXPANDER_IN(x)
34 
35 #define LOCATION(S,L) EXPANDER(S) ":" EXPANDER(L)
36 
42 #define CMDUTILS_BEGINCOMMANDSEQ(S1,S2) CmdUtils::BeginCommandSequence(LOCATION(S1,S2))
43 
50 #define CMDUTILS_BEGINABORTABLECMDSEQ(S1,S2) CmdUtils::BeginAbortableCmdSeq(LOCATION(S1,S2))
51 
55 #define QACMDUTILS_BEGINCOMMANDSEQ(S1,S2) QACmdUtils::BeginCommandSequence(LOCATION(S1,S2))
56 
60 #define QACMDUTILS_BEGINABORTABLECMDSEQ(S1,S2) QACmdUtils::BeginAbortableCmdSeq(LOCATION(S1,S2))
61 
65 #define CONCAT_NAMES(S1,S2) LOCATION(S1,S2)
66 
67 #endif