summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/possize/PosSizePropertyPanel.src
blob: fd5996f51ce9bed6d30939203a19076780578207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
/*
 * 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 "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;
                ItemBitmap = Bitmap
                {
                    File = "symphony/FlipVertically_16x16.png";
                };
            };
            ToolBoxItem
            {
                Identifier = FLIP_HORIZONTAL ;
                Text [ en-US ] = "Flip Horizontally" ;
                HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_HORIZONTAL;
                ItemBitmap = Bitmap
                {
                    File = "symphony/FlipHorizontally_16x16.png";
                };
            };
        };
    };

    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.";
    };

    Image IMG_HORI_FLIP
    {
        ImageBitmap = Bitmap{File = "symphony/FlipHorizontally_16x16.png";};
    };
    Image IMG_VERT_FLIP
    {
        ImageBitmap = Bitmap{File = "symphony/FlipVertically_16x16.png";};
    };

    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