1/**************************************************************
2*
3* Licensed to the Apache Software Foundation (ASF) under one
4* or more contributor license agreements.  See the NOTICE file
5* distributed with this work for additional information
6* regarding copyright ownership.  The ASF licenses this file
7* to you under the Apache License, Version 2.0 (the
8* "License"); you may not use this file except in compliance
9* with the License.  You may obtain a copy of the License at
10*
11*   http://www.apache.org/licenses/LICENSE-2.0
12*
13* Unless required by applicable law or agreed to in writing,
14* software distributed under the License is distributed on an
15* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16* KIND, either express or implied.  See the License for the
17* specific language governing permissions and limitations
18* under the License.
19*
20*************************************************************/
21
22
23
24#include <sfx2/sidebar/ResourceDefinitions.hrc>
25#include "PropertyPanel.hrc"
26#include "WrapPropertyPanel.hrc"
27#include "helpid.h"
28
29#define IMAGEBUTTON_WIDTH 16
30#define IMAGEBUTTON_HEIGHT 18
31#define IMAGEBUTTON_GAP 1
32
33Control RID_PROPERTYPANEL_SWOBJWRAP_PAGE
34{
35	OutputSize = TRUE ;
36	DialogControl = TRUE ;
37	Border = FALSE ;
38
39	Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, SECTIONPAGE_MARGIN_VERTICAL_BOT + SECTIONPAGE_MARGIN_VERTICAL_TOP + IMAGEBUTTON_HEIGHT ) ;
40	HelpID = HID_PROPERTYPANEL_WRAP_SECTION ;
41	Text [ en-US ] = "Wrap" ;
42	ImageRadioButton RB_NO_WRAP
43	{
44		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
45		Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH, IMAGEBUTTON_HEIGHT ) ;
46		TopImage = True ;
47		HelpID = HID_PROPERTYPANEL_WRAP_RB_NO_WRAP ;
48		QuickHelpText [ en-US ] = "None" ;
49	};
50	ImageRadioButton RB_WRAP_LEFT
51	{
52		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + IMAGEBUTTON_WIDTH + IMAGEBUTTON_GAP, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
53		Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH, IMAGEBUTTON_HEIGHT );
54		TopImage = True ;
55		HelpID = HID_PROPERTYPANEL_WRAP_RB_WRAP_LEFT ;
56		QuickHelpText [ en-US ] = "Before" ;
57	};
58	ImageRadioButton RB_WRAP_RIGHT
59	{
60		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + ( IMAGEBUTTON_WIDTH + IMAGEBUTTON_GAP ) * 2, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
61		Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH, IMAGEBUTTON_HEIGHT ) ;
62		TopImage = True ;
63		HelpID = HID_PROPERTYPANEL_WRAP_RB_WRAP_RIGHT ;
64		QuickHelpText [ en-US ] = "After" ;
65	};
66	ImageRadioButton RB_WRAP_PARALLEL
67	{
68		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + ( IMAGEBUTTON_WIDTH + IMAGEBUTTON_GAP ) * 3, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
69		Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH, IMAGEBUTTON_HEIGHT ) ;
70		TopImage = True ;
71		HelpID = HID_PROPERTYPANEL_WRAP_RB_WRAP_PARALLEL ;
72		QuickHelpText [ en-US ] = "Parallel" ;
73	};
74	ImageRadioButton RB_WRAP_THROUGH
75	{
76		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + ( IMAGEBUTTON_WIDTH + IMAGEBUTTON_GAP ) * 4, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
77		Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH, IMAGEBUTTON_HEIGHT ) ;
78		TopImage = True ;
79		HelpID = HID_PROPERTYPANEL_WRAP_RB_WRAP_THROUGH ;
80		QuickHelpText [ en-US ] = "Through" ;
81	};
82	ImageRadioButton RB_WRAP_IDEAL
83	{
84		Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + ( IMAGEBUTTON_WIDTH + IMAGEBUTTON_GAP ) * 5, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
85		Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH, IMAGEBUTTON_HEIGHT ) ;
86		TopImage = True ;
87		HelpID = HID_PROPERTYPANEL_WRAP_RB_WRAP_IDEAL ;
88		QuickHelpText [ en-US ] = "Optimal" ;
89	};
90};
91
92// ******************************************************************* EOF
93