InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
WidgetDefs.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 __WidgetDefs_h__
25 #define __WidgetDefs_h__
26 
27 #include "IconRsrcDefs.h"
28 
29 // ----- StaticTextWidget -----
30 
31 #define kAlignLeft 5 // don't use 0,1,2 so we can catch conflicts with bools more easily
32 #define kAlignCenter 6
33 #define kAlignRight 7
34 
35 // standard control sizes
36 #define kStdPaletteControlHeight 17
37 #define kStdDialogControlHeight 20
38 
39 #define kStdPushButtonWidth 80
40 
41 // name length - UI limit on named items (like style, layer, swatch names, etc)
42 #define kPMNamedItemMaxChars 100
43 
44 // ----- Resource IDs -----
45 #define kOwnerDrawDDListMDef 19998
46 
47 #define kWidgetActionResID 1000
48 #define kProgressBarDialogRsrcID 550
49 #define kProgressBar2DialogRsrcID 650
50 #define kWidgetStringsRsrcID 500
51 #define kWidgetStringsNoTransRsrcID 600
52 #define kControlSetDialogRsrcID 800
53 #define kControlSetDlgElementRsrcID 9900
54 #define kWarningWithDontShowDialogRsrcID 1100
55 #define kWarningWithDontShowCancelDialogRsrcID 1200
56 #define kAlertWithApplyAllDialogRsrcID 1300
57 #define kEffectsDlgTreePanelWidgetRsrcID 1400
58 #define kWarningWithCancelDialogRsrcID 1150
59 
60 #define kIconNew kNewObjectButtonIcon
61 #define kIconDelete kDeleteObjectButtonIcon
62 #define kIconCloudExport kMigrateToCreativeCloudIcon
63 #define kIconCloudExportMedium kMigrateToCreativeCloudMediumIcon
64 
65 #define kIconArrowUp kArrowUpButtonIcon
66 #define kIconArrowDown kArrowDownButtonIcon
67 
68 #define kCustomizeButtonIconId kCustomizeIcon, kApplicationPluginID // from the app
69 
70 enum EllipsizeStyle
71 {
72  kDontEllipsize = 9, // don't use 0,1,2,3 so we can catch conflicts with bools more easily
73  kEllipsizeEnd = 10,
74  kEllipsizeBeginning = 11,
75  kEllipsizeMiddle = 12
76 };
77 
78 enum InLineEditWidgetType
79 {
80  kEditbox = 13,
81  kDropdown = 14,
82  kCombobox = 15,
83  kSliderWidget = 16
84 };
85 
86 enum PageNameStyle
87 {
88  kAlternateLayoutNames = 2, // don't use 0,1,2,3 so we can catch conflicts with bools more easily
89  kSectionNames = 3,
90  kAlternateAndSectionNames = 4
91 };
92 
93 #endif