1facb16e7SArmin Le Grand/************************************************************** 2facb16e7SArmin Le Grand * 3facb16e7SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one 4facb16e7SArmin Le Grand * or more contributor license agreements. See the NOTICE file 5facb16e7SArmin Le Grand * distributed with this work for additional information 6facb16e7SArmin Le Grand * regarding copyright ownership. The ASF licenses this file 7facb16e7SArmin Le Grand * to you under the Apache License, Version 2.0 (the 8facb16e7SArmin Le Grand * "License"); you may not use this file except in compliance 9facb16e7SArmin Le Grand * with the License. You may obtain a copy of the License at 10facb16e7SArmin Le Grand * 11facb16e7SArmin Le Grand * http://www.apache.org/licenses/LICENSE-2.0 12facb16e7SArmin Le Grand * 13facb16e7SArmin Le Grand * Unless required by applicable law or agreed to in writing, 14facb16e7SArmin Le Grand * software distributed under the License is distributed on an 15facb16e7SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16facb16e7SArmin Le Grand * KIND, either express or implied. See the License for the 17facb16e7SArmin Le Grand * specific language governing permissions and limitations 18facb16e7SArmin Le Grand * under the License. 19facb16e7SArmin Le Grand * 20facb16e7SArmin Le Grand *************************************************************/ 21facb16e7SArmin Le Grand 22facb16e7SArmin Le Grand#include "AlignmentPropertyPanel.hrc" 23*d29c2fc2SAndre Fischer#include <sfx2/sidebar/ResourceDefinitions.hrc> 24facb16e7SArmin Le Grand#include "sc.hrc" 25facb16e7SArmin Le Grand#include "helpids.h" 26facb16e7SArmin Le Grand 27facb16e7SArmin Le GrandControl RID_PROPERTYPANEL_SC_ALIGNMENT 28facb16e7SArmin Le Grand{ 29facb16e7SArmin Le Grand OutputSize = TRUE; 30facb16e7SArmin Le Grand DialogControl = TRUE; 31facb16e7SArmin Le Grand Border = FALSE; 32facb16e7SArmin Le Grand 33facb16e7SArmin Le Grand Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PANEL_HEIGHT ); 34facb16e7SArmin Le Grand HelpID = HID_PROPERTYPANEL_SC_ALIGN_SECTION; 35facb16e7SArmin Le Grand Text [ en-US ] = "Alignment"; 36facb16e7SArmin Le Grand 37facb16e7SArmin Le Grand //------------ Alignment ------------- 38facb16e7SArmin Le Grand ToolBox TBX_HORIZONTAL_ALIGNMENT 39facb16e7SArmin Le Grand { 40facb16e7SArmin Le Grand Pos = MAP_APPFONT ( ALIGNMENT_X , ALIGNMENT_Y ); 41facb16e7SArmin Le Grand Size = MAP_APPFONT ( ALIGNMENT_TBX_WIDTH*4 ,ALIGNMENT_TBX_HEIGHT); 42facb16e7SArmin Le Grand SVLook = TRUE ; 43facb16e7SArmin Le Grand Border = FALSE ; 44facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBX_HOR; 45facb16e7SArmin Le Grand Text [ en-US ] = "Horizontal Alignment" ; 46facb16e7SArmin Le Grand ItemList = 47facb16e7SArmin Le Grand { 48facb16e7SArmin Le Grand ToolBoxItem 49facb16e7SArmin Le Grand { 50facb16e7SArmin Le Grand Identifier = ID_SUBSTLEFT ; 51facb16e7SArmin Le Grand Text [ en-US ] = "Align Left" ; 52facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_L; 53facb16e7SArmin Le Grand }; 54facb16e7SArmin Le Grand ToolBoxItem 55facb16e7SArmin Le Grand { 56facb16e7SArmin Le Grand Identifier = ID_SUBSTCENTER ; 57facb16e7SArmin Le Grand Text [ en-US ] = "Align Center" ; 58facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_C; 59facb16e7SArmin Le Grand }; 60facb16e7SArmin Le Grand ToolBoxItem 61facb16e7SArmin Le Grand { 62facb16e7SArmin Le Grand Identifier = ID_SUBSTRIGHT ; 63facb16e7SArmin Le Grand Text [ en-US ] = "Align Right" ; 64facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_R; 65facb16e7SArmin Le Grand }; 66facb16e7SArmin Le Grand ToolBoxItem 67facb16e7SArmin Le Grand { 68facb16e7SArmin Le Grand Identifier = ID_SUBSTJUSTIFY ; 69facb16e7SArmin Le Grand Text [ en-US ] = "Align Justified" ; 70facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_J; 71facb16e7SArmin Le Grand }; 72facb16e7SArmin Le Grand }; 73facb16e7SArmin Le Grand }; 74facb16e7SArmin Le Grand ToolBox TBX_VERTICAL_ALIGN 75facb16e7SArmin Le Grand { 76facb16e7SArmin Le Grand SVLook = TRUE ; 77facb16e7SArmin Le Grand Border = FALSE ; 78facb16e7SArmin Le Grand Pos = MAP_APPFONT ( ALIGNMENT_VERT_X, ALIGNMENT_VERT_Y ) ; 79facb16e7SArmin Le Grand Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 3 , TOOLBOX_ITEM_HEIGHT) ; 80facb16e7SArmin Le Grand TabStop = TRUE ; 81facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBX_VER; 82facb16e7SArmin Le Grand Text [ en-US ] = "Vertical Alignment" ; 83facb16e7SArmin Le Grand ItemList = 84facb16e7SArmin Le Grand { 85facb16e7SArmin Le Grand ToolBoxItem 86facb16e7SArmin Le Grand { 87facb16e7SArmin Le Grand Identifier = IID_VERT_TOP ; 88facb16e7SArmin Le Grand Text [ en-US ] = "Align Top" ; 89facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_VER_T; 90facb16e7SArmin Le Grand }; 91facb16e7SArmin Le Grand 92facb16e7SArmin Le Grand ToolBoxItem 93facb16e7SArmin Le Grand { 94facb16e7SArmin Le Grand Identifier = IID_VERT_CENTER ; 95facb16e7SArmin Le Grand Text [ en-US ] = "Align Center Vertically" ; 96facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_VER_C; 97facb16e7SArmin Le Grand }; 98facb16e7SArmin Le Grand 99facb16e7SArmin Le Grand ToolBoxItem 100facb16e7SArmin Le Grand { 101facb16e7SArmin Le Grand Identifier = IID_VERT_BOTTOM ; 102facb16e7SArmin Le Grand Text [ en-US ] = "Align Bottom" ; 103facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_VER_B; 104facb16e7SArmin Le Grand }; 105facb16e7SArmin Le Grand }; 106facb16e7SArmin Le Grand }; 107facb16e7SArmin Le Grand //------------ Left indent ------------ 108facb16e7SArmin Le Grand FixedText FT_LEFT_INDENT 109facb16e7SArmin Le Grand { 110facb16e7SArmin Le Grand Pos = MAP_APPFONT ( FT_LEFTINDENT_X, FT_LEFTINDENT_Y ); 111facb16e7SArmin Le Grand Size = MAP_APPFONT (CBX_WRAP_X - FT_LEFTINDENT_X - 1 , TEXT_HEIGHT) ; //MBOX_WIDTH 112facb16e7SArmin Le Grand Text [ en-US ] = "Left ~indent:"; 113facb16e7SArmin Le Grand }; 114facb16e7SArmin Le Grand MetricField MF_LEFT_INDENT 115facb16e7SArmin Le Grand { 116facb16e7SArmin Le Grand Border = TRUE; 117facb16e7SArmin Le Grand Pos = MAP_APPFONT ( MTR_LEFTINDENT_X , MTR_LEFTINDENT_Y ); 118facb16e7SArmin Le Grand Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 119facb16e7SArmin Le Grand TabStop = TRUE; 120facb16e7SArmin Le Grand Repeat = TRUE; 121facb16e7SArmin Le Grand Spin = TRUE; 122facb16e7SArmin Le Grand Minimum = 0; 123facb16e7SArmin Le Grand Maximum = 990; 124facb16e7SArmin Le Grand Unit = FUNIT_POINT; 125facb16e7SArmin Le Grand SpinSize = 10; 126facb16e7SArmin Le Grand QuickHelpText [ en-US ] = "Indents from the left edge."; 127facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_MBX_INDENT; 128facb16e7SArmin Le Grand }; 129facb16e7SArmin Le Grand CheckBox CBX_WRAP 130facb16e7SArmin Le Grand { 131facb16e7SArmin Le Grand Pos = MAP_APPFONT ( CBX_WRAP_X , CBX_WRAP_Y ) ; 132facb16e7SArmin Le Grand Size = MAP_APPFONT (PROPERTYPAGE_WIDTH - CBX_WRAP_X - 1 , CBOX_HEIGHT ) ;// 133facb16e7SArmin Le Grand TabStop = TRUE ; 134facb16e7SArmin Le Grand Text [ en-US ] = "~Wrap text" ; 135facb16e7SArmin Le Grand QuickHelpText [ en-US ] = "Wrap texts automatically."; 136facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_CBX_WRAP; 137facb16e7SArmin Le Grand }; 138facb16e7SArmin Le Grand CheckBox CBX_MERGE 139facb16e7SArmin Le Grand { 140facb16e7SArmin Le Grand Pos = MAP_APPFONT ( CBX_MERGE_X , CBX_MERGE_Y ) ; 141facb16e7SArmin Le Grand Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH - CBX_WRAP_X - 1 , CBOX_HEIGHT ) ;// 142facb16e7SArmin Le Grand TabStop = TRUE ; 143facb16e7SArmin Le Grand Text [ en-US ] = "~Merge cells" ; 144facb16e7SArmin Le Grand QuickHelpText [ en-US ] = "Joins the selected cells into one."; 145facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_CBX_MERGE; 146facb16e7SArmin Le Grand }; 147facb16e7SArmin Le Grand //------------ Text orientation ------------ 148facb16e7SArmin Le Grand FixedText FT_ORIENT 149facb16e7SArmin Le Grand { 150facb16e7SArmin Le Grand Pos = MAP_APPFONT ( FT_ORIENT_X, FT_ORIENT_Y ); 151facb16e7SArmin Le Grand Size = MAP_APPFONT ( TEXT_WIDTH + 50, TEXT_HEIGHT) ; 152facb16e7SArmin Le Grand Text [ en-US ] = "Text ~orientation:"; 153facb16e7SArmin Le Grand }; 154facb16e7SArmin Le Grand MetricBox CBOX_ANGLE 155facb16e7SArmin Le Grand { 156facb16e7SArmin Le Grand Border = TRUE ; 157facb16e7SArmin Le Grand Pos = MAP_APPFONT ( COMOBX_ROTATION_X , COMOBX_ROTATION_Y ); 158facb16e7SArmin Le Grand Size = MAP_APPFONT ( MBOX_WIDTH + 20, MBOX_HEIGHT ) ; 159facb16e7SArmin Le Grand Unit = FUNIT_CUSTOM ; 160facb16e7SArmin Le Grand CustomUnitText [ en-US ] = " degrees"; 161facb16e7SArmin Le Grand DecimalDigits = 0; 162facb16e7SArmin Le Grand Minimum = 0; 163facb16e7SArmin Le Grand Maximum = 359; 164facb16e7SArmin Le Grand TabStop = TRUE ; 165facb16e7SArmin Le Grand DropDown = TRUE ; 166facb16e7SArmin Le Grand QuickHelpText [ en-US ] = "Select the angle for rotation."; 167facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_MBX_ANGLE; 168facb16e7SArmin Le Grand }; 169facb16e7SArmin Le Grand 170facb16e7SArmin Le Grand Control DIAL_CONTROL 171facb16e7SArmin Le Grand { 172facb16e7SArmin Le Grand Pos = MAP_APPFONT ( ROTATE_CONTROL_X , ROTATE_CONTROL_Y ); 173facb16e7SArmin Le Grand Size = MAP_PIXEL( 50, 50 ); 174facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_DIAL_CONTROL; 175facb16e7SArmin Le Grand QuickHelpText [ en-US ] = "Drag to change the rotation value."; 176facb16e7SArmin Le Grand }; 177facb16e7SArmin Le Grand CheckBox CBX_VERT 178facb16e7SArmin Le Grand { 179facb16e7SArmin Le Grand Pos = MAP_APPFONT ( CBX_VERT_X , CBX_VERT_Y ) ; 180facb16e7SArmin Le Grand Size = MAP_APPFONT ( MBOX_WIDTH + 20 , CBOX_HEIGHT + 5 ) ; 181facb16e7SArmin Le Grand TabStop = TRUE ; 182facb16e7SArmin Le Grand Text [ en-US ] = "~Vertically stacked" ; 183facb16e7SArmin Le Grand QuickHelpText [ en-US ] = "Aligns text vertically."; 184facb16e7SArmin Le Grand HelpID = HID_PROPERTY_PANEL_ALIGN_CBX_VERT; 185facb16e7SArmin Le Grand }; 186facb16e7SArmin Le Grand 187facb16e7SArmin Le Grand Image IMG_ALIGN_LEFT 188facb16e7SArmin Le Grand { 189facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_alignleft.png";}; 190facb16e7SArmin Le Grand }; 191facb16e7SArmin Le Grand Image IMG_ALIGN_CENTER 192facb16e7SArmin Le Grand { 193facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_aligncenter.png";}; 194facb16e7SArmin Le Grand }; 195facb16e7SArmin Le Grand Image IMG_ALIGN_RIGHT 196facb16e7SArmin Le Grand { 197facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_alignright.png";}; 198facb16e7SArmin Le Grand }; 199facb16e7SArmin Le Grand Image IMG_ALIGN_JUST 200facb16e7SArmin Le Grand { 201facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_alignjust.png";}; 202facb16e7SArmin Le Grand }; 203facb16e7SArmin Le Grand Image IMG_ALIGN_TOP 204facb16e7SArmin Le Grand { 205facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_aligntop.png";}; 206facb16e7SArmin Le Grand }; 207facb16e7SArmin Le Grand Image IMG_ALIGN_CENTER_V 208facb16e7SArmin Le Grand { 209facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_aligncenter_v.png";}; 210facb16e7SArmin Le Grand }; 211facb16e7SArmin Le Grand Image IMG_ALIGN_BOTTOM 212facb16e7SArmin Le Grand { 213facb16e7SArmin Le Grand ImageBitmap = Bitmap{File = "sidebar/sc_alignbottom.png";}; 214facb16e7SArmin Le Grand }; 215facb16e7SArmin Le Grand}; 216facb16e7SArmin Le Grand 217facb16e7SArmin Le Grand// eof 218