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_BORDER_WIDTH 107
25 #define POPUPPANEL_MARGIN_SMALL_PIXEL 8
29 ImageBitmap = Bitmap{File = "sidebar/CellBorder.png";};
33 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_005.png";};
37 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_250.png";};
41 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_400.png";};
45 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_500.png";};
49 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_110.png";};
53 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_260.png";};
57 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_450.png";};
61 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_505.png";};
65 ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_750.png";};
68 // cell line style popup
70 Control RID_POPUPPANEL_APPEARANCE_CELL_LINESTYLE
77 POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + 80,
78 13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE + 12*9);
82 HelpID = HID_PROPERTYPANEL_SC_STYLE_VS ;
84 Pos = MAP_APPFONT( POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
85 Size = MAP_APPFONT ( 80 , 12 * 9);
87 Text [ en-US ] = "Line Style";
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 );
95 Text [ en-US ] = "~More Options...";
97 Bitmap BMP_UNDERLINE_MORE
99 File = "sidebar/morebutton.png";
103 // cell border style popup
105 Control RID_POPUPPANEL_APPEARANCE_CELL_BORDERSTYLE
108 DialogControl = TRUE;
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);
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) ;
120 HelpID = HID_PROPERTYPANEL_SC_BORDER1_TBX;
121 Text [ en-US ] = "Cell Border 1";
126 Identifier = TBI_BORDER1_NONE ;
127 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_NONE;
128 Text [ en-US ] = "No Border" ;
132 Identifier = TBI_BORDER1_ALL ;
133 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_ALL;
134 Text [ en-US ] = "All Borders" ;
138 Identifier = TBI_BORDER1_OUTER ;
139 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTER;
140 Text [ en-US ] = "Outside Borders" ;
144 Identifier = TBI_BORDER1_OUTERBOLD ;
145 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTERBOLD;
146 Text [ en-US ] = "Thick Box Border" ;
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 ) ;
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) ;
161 HelpID = HID_PROPERTYPANEL_SC_BORDER2_TBX;
162 Text [ en-US ] = "Cell Border 2";
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 ) ;
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) ;
175 HelpID = HID_PROPERTYPANEL_SC_BORDER3_TBX;
176 Text [ en-US ] = "Cell Border 3";
181 Identifier = TBI_BORDER3_S1;
182 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S1;
183 Text [ en-US ] = "Thick Bottom Border" ;
187 Identifier = TBI_BORDER3_S2 ;
188 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S2;
189 Text [ en-US ] = "Double Bottom Border" ;
193 Identifier = TBI_BORDER3_S3 ;
194 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S3;
195 Text [ en-US ] = "Top and Thick Bottom Borders" ;
199 Identifier = TBI_BORDER3_S4 ;
200 HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S4;
201 Text [ en-US ] = "Top and Double Bottom Borders" ;
208 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Empty_18x18.png";};
212 ImageBitmap = Bitmap{File = "sidebar/CellBorder_All_18x18.png";};
216 ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_18x18.png";};
220 ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_Thick_18x18.png";};
224 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Left_18x18.png";};
228 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Right_18x18.png";};
232 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Top_18x18.png";};
236 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_18x18.png";};
240 ImageBitmap = Bitmap{File = "sidebar/CellBorder_RightDiagonal_18x18.png";};
244 ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftDiagonal_18x18.png";};
248 ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopAndBottom_18x18.png";};
252 ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftAndRight_18x18.png";};
256 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Thick_18x18.png";};
260 ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Double_18x18.png";};
264 ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopThin_BottomThick_18x18.png";};
268 ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopSingle_BottomDouble_18x18.png";};
272 Text [ en-US ] = "Left Border";
276 Text [ en-US ] = "Right Border";
280 Text [ en-US ] = "Top Border";
284 Text [ en-US ] = "Bottom Border";
288 Text [ en-US ] = "Diagonal Up Border";
292 Text [ en-US ] = "Diagonal Down Border";
296 Text [ en-US ] = "Top and Bottom Borders";
300 Text [ en-US ] = "Left and Right Borders";
304 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */