1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #include "CellAppearancePropertyPanel.hrc"
20 #include <sfx2/sidebar/ResourceDefinitions.hrc>
24 #define TOOLBOX_WIDTH 50
25 #define TOOLBOX_HEIGHT 15
27 #define TOOLBOX_WIDTH_2 34
28 #define TOOLBOX_HEIGHT_2 30
30 #define TOOLBOX_BORDER_WIDTH 107
31 #define PB_BORDER_MOREBTN 57
32 #define POPUPPANEL_MARGIN_SMALL_PIXEL 8
34 //////////////////////////////////////////////////////////////////////////////
38 ImageBitmap = Bitmap{File = "sidebar/CellBorder.png";};
39 //MaskColor = STD_MASKCOLOR ;
43 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_005.png";};
47 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_250.png";};
51 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_400.png";};
55 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_500.png";};
59 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_110.png";};
63 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_260.png";};
67 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_450.png";};
71 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_505.png";};
75 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_750.png";};
78 //////////////////////////////////////////////////////////////////////////////
81 Control RID_POPUPPANEL_CELLAPPEARANCE_FILLCOLOR
86 Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
90 HelpID = HID_PROPERTYPANEL_FILL_COLOR_VS;
92 Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
93 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
95 Text [ en-US ] = "Color";
100 Text [ en-US ] = "No Color" ;
104 //////////////////////////////////////////////////////////////////////////////
107 Control RID_POPUPPANEL_CELLAPPEARANCE_LINECOLOR
110 DialogControl = TRUE;
112 Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
116 HelpID = HID_PROPERTYPANEL_LINE_COLOR_VS;
118 Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
119 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
121 Text [ en-US ] = "Color";
125 //////////////////////////////////////////////////////////////////////////////
126 // cell line style popup
128 Control RID_POPUPPANEL_APPEARANCE_CELL_LINESTYLE
131 DialogControl = TRUE;
135 POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + 80,
136 13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE + 12*9);
140 HelpID = HID_PROPERTYPANEL_SC_STYLE_VS ;
142 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
143 Size = MAP_APPFONT ( 80 , 12 * 9);
145 Text [ en-US ] = "Line Style";
147 PushButton PB_OPTIONS
149 HelpID = HID_PROPERTYPANEL_SC_STYLE_PB;
150 Pos = MAP_APPFONT ( POPUPPANEL_MARGIN_LARGE + OFFSET_X , POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y + 12 * 9);
151 Size = MAP_APPFONT ( 75 , 12 );
153 Text [ en-US ] = "~More Options...";
155 Bitmap BMP_UNDERLINE_MORE
157 File = "sidebar/morebutton.png";
161 //////////////////////////////////////////////////////////////////////////////
162 // cell border style popup
164 Control RID_POPUPPANEL_APPEARANCE_CELL_BORDERSTYLE
167 DialogControl = TRUE;
170 Size = MAP_PIXEL( POPUPPANEL_MARGIN_SMALL_PIXEL * 2 + 108, POPUPPANEL_MARGIN_SMALL_PIXEL * 2 + 138);
175 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) ;
176 Size = MAP_PIXEL(TOOLBOX_BORDER_WIDTH, 31); //MAP_APPFONT (TOOLBOX_BORDER_WIDTH ,20) ;
178 HelpID = HID_PROPERTYPANEL_SC_BORDER1_TBX;
179 Text [ en-US ] = "Cell Border 1";
184 Identifier = TBI_BORDER1_NONE ;
185 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_NONE;
186 Text [ en-US ] = "No Border" ;
190 Identifier = TBI_BORDER1_ALL ;
191 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_ALL;
192 Text [ en-US ] = "All Borders" ;
196 Identifier = TBI_BORDER1_OUTER ;
197 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTER;
198 Text [ en-US ] = "Outside Borders" ;
202 Identifier = TBI_BORDER1_OUTERBOLD ;
203 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTERBOLD;
204 Text [ en-US ] = "Thick Box Border" ;
210 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) ;
211 Size = MAP_PIXEL(TOOLBOX_BORDER_WIDTH, 8); // MAP_APPFONT ( TOOLBOX_BORDER_WIDTH , 5 ) ;
216 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) ;
217 Size = MAP_PIXEL (TOOLBOX_BORDER_WIDTH ,61) ;
219 HelpID = HID_PROPERTYPANEL_SC_BORDER2_TBX;
220 Text [ en-US ] = "Cell Border 2";
224 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) ;
225 Size = MAP_PIXEL ( TOOLBOX_BORDER_WIDTH , 8 ) ;
230 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) ;
231 Size = MAP_PIXEL (TOOLBOX_BORDER_WIDTH ,31) ;
233 HelpID = HID_PROPERTYPANEL_SC_BORDER3_TBX;
234 Text [ en-US ] = "Cell Border 3";
239 Identifier = TBI_BORDER3_S1;
240 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S1;
241 Text [ en-US ] = "Thick Bottom Border" ;
245 Identifier = TBI_BORDER3_S2 ;
246 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S2;
247 Text [ en-US ] = "Double Bottom Border" ;
251 Identifier = TBI_BORDER3_S3 ;
252 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S3;
253 Text [ en-US ] = "Top and Thick Bottom Borders" ;
257 Identifier = TBI_BORDER3_S4 ;
258 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S4;
259 Text [ en-US ] = "Top and Double Bottom Borders" ;
266 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Empty_18x18.png";};
270 ImageBitmap = Bitmap{File = "sidebar/CellBorder_All_18x18.png";};
274 ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_18x18.png";};
278 ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_Thick_18x18.png";};
282 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Left_18x18.png";};
286 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Right_18x18.png";};
290 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Top_18x18.png";};
294 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_18x18.png";};
298 ImageBitmap = Bitmap{File = "sidebar/CellBorder_RightDiagonal_18x18.png";};
302 ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftDiagonal_18x18.png";};
306 ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopAndBottom_18x18.png";};
310 ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftAndRight_18x18.png";};
314 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Thick_18x18.png";};
318 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Double_18x18.png";};
322 ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopThin_BottomThick_18x18.png";};
326 ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopSingle_BottomDouble_18x18.png";};
330 Text [ en-US ] = "Left Border";
334 Text [ en-US ] = "Right Border";
338 Text [ en-US ] = "Top Border";
342 Text [ en-US ] = "Bottom Border";
346 Text [ en-US ] = "Diagonal Up Border";
350 Text [ en-US ] = "Diagonal Down Border";
354 Text [ en-US ] = "Top and Bottom Borders";
358 Text [ en-US ] = "Left and Right Borders";
364 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */