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#include <sfx2/sidebar/propertypanel.hrc> 23#include "PropertyPanel.hrc" 24#include "WrapPropertyPanel.hrc" 25#include "helpid.h" 26 27#define IMAGEBUTTON_WIDTH 16 28#define IMAGEBUTTON_HEIGH 18 29#define IMAGEBUTTON_GAP 1 30 31Control RID_PROPERTYPANEL_SWOBJWRAP_PAGE 32{ 33 OutputSize = TRUE; 34 DialogControl = TRUE; 35 Border = FALSE; 36 37 Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, SECTIONPAGE_MARGIN_VERTICAL_BOT + SECTIONPAGE_MARGIN_VERTICAL_TOP + IMAGEBUTTON_HEIGH ); 38 HelpID = HID_PROPERTYPANEL_WRAP_SECTION ; 39 Text [ en-US ] = "Wrap"; 40 41 42 ImageRadioButton RB_NO_WRAP 43 { 44 Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP ); 45 Size = MAP_APPFONT ( IMAGEBUTTON_WIDTH , IMAGEBUTTON_HEIGH ); 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_HEIGH ); 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_HEIGH ); 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_HEIGH ); 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_HEIGH ); 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_HEIGH ); 86 TopImage = True; 87 HelpID = HID_PROPERTYPANEL_WRAP_RB_WRAP_IDEAL ; 88 QuickHelpText [ en-US ] = "Optimal"; 89 }; 90}; 91