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#include "testtool.hrc" 24#include <svl/solar.hrc> 25 26 27#define Control_Control 5 28#define Control_Border 7 29#define Button_Button Control_Control 30#define ButtonWidth 40 31 32 33ToolBox DisplayHidToolBox { 34 SVLook = TRUE ; 35 ItemList = { 36 ToolBoxItem { 37 Type = TOOLBOXITEM_BUTTON; 38 _ToolBoxItemFlags = TIB_AUTOCHECK ; 39 40/* 41class FlagToolBoxState 42{ 43 TIB_CHECKABLE, TIB_AUTOCHECK, TIB_RADIOCHECK, TIB_LEFT, 44 TIB_AUTOSIZE, TIB_DROPDOWN, 45};*/ 46 Identifier = TT_SHOW; 47 ItemBitmap = Bitmap { 48 File = "ttshow.png"; 49 }; 50 Text[ en-US ] = "Display IDs"; 51 }; 52 ToolBoxItem { 53 Type = TOOLBOXITEM_SEPARATOR; 54 }; 55 ToolBoxItem { 56 _ToolBoxItemFlags = TIB_AUTOSIZE; 57 Identifier = TT_OUTPUT; 58 Text[ en-US ] = "This is the input window"; 59 }; 60 ToolBoxItem { 61 Type = TOOLBOXITEM_SEPARATOR; 62 }; 63 ToolBoxItem { 64 Identifier = TT_SEND_DATA; 65 ItemBitmap = Bitmap { 66 File = "ttremote.png"; 67 }; 68 Text[ en-US ] = "Transfer to TestTool"; 69 }; 70 ToolBoxItem { 71 Type = TOOLBOXITEM_SEPARATOR; 72 }; 73 ToolBoxItem { 74 Identifier = TT_ALLWIN; 75 ItemBitmap = Bitmap { 76 File = "ttall.png"; 77 }; 78 Text[ en-US ] = "Show all windows"; 79 }; 80 ToolBoxItem { 81 Identifier = TT_KURZNAME; 82 ItemBitmap = Bitmap { 83 File = "ttdef.png"; 84 }; 85 Text[ en-US ] = "Show short names (if available)"; 86 }; 87 ToolBoxItem { 88 Identifier = TT_LANGNAME; 89 ItemBitmap = Bitmap { 90 File = "tthid.png"; 91 }; 92 Text[ en-US ] = "Always show long-name"; 93 }; 94 }; 95 Text[ en-US ] = "DisplayHID"; 96}; 97 98Bitmap TT_SHOW2 { 99 File = "ttshow2.png"; 100}; 101 102WorkWindow TT_INLINE_TRANSLATION { 103 HelpID = "svtools:WorkWindow:TT_INLINE_TRANSLATION"; 104 SVLook = TRUE; 105 Size = MAP_APPFONT( 2*Control_Border + 4*ButtonWidth + 3*Button_Button, 120 ); 106 Moveable = TRUE; 107 Sizeable = TRUE; 108 Closeable = TRUE; 109 Border = TRUE; 110 GroupBox TT_GB_TRANSLATION { 111 Pos = MAP_APPFONT( 2, 3 ); 112 Size = MAP_APPFONT( 173, 44 ); 113 Text[ en-US ] = "Translation"; 114 }; 115 Edit TT_E_NEW { 116 HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_NEW"; 117 Disable = TRUE; 118 Border = TRUE; 119 Pos = MAP_APPFONT( 7, 16 ); 120 Size = MAP_APPFONT( 162, 12 ); 121 TabStop = TRUE; 122 Text[ en-US ] = "~Edit"; 123 }; 124 FixedText TT_FT_OLD { 125 Pos = MAP_APPFONT( 7, 33 ); 126 Size = MAP_APPFONT( 162, 10 ); 127 Text[ en-US ] = "Original Text"; 128 }; 129 GroupBox TT_GB_COMMENT { 130 Pos = MAP_APPFONT( 2, 52 ); 131 Size = MAP_APPFONT( 173, 32 ); 132 Text[ en-US ] = "Comment"; 133 }; 134 Edit TT_E_COMMENT { 135 HelpID = "svtools:Edit:TT_INLINE_TRANSLATION:TT_E_COMMENT"; 136 Disable = TRUE; 137 Border = TRUE; 138 Pos = MAP_APPFONT( 7, 64 ); 139 Size = MAP_APPFONT( 162, 12 ); 140 TabStop = TRUE; 141 Text[ en-US ] = "~Comment"; 142 }; 143 PushButton TT_PB_SELECT { 144 HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_SELECT"; 145 Pos = MAP_APPFONT( Control_Border, 89 ); 146 Size = MAP_APPFONT( ButtonWidth, 12 ); 147 TabStop = TRUE; 148 Text[ en-US ] = "~Select"; 149 }; 150 PushButton TT_PB_RESTORE { 151 HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_RESTORE"; 152 Disable = TRUE; 153 Pos = MAP_APPFONT( Control_Border + ButtonWidth + Button_Button, 89 ); 154 Size = MAP_APPFONT( ButtonWidth, 12 ); 155 TabStop = TRUE; 156 Text[ en-US ] = "~Restore"; 157 }; 158 PushButton TT_PB_ACCEPT { 159 HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_ACCEPT"; 160 Disable = TRUE; 161 Pos = MAP_APPFONT( Control_Border + 2*(ButtonWidth + Button_Button), 89 ); 162 Size = MAP_APPFONT( ButtonWidth, 12 ); 163 TabStop = TRUE; 164 Text[ en-US ] = "~Accept"; 165 }; 166 PushButton TT_PB_NEXT { 167 HelpID = "svtools:PushButton:TT_INLINE_TRANSLATION:TT_PB_NEXT"; 168 Pos = MAP_APPFONT( Control_Border + 3*(ButtonWidth + Button_Button), 89 ); 169 Size = MAP_APPFONT( ButtonWidth, 12 ); 170 TabStop = TRUE; 171 Text[ en-US ] = "~Next"; 172 }; 173 Text[ en-US ] = "Inplace Translation"; 174}; 175 176MessBox TT_DISCARD_CHANGED_DATA { 177 Buttons = WB_YES_NO; 178 DefButton = WB_DEF_YES; 179 Message[ en-US ] = "The Translation will be lost. Proceed anyway?"; 180}; 181 182ErrorBox TT_NO_CONTROL { 183 Buttons = WB_OK; 184 DefButton = WB_DEF_OK; 185 Message[ en-US ] = "The Control is no longer valid. The Translation cannot be saved."; 186}; 187 188String TT_GPF 189{ 190 Text[ en-US ] = "GPF occurred"; 191}; 192 193String TT_ALTERNATE_CAPTION 194{ 195 Text[ en-US ] = "HelpID does not match UniqueID: "; 196}; 197 198