Files
loongoffice/svx/source/sidebar/area/AreaPropertyPanel.src
Caolán McNamara 35c31f5f40 convert document recovery dialog to .ui
and move sidebar global resource defines up to the toplevel so its harder to
collide with them and adjust the define to indicate the next free resource
id.

and simplify the dialog down a good bit and remove intermediate classes
etc.

Change-Id: I8d6db17fcdfc86457368d7f432bd96f6f3aa182d
2014-06-04 15:07:36 +01:00

261 lines
7.9 KiB
Plaintext

/* -*- 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 "AreaPropertyPanel.hrc"
#include <sfx2/sidebar/ResourceDefinitions.hrc>
#include <svx/dialogs.hrc>
#include "helpid.hrc"
#define TOOLBOX_WIDTH 50
#define TOOLBOX_HEIGHT 17
Image IMG_AXIAL
{
ImageBitmap = Bitmap{File = "symphony/axial.png";};
};
Image IMG_ELLI
{
ImageBitmap = Bitmap{File = "symphony/ellipsoid.png";};
};
Image IMG_QUAD
{
ImageBitmap = Bitmap{File = "symphony/Quadratic.png";};
};
Image IMG_RADIAL
{
ImageBitmap = Bitmap{File = "symphony/radial.png";};
};
Image IMG_SQUARE
{
ImageBitmap = Bitmap{File = "symphony/Square.png";};
};
Image IMG_LINEAR
{
ImageBitmap = Bitmap{File = "symphony/linear.png";};
};
Image IMG_AREA_COLOR
{
ImageBitmap = Bitmap{File = "symphony/fill_color.png";};
};
Image IMG_ROT_LEFT
{
ImageBitmap = Bitmap{File = "symphony/rotate_left.png";};
};
Image IMG_ROT_RIGHT
{
ImageBitmap = Bitmap{File = "symphony/rotate_right.png";};
};
Control RID_POPUPPANEL_AREAPAGE_TRGR
{
OutputSize = TRUE;
DialogControl = TRUE;
Border = FALSE;
FixedText FT_TRGR_CENTER_X
{
Size = MAP_APPFONT ( CONTROL_WIDTH , FIXED_TEXT_HEIGHT ) ;
Text [ en-US ] = "Center ~X:";
};
MetricField MTR_TRGR_CENTER_X
{
Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_X ;
QuickHelpText [ en-US ] = "Specify the horizontal offset percentage from the center for the gradient shading style. 50% is the horizontal center." ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 100 ;
StrictFormat = TRUE ;
Unit = FUNIT_PERCENT ;
Last = 100 ;
SpinSize = 5 ;
};
FixedText FT_TRGR_CENTER_Y
{
Size = MAP_APPFONT ( CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;//wj
Text [ en-US ] = "Center ~Y:";
};
MetricField MTR_TRGR_CENTER_Y
{
Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_Y ;
QuickHelpText [ en-US ] = "Specify the vertical offset percentage from the center for the gradient shading style. 50% is the vertical center." ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 100 ;
StrictFormat = TRUE ;
Unit = FUNIT_PERCENT ;
Last = 100 ;
SpinSize = 5 ;
};
FixedText FT_TRGR_ANGLE
{
Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;//wj
Text [ en-US ] = "~Angle:";
};
MetricField MTR_TRGR_ANGLE
{
Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_ANGLE ;
QuickHelpText [ en-US ] = "Specify the angle of rotation for the gradient shading style." ;
TabStop = FALSE ;
Repeat = TRUE ;
Spin = TRUE ;
Minimum = -9999 ;
Maximum = 9999 ;
Unit = FUNIT_CUSTOM ;
SpinSize = 1 ;
CustomUnitText [ en-US ] = " degrees";
};
FixedText FT_TRGR_START_VALUE
{
Size = MAP_APPFONT ( CONTROL_WIDTH , FIXED_TEXT_HEIGHT ) ;
Text [ en-US ] = "~Start value:";
};
MetricField MTR_TRGR_START_VALUE
{
Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_SVALUE ;
QuickHelpText [ en-US ] = "Enter a transparency value for the beginning point of the gradient, where 0% is fully opaque and 100% is fully transparent." ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 100 ;
StrictFormat = TRUE ;
Unit = FUNIT_PERCENT ;
Last = 100 ;
SpinSize = 5 ;
};
FixedText FT_TRGR_END_VALUE
{
Size = MAP_APPFONT (CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; //wj
Text [ en-US ] = "~End value:";
};
MetricField MTR_TRGR_END_VALUE
{
Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_EVALUE ;
QuickHelpText [ en-US ] = "Enter a transparency value for the endpoint of the gradient, where 0% is fully opaque and 100% is fully transparent." ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 100 ;
StrictFormat = TRUE ;
Unit = FUNIT_PERCENT ;
Last = 100 ;
SpinSize = 5 ;
};
FixedText FT_TRGR_BORDER
{
Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;
Text [ en-US ] = "~Border:";
};
MetricField MTR_TRGR_BORDER
{
Border = TRUE ;
Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_BORDER ;
QuickHelpText [ en-US ] = "Specify the border value of gradient transparency." ;
TabStop = TRUE ;
Repeat = TRUE ;
Spin = TRUE ;
Maximum = 100 ;
StrictFormat = TRUE ;
Unit = FUNIT_PERCENT ;
Last = 100 ;
SpinSize = 5 ;
};
ToolBox BTN_LEFT_SECOND
{
Border = FALSE ;
HelpID = HID_PPROPERTYPANEL_AREA_BTN_LEFT_SECOND ;
SVLook = TRUE ;
Border = FALSE ;
TabStop = TRUE ;
Text = "Rotate Left";
ItemList =
{
ToolBoxItem
{
Identifier = TBI_LEFT ;
Text = "Rotate Left" ;
ItemBitmap = Bitmap
{
// File = "symphony/rotate_left.png" ;
};
};
};
};
ToolBox BTN_RIGHT_FIRST
{
Border = FALSE ;
HelpID = HID_PPROPERTYPANEL_AREA_BTN_RIGHT_FIRST ;
SVLook = TRUE ;
Border = FALSE ;
TabStop = TRUE ;
Text = "Rotate Right";
ItemList =
{
ToolBoxItem
{
Identifier = TBI_RIGHT ;
Text = "Rotate Right" ;
ItemBitmap = Bitmap
{
// File = "symphony/rotate_right.png" ;
};
};
};
};
String STR_HELP_LEFT
{
Text [ en-US ] = "Rotate counterclockwise by 45 degrees." ;
};
String STR_HELP_RIGHT
{
Text [ en-US ] = "Rotate clockwise by 45 degrees." ;
};
};
Control RID_POPUPPANEL_AERAPAGE_COLOR
{
OutputSize = TRUE;
DialogControl = TRUE;
Border = FALSE;
Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
Control VS_COLOR
{
HelpID = HID_PPROPERTYPANEL_AREA_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 = "Color";
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */