summaryrefslogtreecommitdiff
path: root/sc/source/ui/sidebar/CellAppearancePropertyPanel.src
blob: 00876285015ee09d73c5ce02cc8165da9e14eef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 *
 * This file incorporates work covered by the following license notice:
 *
 *   Licensed to the Apache Software Foundation (ASF) under one or more
 *   contributor license agreements. See the NOTICE file distributed
 *   with this work for additional information regarding copyright
 *   ownership. The ASF licenses this file to you under the Apache
 *   License, Version 2.0 (the "License"); you may not use this file
 *   except in compliance with the License. You may obtain a copy of
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
 */
#include "CellAppearancePropertyPanel.hrc"
#include <sfx2/sidebar/ResourceDefinitions.hrc>
#include "sc.hrc"
#include "helpids.h"

#define TOOLBOX_WIDTH       50
#define TOOLBOX_HEIGHT      15

#define TOOLBOX_WIDTH_2     34
#define TOOLBOX_HEIGHT_2    30

#define TOOLBOX_BORDER_WIDTH    107
#define PB_BORDER_MOREBTN       57
#define POPUPPANEL_MARGIN_SMALL_PIXEL   8

//////////////////////////////////////////////////////////////////////////////

Image IMG_CELL_BORDER
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorder.png";};
    //MaskColor = STD_MASKCOLOR ;
};
Image IMG_LINE_STYLE1
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_005.png";};
};
Image IMG_LINE_STYLE2
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_250.png";};
};
Image IMG_LINE_STYLE3
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_400.png";};
};
Image IMG_LINE_STYLE4
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_500.png";};
};
Image IMG_LINE_STYLE5
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_110.png";};
};
Image IMG_LINE_STYLE6
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_260.png";};
};
Image IMG_LINE_STYLE7
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_450.png";};
};
Image IMG_LINE_STYLE8
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_505.png";};
};
Image IMG_LINE_STYLE9
{
    ImageBitmap = Bitmap{File = "sidebar/CellBorderLineStyle_750.png";};
};

//////////////////////////////////////////////////////////////////////////////
// fill color popup

Control RID_POPUPPANEL_CELLAPPEARANCE_FILLCOLOR
{
    OutputSize = TRUE;
    DialogControl = TRUE;
    Border = FALSE;
    Size = MAP_APPFONT(  POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT  );

    Control VS_FILLCOLOR
    {
        HelpID = HID_PROPERTYPANEL_FILL_COLOR_VS;
        Hide = TRUE ;
        Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
        Size = MAP_APPFONT (  POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
        TabStop = TRUE ;
        Text [ en-US ] = "Color";
    };

    String VS_NOFILLCOLOR
    {
        Text [ en-US ] = "No Color" ;
    };
};

//////////////////////////////////////////////////////////////////////////////
// line color popup

Control RID_POPUPPANEL_CELLAPPEARANCE_LINECOLOR
{
    OutputSize = TRUE;
    DialogControl = TRUE;
    Border = FALSE;
    Size = MAP_APPFONT(  POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT  );

    Control VS_LINECOLOR
    {
        HelpID = HID_PROPERTYPANEL_LINE_COLOR_VS;
        Hide = TRUE ;
        Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
        Size = MAP_APPFONT (  POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
        TabStop = TRUE ;
        Text [ en-US ] = "Color";
    };
};

//////////////////////////////////////////////////////////////////////////////
// cell line style popup

Control RID_POPUPPANEL_APPEARANCE_CELL_LINESTYLE
{
    OutputSize = TRUE;
    DialogControl = TRUE;
    Border = FALSE;

    Size = MAP_APPFONT(
        POPUPPANEL_MARGIN_SMALL * 2 + POPUP_BORDER_WIDTH + 80,
        13 + POPUP_BORDER_HEIGHT + POPUPPANEL_MARGIN_SMALL * 2 + POPUPPANEL_MARGIN_LARGE + 12*9);

    Control VS_STYLE
    {
        HelpID = HID_PROPERTYPANEL_SC_STYLE_VS ;
        Hide = TRUE ;
        Pos = MAP_APPFONT(  POPUPPANEL_MARGIN_SMALL + OFFSET_X , POPUPPANEL_MARGIN_SMALL + OFFSET_Y );
        Size = MAP_APPFONT ( 80  , 12 * 9);
        TabStop = TRUE ;
        Text [ en-US ] = "Line Style";
    };
    PushButton PB_OPTIONS
    {
        HelpID = HID_PROPERTYPANEL_SC_STYLE_PB;
        Pos = MAP_APPFONT (  POPUPPANEL_MARGIN_LARGE + OFFSET_X , POPUPPANEL_MARGIN_SMALL * 2 + OFFSET_Y + 12 * 9);
        Size = MAP_APPFONT ( 75 , 12 );
        TabStop = TRUE;
        Text [ en-US ] = "~More Options...";
    };
    Bitmap  BMP_UNDERLINE_MORE
    {
        File = "sidebar/morebutton.png";
    };
};

//////////////////////////////////////////////////////////////////////////////
// cell border style popup

Control RID_POPUPPANEL_APPEARANCE_CELL_BORDERSTYLE
{
    OutputSize = TRUE;
    DialogControl = TRUE;
    Border = FALSE;

    Size = MAP_PIXEL(  POPUPPANEL_MARGIN_SMALL_PIXEL * 2 + 108,  POPUPPANEL_MARGIN_SMALL_PIXEL * 2  + 138);

    ToolBox TB_BORDER1
    {
        SVLook = TRUE ;
        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) ;
        Size = MAP_PIXEL(TOOLBOX_BORDER_WIDTH, 31); //MAP_APPFONT (TOOLBOX_BORDER_WIDTH ,20) ;
        TabStop = TRUE ;
        HelpID = HID_PROPERTYPANEL_SC_BORDER1_TBX;
        Text [ en-US ] = "Cell Border 1";
        ItemList =
        {
            ToolBoxItem
            {
                Identifier = TBI_BORDER1_NONE ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_NONE;
                Text [ en-US ] = "No Border" ;
            };
            ToolBoxItem
            {
                Identifier = TBI_BORDER1_ALL ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_ALL;
                Text [ en-US ] = "All Borders" ;
            };
            ToolBoxItem
            {
                Identifier = TBI_BORDER1_OUTER ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTER;
                Text [ en-US ] = "Outside Borders" ;
            };
            ToolBoxItem
            {
                Identifier = TBI_BORDER1_OUTERBOLD ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_OUTERBOLD;
                Text [ en-US ] = "Thick Box Border" ;
            };
        };
    };
    FixedLine FL_1
    {
        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) ;
        Size = MAP_PIXEL(TOOLBOX_BORDER_WIDTH, 8); // MAP_APPFONT ( TOOLBOX_BORDER_WIDTH , 5 ) ;
    };
    ToolBox TB_BORDER2
    {
        SVLook = TRUE ;
        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) ;
        Size = MAP_PIXEL (TOOLBOX_BORDER_WIDTH ,61) ;
        TabStop = TRUE ;
        HelpID = HID_PROPERTYPANEL_SC_BORDER2_TBX;
        Text [ en-US ] = "Cell Border 2";
    };
    FixedLine FL_2
    {
        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) ;
        Size = MAP_PIXEL ( TOOLBOX_BORDER_WIDTH , 8 ) ;
    };
    ToolBox TB_BORDER3
    {
        SVLook = TRUE ;
        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) ;
        Size = MAP_PIXEL (TOOLBOX_BORDER_WIDTH ,31) ;
        TabStop = TRUE ;
        HelpID = HID_PROPERTYPANEL_SC_BORDER3_TBX;
        Text [ en-US ] = "Cell Border 3";
        ItemList =
        {
            ToolBoxItem
            {
                Identifier = TBI_BORDER3_S1;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S1;
                Text [ en-US ] = "Thick Bottom Border" ;
            };
            ToolBoxItem
            {
                Identifier = TBI_BORDER3_S2 ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S2;
                Text [ en-US ] = "Double Bottom Border" ;
            };
            ToolBoxItem
            {
                Identifier = TBI_BORDER3_S3 ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S3;
                Text [ en-US ] = "Top and Thick Bottom Borders" ;
            };
            ToolBoxItem
            {
                Identifier = TBI_BORDER3_S4 ;
                HelpID = HID_PROPERTYPANEL_SC_BORDER_TBI_S4;
                Text [ en-US ] = "Top and Double Bottom Borders" ;
            };
        };
    };

    Image IMG_BORDER1
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Empty_18x18.png";};
    };
    Image IMG_BORDER2
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_All_18x18.png";};
    };
    Image IMG_BORDER3
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_18x18.png";};
    };
    Image IMG_BORDER4
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_FourBorders_Thick_18x18.png";};
    };
    Image IMG_BORDER5
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Left_18x18.png";};
    };
    Image IMG_BORDER6
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Right_18x18.png";};
    };
    Image IMG_BORDER7
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Top_18x18.png";};
    };
    Image IMG_BORDER8
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_18x18.png";};
    };
    Image IMG_BORDER9
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_RightDiagonal_18x18.png";};
    };
    Image IMG_BORDER10
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftDiagonal_18x18.png";};
    };
    Image IMG_BORDER11
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopAndBottom_18x18.png";};
    };
    Image IMG_BORDER12
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_LeftAndRight_18x18.png";};
    };
    Image IMG_BORDER13
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Thick_18x18.png";};
    };
    Image IMG_BORDER14
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_Bottom_Double_18x18.png";};
    };
    Image IMG_BORDER15
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopThin_BottomThick_18x18.png";};
    };
    Image IMG_BORDER16
    {
        ImageBitmap = Bitmap{File = "sidebar/CellBorder_TopSingle_BottomDouble_18x18.png";};
    };
    String STR_BORDER_1
    {
        Text [ en-US ] = "Left Border";
    };
    String STR_BORDER_2
    {
        Text [ en-US ] = "Right Border";
    };
    String STR_BORDER_3
    {
        Text [ en-US ] = "Top Border";
    };
    String STR_BORDER_4
    {
        Text [ en-US ] = "Bottom Border";
    };
    String STR_BORDER_5
    {
        Text [ en-US ] = "Diagonal Up Border";
    };
    String STR_BORDER_6
    {
        Text [ en-US ] = "Diagonal Down Border";
    };
    String STR_BORDER_7
    {
        Text [ en-US ] = "Top and Bottom Borders";
    };
    String STR_BORDER_8
    {
        Text [ en-US ] = "Left and Right Borders";
    };
};

// eof

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */