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