fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / sc / source / ui / sidebar / CellAppearancePropertyPanel.src
blob4049151ba8de2a82d7ebebbd77d7cd7cd8bc044f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  *   Licensed to the Apache Software Foundation (ASF) under one or more
12  *   contributor license agreements. See the NOTICE file distributed
13  *   with this work for additional information regarding copyright
14  *   ownership. The ASF licenses this file to you under the Apache
15  *   License, Version 2.0 (the "License"); you may not use this file
16  *   except in compliance with the License. You may obtain a copy of
17  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 #include "CellAppearancePropertyPanel.hrc"
20 #include <sfx2/sidebar/ResourceDefinitions.hrc>
21 #include "sc.hrc"
22 #include "helpids.h"
24 #define TOOLBOX_BORDER_WIDTH    107
25 #define POPUPPANEL_MARGIN_SMALL_PIXEL   8
27 Image IMG_CELL_BORDER
29     ImageBitmap = Bitmap{File = "sidebar/CellBorder.png";};
31 Image IMG_LINE_STYLE1
33     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_005.png";};
35 Image IMG_LINE_STYLE2
37     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_250.png";};
39 Image IMG_LINE_STYLE3
41     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_400.png";};
43 Image IMG_LINE_STYLE4
45     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_500.png";};
47 Image IMG_LINE_STYLE5
49     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_110.png";};
51 Image IMG_LINE_STYLE6
53     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_260.png";};
55 Image IMG_LINE_STYLE7
57     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_450.png";};
59 Image IMG_LINE_STYLE8
61     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_505.png";};
63 Image IMG_LINE_STYLE9
65     ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_750.png";};
68 // cell line style popup
70 Control RID_POPUPPANEL_APPEARANCE_CELL_LINESTYLE
72     OutputSize = TRUE;
73     DialogControl = TRUE;
74     Border = FALSE;
76     Size = MAP_APPFONT(
77         POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + 80,
78         13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE + 12*9);
80     Control VS_STYLE
81     {
82         HelpID = HID_PROPERTYPANEL_SC_STYLE_VS ;
83         Hide = TRUE ;
84         Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
85         Size = MAP_APPFONT ( 80  , 12 * 9);
86         TabStop = TRUE ;
87         Text [ en-US ] = "Line Style";
88     };
89     PushButton PB_OPTIONS
90     {
91         HelpID = HID_PROPERTYPANEL_SC_STYLE_PB;
92         Pos = MAP_APPFONT (  POPUPPANEL_MARGIN_LARGE + OFFSET_X , POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y + 12 * 9);
93         Size = MAP_APPFONT ( 75 , 12 );
94         TabStop = TRUE;
95         Text [ en-US ] = "~More Options...";
96     };
97     Bitmap  BMP_UNDERLINE_MORE
98     {
99         File = "sidebar/morebutton.png";
100     };
103 // cell border style popup
105 Control RID_POPUPPANEL_APPEARANCE_CELL_BORDERSTYLE
107     OutputSize = TRUE;
108     DialogControl = TRUE;
109     Border = FALSE;
111     //This is broken with the auto-doubled hidpi bitmaps
112     Size = MAP_PIXEL(  POPUPPANEL_MARGIN_SMALL_PIXEL * 2 + 108,  POPUPPANEL_MARGIN_SMALL_PIXEL * 2  + 138);
114     ToolBox TB_BORDER1
115     {
116         SVLook = TRUE ;
117         Pos = MAP_PIXEL(POPUPPANEL_MARGIN_SMALL_PIXEL, POPUPPANEL_MARGIN_SMALL_PIXEL); //MAP_APPFONT (POPUPPANEL_MARGIN_SMALL + OFFSET_X + 1, POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 1) ;
118         Size = MAP_PIXEL(TOOLBOX_BORDER_WIDTH, 31); //MAP_APPFONT (TOOLBOX_BORDER_WIDTH ,20) ;
119         TabStop = TRUE ;
120         HelpID = HID_PROPERTYPANEL_SC_BORDER1_TBX;
121         Text [ en-US ] = "Cell Border 1";
122         ItemList =
123         {
124             ToolBoxItem
125             {
126                 Identifier = TBI_BORDER1_NONE ;
127                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_NONE;
128                 Text [ en-US ] = "No Border" ;
129             };
130             ToolBoxItem
131             {
132                 Identifier = TBI_BORDER1_ALL ;
133                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_ALL;
134                 Text [ en-US ] = "All Borders" ;
135             };
136             ToolBoxItem
137             {
138                 Identifier = TBI_BORDER1_OUTER ;
139                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTER;
140                 Text [ en-US ] = "Outside Borders" ;
141             };
142             ToolBoxItem
143             {
144                 Identifier = TBI_BORDER1_OUTERBOLD ;
145                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTERBOLD;
146                 Text [ en-US ] = "Thick Box Border" ;
147             };
148         };
149     };
150     FixedLine FL_1
151     {
152         Pos = MAP_PIXEL(POPUPPANEL_MARGIN_SMALL_PIXEL, POPUPPANEL_MARGIN_SMALL_PIXEL + 31); //MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X + 1 , POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 20 + 1) ;
153         Size = MAP_PIXEL(TOOLBOX_BORDER_WIDTH, 8); // MAP_APPFONT ( TOOLBOX_BORDER_WIDTH , 5 ) ;
154     };
155     ToolBox TB_BORDER2
156     {
157         SVLook = TRUE ;
158         Pos = MAP_PIXEL(POPUPPANEL_MARGIN_SMALL_PIXEL, POPUPPANEL_MARGIN_SMALL_PIXEL + 31 + 8); // MAP_APPFONT (POPUPPANEL_MARGIN_SMALL + OFFSET_X + 1, POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 20 + 5 + 1) ;
159         Size = MAP_PIXEL (TOOLBOX_BORDER_WIDTH ,61) ;
160         TabStop = TRUE ;
161         HelpID = HID_PROPERTYPANEL_SC_BORDER2_TBX;
162         Text [ en-US ] = "Cell Border 2";
163     };
164     FixedLine FL_2
165     {
166         Pos = MAP_PIXEL(POPUPPANEL_MARGIN_SMALL_PIXEL, POPUPPANEL_MARGIN_SMALL_PIXEL + 31 + 8 + 61); // MAP_APPFONT ( POPUPPANEL_MARGIN_SMALL + OFFSET_X + 1 , POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 20 + 38 + 5 + 1) ;
167         Size = MAP_PIXEL ( TOOLBOX_BORDER_WIDTH , 8 ) ;
168     };
169     ToolBox TB_BORDER3
170     {
171         SVLook = TRUE ;
172         Pos = MAP_PIXEL(POPUPPANEL_MARGIN_SMALL_PIXEL, POPUPPANEL_MARGIN_SMALL_PIXEL + 31 +8 + 61 + 8); // MAP_APPFONT (POPUPPANEL_MARGIN_SMALL + OFFSET_X + 1, POPUPPANEL_MARGIN_SMALL + OFFSET_Y + 20 + 38 + 10 + 1) ;
173         Size = MAP_PIXEL (TOOLBOX_BORDER_WIDTH ,31) ;
174         TabStop = TRUE ;
175         HelpID = HID_PROPERTYPANEL_SC_BORDER3_TBX;
176         Text [ en-US ] = "Cell Border 3";
177         ItemList =
178         {
179             ToolBoxItem
180             {
181                 Identifier = TBI_BORDER3_S1;
182                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S1;
183                 Text [ en-US ] = "Thick Bottom Border" ;
184             };
185             ToolBoxItem
186             {
187                 Identifier = TBI_BORDER3_S2 ;
188                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S2;
189                 Text [ en-US ] = "Double Bottom Border" ;
190             };
191             ToolBoxItem
192             {
193                 Identifier = TBI_BORDER3_S3 ;
194                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S3;
195                 Text [ en-US ] = "Top and Thick Bottom Borders" ;
196             };
197             ToolBoxItem
198             {
199                 Identifier = TBI_BORDER3_S4 ;
200                 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S4;
201                 Text [ en-US ] = "Top and Double Bottom Borders" ;
202             };
203         };
204     };
206     Image IMG_BORDER1
207     {
208         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Empty_18x18.png";};
209     };
210     Image IMG_BORDER2
211     {
212         ImageBitmap = Bitmap{File = "sidebar/CellBorder_All_18x18.png";};
213     };
214     Image IMG_BORDER3
215     {
216         ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_18x18.png";};
217     };
218     Image IMG_BORDER4
219     {
220         ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_Thick_18x18.png";};
221     };
222     Image IMG_BORDER5
223     {
224         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Left_18x18.png";};
225     };
226     Image IMG_BORDER6
227     {
228         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Right_18x18.png";};
229     };
230     Image IMG_BORDER7
231     {
232         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Top_18x18.png";};
233     };
234     Image IMG_BORDER8
235     {
236         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_18x18.png";};
237     };
238     Image IMG_BORDER9
239     {
240         ImageBitmap = Bitmap{File = "sidebar/CellBorder_RightDiagonal_18x18.png";};
241     };
242     Image IMG_BORDER10
243     {
244         ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftDiagonal_18x18.png";};
245     };
246     Image IMG_BORDER11
247     {
248         ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopAndBottom_18x18.png";};
249     };
250     Image IMG_BORDER12
251     {
252         ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftAndRight_18x18.png";};
253     };
254     Image IMG_BORDER13
255     {
256         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Thick_18x18.png";};
257     };
258     Image IMG_BORDER14
259     {
260         ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Double_18x18.png";};
261     };
262     Image IMG_BORDER15
263     {
264         ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopThin_BottomThick_18x18.png";};
265     };
266     Image IMG_BORDER16
267     {
268         ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopSingle_BottomDouble_18x18.png";};
269     };
270     String STR_BORDER_1
271     {
272         Text [ en-US ] = "Left Border";
273     };
274     String STR_BORDER_2
275     {
276         Text [ en-US ] = "Right Border";
277     };
278     String STR_BORDER_3
279     {
280         Text [ en-US ] = "Top Border";
281     };
282     String STR_BORDER_4
283     {
284         Text [ en-US ] = "Bottom Border";
285     };
286     String STR_BORDER_5
287     {
288         Text [ en-US ] = "Diagonal Up Border";
289     };
290     String STR_BORDER_6
291     {
292         Text [ en-US ] = "Diagonal Down Border";
293     };
294     String STR_BORDER_7
295     {
296         Text [ en-US ] = "Top and Bottom Borders";
297     };
298     String STR_BORDER_8
299     {
300         Text [ en-US ] = "Left and Right Borders";
301     };
304 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */