/* -*- 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 #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; //This is broken with the auto-doubled hidpi bitmaps 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: */