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#include "InsertPropertyPanel.hrc"
23#include <sfx2/sidebar/ResourceDefinitions.hrc>
24#include "helpid.hrc"
25
26#define FIRST_LINE_Y    SECTIONPAGE_MARGIN_VERTICAL_TOP
27#define SECOND_LINE_Y   FIRST_LINE_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL  + 1
28
29Control RID_SIDEBAR_INSERT_PANEL
30{
31    OutputSize = TRUE;
32	DialogControl = TRUE;
33	Border = FALSE;
34
35	Size = MAP_APPFONT(
36          PROPERTYPAGE_WIDTH,
37          SECTIONPAGE_MARGIN_VERTICAL_TOP
38          + TOOLBOX_ITEM_HEIGHT * 2
39          + CONTROL_SPACING_VERTICAL
40          + SECTIONPAGE_MARGIN_VERTICAL_BOT);
41	HelpID = HID_SIDEBAR_INSERT_PANEL;
42	Text = "Insert";
43
44	ToolBox TB_INSERT_STANDARD
45	{
46		SVLook = TRUE ;
47		Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, FIRST_LINE_Y);
48		Size = MAP_APPFONT (TOOLBOX_ITEM_WIDTH * 6 + TOOLBOX_ITEM_DD_WIDTH, TOOLBOX_ITEM_HEIGHT) ;
49		TabStop = TRUE ;
50		HelpID = HID_SIDEBAR_INSERT_TOOLBOX;
51		Text = "Insert Shapes";
52		ItemList =
53		{
54			ToolBoxItem
55			{
56				Identifier = TBI_STANDARD_LINE;
57                Command = ".uno:Line";
58			};
59			ToolBoxItem
60			{
61				Identifier = TBI_STANDARD_ARROW;
62                Command = ".uno:LineArrowEnd";
63			};
64			ToolBoxItem
65			{
66				Identifier = TBI_STANDARD_RECTANGLE;
67                Command = ".uno:Rect";
68			};
69			ToolBoxItem
70			{
71				Identifier = TBI_STANDARD_ELLIPSE;
72                Command = ".uno:Ellipse";
73			};
74			ToolBoxItem
75			{
76				Identifier = TBI_STANDARD_TEXT;
77                Command = ".uno:Text";
78			};
79			ToolBoxItem
80			{
81				Identifier = TBI_STANDARD_LINES;
82                Command = ".uno:LineToolbox";
83			};
84			ToolBoxItem
85			{
86				Identifier = TBI_STANDARD_CONNECTORS;
87                Command = ".uno:ConnectorToolbox";
88			};
89			ToolBoxItem
90			{
91				Identifier = TBI_STANDARD_ARROWS;
92                Command = ".uno:ArrowsToolbox";
93                DropDown = TRUE;
94			};
95        };
96    };
97
98	ToolBox TB_INSERT_CUSTOM
99	{
100		SVLook = TRUE ;
101		Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECOND_LINE_Y);
102		Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH * 6, TOOLBOX_ITEM_HEIGHT) ;
103		TabStop = TRUE ;
104		HelpID = HID_SIDEBAR_INSERT_TOOLBOX;
105		Text = "Insert";
106		ItemList =
107		{
108			ToolBoxItem
109			{
110				Identifier = TBI_CUSTOM_BASICS;
111                Command = ".uno:BasicShapes";
112                DropDown = TRUE;
113			};
114			ToolBoxItem
115			{
116				Identifier = TBI_CUSTOM_SYMBOLS;
117                Command = ".uno:SymbolShapes";
118                DropDown = TRUE;
119			};
120			ToolBoxItem
121			{
122				Identifier = TBI_CUSTOM_ARROWS;
123                Command = ".uno:ArrowShapes";
124                DropDown = TRUE;
125			};
126			ToolBoxItem
127			{
128				Identifier = TBI_CUSTOM_FLOWCHARTS;
129                Command = ".uno:FlowChartShapes";
130                DropDown = TRUE;
131            };
132			ToolBoxItem
133			{
134				Identifier = TBI_CUSTOM_CALLOUTS;
135                Command = ".uno:CalloutShapes";
136                DropDown = TRUE;
137			};
138			ToolBoxItem
139			{
140				Identifier = TBI_CUSTOM_STARS;
141                Command = ".uno:StarShapes";
142                DropDown = TRUE;
143			};
144		};
145	};
146};
147