xref: /AOO41X/main/chart2/source/controller/dialogs/dlg_DataEditor.src (revision 2f5315951371201eb1e2aa2861820b5efe289fe3)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "dlg_DataEditor.hrc"
25#include "SchSlotIds.hxx"
26#include "HelpIds.hrc"
27
28// Mask Color for standard images
29#define IMAGE_BUTTON_STD_MASK_COLOR Color { Red = 0xff00; Green = 0x0000; Blue = 0xff00; }
30// Mask Color for high-contrast images
31#define IMAGE_BUTTON_HC_MASK_COLOR  IMAGE_BUTTON_STD_MASK_COLOR
32
33#define ADDITIONAL_SPACE_ABOVE_TABLE 17
34
35ModalDialog DLG_DIAGRAM_DATA
36{
37    HelpID = HID_DIAGRAM_DATA ;
38    OutputSize = TRUE ;
39    Hide = TRUE ;
40    SVLook = TRUE ;
41    Pos = MAP_APPFONT ( 0 , 0 ) ;
42    Size = MAP_APPFONT ( 244 , 152 ) ;
43
44    Text [ en-US ] = "Data Table";
45
46    Moveable = TRUE ;
47    Closeable = TRUE ;
48    Sizeable = TRUE ;
49    Control CTL_DATA
50    {
51        HelpID = HID_SCH_CTL_DATA ;
52        Border = TRUE ;
53        Pos = MAP_APPFONT ( 6 , 24 + ADDITIONAL_SPACE_ABOVE_TABLE ) ;
54        Size = MAP_APPFONT ( 232 , 121 - ADDITIONAL_SPACE_ABOVE_TABLE ) ;
55        TabStop = TRUE ;
56    };
57    ToolBox TBX_DATA
58    {
59        HelpID = HID_SCH_TBX_DATA ;
60        SVLook = TRUE ;
61        TabStop = TRUE ;
62        Pos = MAP_APPFONT ( 4 , 2 ) ;
63        ItemList =
64        {
65            ToolBoxItem
66            {
67                HelpID = HID_SCH_TBI_DATA_INSERT_ROW ;
68                Identifier = TBI_DATA_INSERT_ROW ;
69                Text [ en-US ] = "Insert Row" ;
70            };
71            ToolBoxItem
72            {
73                HelpID = HID_SCH_TBI_DATA_INSERT_COL ;
74                Identifier = TBI_DATA_INSERT_COL ;
75                Text [ en-US ] = "Insert Series" ;
76            };
77            ToolBoxItem
78            {
79                HelpID = HID_SCH_TBI_DATA_INSERT_TEXT_COL ;
80                Identifier = TBI_DATA_INSERT_TEXT_COL ;
81                Text [ en-US ] = "Insert Text Column" ;
82            };
83            ToolBoxItem
84            {
85                HelpID = HID_SCH_TBI_DATA_DELETE_ROW ;
86                Identifier = TBI_DATA_DELETE_ROW ;
87                Text [ en-US ] = "Delete Row" ;
88            };
89            ToolBoxItem
90            {
91                HelpID = HID_SCH_TBI_DATA_DELETE_COL ;
92                Identifier = TBI_DATA_DELETE_COL ;
93                Text [ en-US ] = "Delete Series" ;
94            };
95            ToolBoxItem
96            {
97                Type = TOOLBOXITEM_SEPARATOR ;
98            };
99            ToolBoxItem
100            {
101                HelpID = HID_SCH_TBI_DATA_SWAP_COL ;
102                Identifier = TBI_DATA_SWAP_COL ;
103                Text [ en-US ] = "Move Series Right" ;
104            };
105            ToolBoxItem
106            {
107                HelpID = HID_SCH_TBI_DATA_SWAP_ROW ;
108                Identifier = TBI_DATA_SWAP_ROW ;
109                Text [ en-US ] = "Move Row Down" ;
110            };
111            ToolBoxItem
112            {
113                Type = TOOLBOXITEM_SEPARATOR ;
114            };
115        };
116    };
117
118#define IMAGE_ID_LIST                \
119    IdList =                         \
120    {                                \
121        TBI_DATA_INSERT_ROW;         \
122        TBI_DATA_INSERT_COL;         \
123        TBI_DATA_INSERT_TEXT_COL;    \
124        TBI_DATA_DELETE_ROW;         \
125        TBI_DATA_DELETE_COL;         \
126        TBI_DATA_SWAP_COL;           \
127        TBI_DATA_SWAP_ROW;           \
128    };                               \
129    IdCount = { 7; }
130
131    ImageList IL_DIAGRAM_DATA
132    {
133        Prefix = "dataeditor_icon";
134        MaskColor = IMAGE_BUTTON_STD_MASK_COLOR;
135        IMAGE_ID_LIST;
136    };
137
138    ImageList IL_HC_DIAGRAM_DATA
139    {
140        Prefix = "dataeditor_icon_h";
141        MaskColor = IMAGE_BUTTON_HC_MASK_COLOR;
142        IMAGE_ID_LIST;
143    };
144};
145