blob: 43717f3bc8be0d1c7109f776f6d77e4eb549db7c [file] [log] [blame]
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#include "PosSizePropertyPanel.hrc"
#include <sfx2/sidebar/ResourceDefinitions.hrc>
#include <svx/dialogs.hrc>
#include "helpid.hrc"
#define TOOLBOX_HEIGHT 14
Control RID_SIDEBAR_POSSIZE_PANEL
{
OutputSize = TRUE;
DialogControl = TRUE;
Border = FALSE;
Size = MAP_APPFONT(
PROPERTYPAGE_WIDTH,
BTN_FLIP_HORI_Y + TOOLBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT);
HelpID = HID_PROPERTYPANEL_POSIZE_SECTION ;
Text = "Position and Size";
FixedText FT_WIDTH
{
Pos = MAP_APPFONT ( FT_WIDTH_X, FT_WIDTH_Y );
Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ;
Text [ en-US ] = "~Width:";
};
MetricField MTR_FLD_WIDTH
{
Border = TRUE ;
Pos = MAP_APPFONT ( FLD_WIDTH_X, FLD_WIDTH_Y );
Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
QuickHelpText [ en-US ] = "Enter a width for the selected object.";
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 9999 ;
StrictFormat = TRUE ;
Unit = FUNIT_INCH;
Last = 9999 ;
SpinSize = 2 ;
HelpID = HID_PROPERTY_PANEL_POSIZE_MTR_FLD_WIDTH;
};
FixedText FT_HEIGHT
{
Pos = MAP_APPFONT ( FT_HEIGHT_X, FT_HEIGHT_Y );
Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ;
Text [ en-US ] = "H~eight:";
};
MetricField MTR_FLD_HEIGHT
{
Border = TRUE ;
Pos = MAP_APPFONT ( FLD_HEIGHT_X, FLD_HEIGHT_Y );
Size = MAP_APPFONT ( MBOX_WIDTH + 1, MBOX_HEIGHT ) ;
QuickHelpText [ en-US ] = "Enter a height for the selected object.";
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 9999 ;
StrictFormat = TRUE ;
Unit = FUNIT_INCH;
Last = 9999 ;
SpinSize = 2 ;
HelpID = HID_PROPERTY_PANEL_POSIZE_MTR_FLD_HEIGHT;
};
CheckBox CBX_SCALE
{
Pos = MAP_APPFONT ( CBX_X , CBX_Y ) ;
Size = MAP_APPFONT ( MBOX_WIDTH + 30 , CBOX_HEIGHT ) ;
TabStop = TRUE ;
Text [ en-US ] = "~Keep ratio" ;
QuickHelpText [ en-US ] = "Maintain proportions when you resize the selected object.";
HelpID = HID_PROPERTY_PANEL_POSIZE_CBX_SCALE;
};
//------------ Position ------------
FixedText FT_SBSHAPE_HORIZONTAL
{
Pos = MAP_APPFONT ( FT_POSITION_X_X, FT_POSITION_X_Y );
Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ;
Text [ en-US ] = "~Horizontal:";
};
MetricField MF_SBSHAPE_HORIZONTAL
{
Border = TRUE;
Pos = MAP_APPFONT ( MF_POSITION_X_X , MF_POSITION_X_Y );
Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
QuickHelpText [ en-US ] = "Enter the value for the horizontal position.";
TabStop = TRUE;
Repeat = TRUE;
Spin = TRUE;
Minimum = -120000;
Maximum = 240000;
StrictFormat = TRUE;
DecimalDigits = 2;
Unit = FUNIT_MM;
SpinSize = 10;
HelpID = HID_PROPERTY_PANEL_POSIZE_MF_HORIZONTAL;
};
FixedText FT_SBSHAPE_VERTICAL
{
Pos = MAP_APPFONT ( FT_POSITION_Y_X , FT_POSITION_Y_Y );
Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT) ;
Text [ en-US ] = "~Vertical:";
};
MetricField MF_SBSHAPE_VERTICAL
{
Border = TRUE;
Pos = MAP_APPFONT ( MF_POSITION_Y_X , MF_POSITION_Y_Y );
Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
QuickHelpText [ en-US ] = "Enter the value for the vertical position.";
TabStop = TRUE;
Repeat = TRUE;
Spin = TRUE;
Minimum = -120000;
Maximum = 240000;
StrictFormat = TRUE;
DecimalDigits = 2;
Unit = FUNIT_MM;
SpinSize = 10;
HelpID = HID_PROPERTY_PANEL_POSIZE_MF_VERTICAL;
};
FixedText FT_ANGLE
{
Pos = MAP_APPFONT ( FT_ROTATION_X , FT_ROTATION_Y );
Size = MAP_APPFONT ( TEXT_WIDTH + 50, TEXT_HEIGHT) ;
Text [ en-US ] = "~Rotation:";
};
MetricBox MTR_FLD_ANGLE
{
Border = TRUE ;
Pos = MAP_APPFONT ( MF_ROTATION_X , MF_ROTATION_Y );
Size = MAP_APPFONT ( MBOX_WIDTH + 10, MBOX_HEIGHT ) ;
QuickHelpText [ en-US ] = "Select the angle for rotation.";
Unit = FUNIT_CUSTOM ;
CustomUnitText [ en-US ] = " degrees";
DecimalDigits = 2;
Minimum = -18000; // set minmun value or it will be 0 as default
TabStop = TRUE ;
DropDown = TRUE ;
HelpID = HID_PROPERTY_PANEL_POSIZE_MTR_FLD_ANGLE;
};
FixedText FT_FLIP
{
Pos = MAP_APPFONT ( FT_FLIP_X , FT_FLIP_Y );
Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH - SECTIONPAGE_MARGIN_HORIZONTAL*2 - 40 - CONTROL_SPACING_HORIZONTAL - TOOLBOX_ITEM_WIDTH * 2 , TEXT_HEIGHT) ;//20 wj
Text [ en-US ] = "~Flip:";
};
ToolBox TBX_FLIP
{
Pos = MAP_APPFONT ( BTN_FLIP_HORI_X , BTN_FLIP_HORI_Y );
Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 2, TOOLBOX_HEIGHT);
SVLook = TRUE ;
Border = FALSE ;
HelpID = HID_PROPERTY_PANEL_POSIZE_TBX_FLIP;
Text = "Flip";
ItemList =
{
ToolBoxItem
{
Identifier = FLIP_VERTICAL ;
Text [ en-US ] = "Flip Vertically" ;
HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_VERTICAL;
};
ToolBoxItem
{
Identifier = FLIP_HORIZONTAL ;
Text [ en-US ] = "Flip Horizontally" ;
HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_HORIZONTAL;
};
};
};
String STR_QH_HORI_FLIP
{
Text [ en-US ] = "Flip the selected object horizontally.";
};
String STR_QH_VERT_FLIP
{
Text [ en-US ] = "Flip the selected object vertically.";
};
Control DIAL_CONTROL
{
Pos = MAP_APPFONT ( ROTATE_CONTROL_X , ROTATE_CONTROL_Y );
Size = MAP_PIXEL( 50, 50 );
HelpID = HID_PROPERTY_PANEL_POSIZE_DIAL_CONTROL;
};
};
// eof