InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StdHeightWidthConstants.h
1 ï»¿//========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Sanyam
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __StdHeightWidth__
32 #define __StdHeightWidth__
33 
34 
35 // Standard constants defining the typical width and height for different type of UI controls used in InDesign.
36 
37 //gaps
38 const uint32 kCC2016NudgeEditBoxGap = 0; // Gap between nudge control and edit box
39 const uint32 kCC2016CheckBoxTextGap = 19; // Gap between checkbox and associated text
40 const uint16 kCC2016StandardGapBetweenWidgets = 5; // Standard gap between any two controls
41 
42 // Height constants
43 const uint32 kCC2016StandardWidgetHeight = 21; // Standard height of any widget
44 const uint32 kCC2016NudgeControlHeight = kCC2016StandardWidgetHeight; // Standard height for nudge control associated with edit box
45 const uint32 kCC2016StandardButtonHeight = 26; // Standard height of any button widget
46 const uint32 kCC2016StdWidgetHeightNoApplyEve_Dialog = kCC2016StandardWidgetHeight; // MANISH TO ADD COMMENT HERE
47 const uint32 kCC2016ControlStripIconHeight = 26; // Standard height of control strip icons
48 const uint32 kCC2016PanelIconHeight = 24; // Standard height of panel icons
49 const uint32 kCC2016PanelTreeNodeHeight = (kCC2016StandardWidgetHeight + 1); // Standard height of tree node
50 const uint32 kCC2016PanelTreeNodeContentHeight = (kCC2016PanelTreeNodeHeight - 1); // Standard height of tree node's content
51 const uint32 kCC2016PanelTreeNodeSmallRowHeight = 16; // Standard height of smaller tree node
52 const uint32 kCC2016PanelTreeNodeContentSmallRowHeight = (kCC2016PanelTreeNodeSmallRowHeight - 1); // Standard height of smaller tree node's content
53 const uint32 kCC2016PanelTreeNodeWithThumbnailHeight = (40); // Standard height of tree node with thumbnail
54 const uint32 kCC2016PanelTreeNodeWithThumbnailContentHeight = (kCC2016PanelTreeNodeWithThumbnailHeight - 1); // Standard height of tree node's content with thumbnail
55 const uint32 kCC2016PanelTreeNodeWithLargeThumbnailHeight = (50); // Standard height of tree node with large thumbnail
56 const uint32 kCC2016PanelTreeNodeWithLargeThumbnailContentHeight = (kCC2016PanelTreeNodeWithLargeThumbnailHeight - 1); // Standard height of tree node's content with large thumbnail
57 const uint32 kCC2016PanelTreeNodeWithExtraLargeThumbnailHeight = (60); // Standard height of tree node with extra large thumbnail
58 const uint32 kCC2016PanelTreeNodeWithExtraLargeThumbnailContentHeight = (kCC2016PanelTreeNodeWithExtraLargeThumbnailHeight - 1); // Standard height of tree node's content with extra large thumbnail
59 const uint32 kCC2016PanelTreeNodeWithControlsHeight = (kCC2016PanelTreeNodeHeight + 2 * kCC2016StandardGapBetweenWidgets);
60 const uint32 kCC2016PanelStandardTreeWidgetHeight = (5*kCC2016PanelTreeNodeHeight); // Standard height of tree widget with 6 tree nodes
61 const uint32 kCC2016PanelWithTreeWidgetAndHeaderFooterHeight = (kCC2016PanelStandardTreeWidgetHeight + 2 * kCC2016PanelIconHeight); // Standard height of panel with tree widget and header/footer
62 const uint32 kCC2016PanelWithTreeWidgetAndFooterHeight = (kCC2016PanelStandardTreeWidgetHeight + kCC2016PanelIconHeight); // Standard height of panel with tree widget and footer
63 const uint32 kCC2016PanelWithTreeWidgetAndHeaderHeight = (kCC2016PanelStandardTreeWidgetHeight + kCC2016PanelIconHeight); // Standard height of panel with tree widget and header
64 const uint32 kCC2016InCopyControlStripHeight = 33; // Standard height of Incopy Control Strip
65 const uint32 kCC2016ProgressBarHeight = 15;
66 const uint32 kCC2016TreeNodeTitleRowHeight = 24;
67 
68 // Width constants
69 const uint32 kCC2016StandardWidgetWidth = 100; // Standard width of any widget
70 const uint32 kCC2016DropDownListWidth = 95; // Standard width of drop down list
71 const uint32 kCC2016NudgeControlWidth = 17; // Standard width of nudge control
72 const uint32 kCC2016SeparatorDefaultWidth = 1; // Standard width of separator
73 const uint32 kCC2016ControlStripIconWidth = 26; // Standard width of control strip icon
74 const uint32 kCC2016PanelIconWidth = 28; // Standard width of panel's icon
75 const uint32 kCC2016PanelPushIconWidth = 24; // Standard width of panel's pushable icon
76 const uint32 kCC2016PanelStandardWidth = 240; // Standard width of panels
77 const uint16 kCC2016PanelBottomResizeWidgetWidth = 15; // Standard width of resize widget in panels
78 const uint16 kCC2016ResizablePanelBottomBottomBarWidth = (kCC2016PanelStandardWidth - kCC2016PanelBottomResizeWidgetWidth); // Standard width for resizable panel's bottom bar
79 const uint16 kCC2016InlineEditBoxMinimumWidth = 120;
80 const uint32 kCC2016ProgressBarWidth = 310;
81 
82 // Owner drawn drop down constants.
83 const uint16 kCC2016ColorGroupAdjustment = 14.0; // MANISH TO ADD COMMENT HERE
84 const uint16 kCC2016OwnerDDItemLeftMargin = 4.0; // MANISH TO ADD COMMENT HERE
85 const uint16 kCC2016OwnerDDIconTextGap = 4.0; // MANISH TO ADD COMMENT HERE
86 
87 const uint16 kCC2016OwnerDrawDDItemMinWidth = 220.0; // MANISH TO ADD COMMENT HERE
88 const uint16 kCC2016OwnerDrawDDItemMaxWidth = 320.0; // MANISH TO ADD COMMENT HERE
89 const uint16 kCC2016OwnerDrawDDItemMinHeight = 21.0; // MANISH TO ADD COMMENT HERE
90 
91 
92 const double kCC2017SpectrumSliderThumbWidth = 12.0;
93 const double kCC2017SpectrumColorThumbHeight = 9.0;
94 
95 const double kCC2017SpectrumPopupSliderComboBoxWidth = 123.0;
96 const double kCC2017SpectrumPopupSliderComboBoxHeight = 29.0;
97 
98 const double kCC2017SpectrumPopupSliderComboBoxThumbWidth = 13.5;
99 const double kCC2017SpectrumPopupSliderComboBoxThumbHeight = 13.5;
100 
101 //Below are the constants used for the border info.
102 const int16 kLeftBorder = 1 << 0;
103 const int16 kRightBorder = 1 << 1;
104 const int16 kTopBorder = 1 << 2;
105 const int16 kBottomBorder = 1 << 3;
106 const int16 kAllBorder = kLeftBorder | kRightBorder | kTopBorder | kBottomBorder;
107 const int16 kInvalidBorderInfo = kAllBorder + 1;
108 
109 const int16 kCC2017SpectrumCornerRadius = 2;
110 const int16 kCC2017SpectrumScrollBarWidth = 13;
111 
112 
113 //Resizing gripper icon size for resizable dialogs
114 #define kResizingGripperIconSize 15
115 
116 #endif