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 "about.hrc" 25 26#define BTN_WIDTH 50 27#define BTN_HEIGHT 14 28 29ModalDialog RID_DEFAULTABOUT 30{ 31 HelpID = "cui:ModalDialog:RID_DEFAULTABOUT"; 32 OutputSize = TRUE ; 33 Moveable = TRUE ; 34 SVLook = TRUE ; 35 Text [ en-US ] = "About %PRODUCTNAME" ; 36 OKButton RID_CUI_ABOUT_BTN_OK 37 { 38 DefButton = TRUE ; 39 Size = MAP_APPFONT ( BTN_WIDTH , BTN_HEIGHT ) ; 40 }; 41 PushButton RID_CUI_ABOUT_BTN_README 42 { 43 DefButton = FALSE ; 44 Size = MAP_APPFONT ( BTN_WIDTH , BTN_HEIGHT ) ; 45 Text [ en-US ] = "License..." ; 46 }; 47 FixedText RID_CUI_ABOUT_FTXT_VERSION 48 { 49 WordBreak = TRUE ; 50 Text = "%PRODUCTNAME %ABOUTBOXPRODUCTVERSION %PRODUCTEXTENSION" ; 51 }; 52 MultiLineEdit RID_CUI_ABOUT_FTXT_BUILDDATA 53 { 54 //HelpID = "cui:MultiLineEdit:RID_DEFAULTABOUT:ABOUT_FTXT_BUILDDATA"; 55 Border = FALSE ; 56 IgnoreTab = TRUE ; 57 ReadOnly = TRUE ; 58 AutoVScroll = FALSE ; 59 }; 60 MultiLineEdit RID_CUI_ABOUT_FTXT_COPYRIGHT 61 { 62 HelpID = "cui:MultiLineEdit:RID_DEFAULTABOUT:ABOUT_FTXT_COPYRIGHT"; 63 Border = FALSE ; 64 IgnoreTab = TRUE ; 65 ReadOnly = TRUE ; 66 AutoVScroll = FALSE ; 67 }; 68 FixedText RID_CUI_ABOUT_FTXT_WELCOME_LINK 69 { 70 Left = TRUE ; 71 Text = "http://www.openoffice.org/welcome/credits.html"; 72 }; 73 String RID_CUI_ABOUT_STR_COPYRIGHT 74 { 75 Text[ en-US ] = "Copyright © 2012 Apache Software Foundation.\nAll rights reserved.\n\nThis product was created by %OOOVENDOR, based on Apache OpenOffice.\nApache OpenOffice acknowledges all community members, especially those mentioned at"; 76 }; 77 78 Image RID_CUI_ABOUT_LOGO 79 { 80 ImageBitmap = Bitmap { File = "orb.png"; }; 81 }; 82}; 83 84 85#define TAB_WIDTH 290 86#define TAB_HEIGHT 270 87 88#define CTRL_MARGIN 3 89#define DLG_WIDTH CTRL_MARGIN + TAB_WIDTH + CTRL_MARGIN 90#define DLG_HEIGHT CTRL_MARGIN + TAB_HEIGHT + CTRL_MARGIN + BTN_HEIGHT + CTRL_MARGIN 91 92ModalDialog RID_CUI_README_DLG 93{ 94 OutputSize = TRUE ; 95 SvLook = TRUE ; 96 Moveable = TRUE ; 97 Closeable = TRUE; 98 Size = MAP_APPFONT ( DLG_WIDTH , DLG_HEIGHT ) ; 99 Text [ en-US ] = "Readme, License and Notice" ; 100 101 TabControl RID_CUI_README_TBCTL 102 { 103 OutputSize = TRUE ; 104 Pos = MAP_APPFONT( CTRL_MARGIN , CTRL_MARGIN ); 105 Size = MAP_APPFONT( TAB_WIDTH , TAB_HEIGHT ); 106 PageList = 107 { 108 PageItem 109 { 110 Identifier = RID_CUI_READMEPAGE ; 111 PageResID = RID_CUI_README_TBPAGE ; 112 Text [ en-US ] = "Readme" ; 113 }; 114 PageItem 115 { 116 Identifier = RID_CUI_LICENSEPAGE ; 117 PageResID = RID_CUI_README_TBPAGE ; 118 Text [ en-US ] = "License" ; 119 }; 120 PageItem 121 { 122 Identifier = RID_CUI_NOTICEPAGE ; 123 PageResID = RID_CUI_README_TBPAGE ; 124 Text [ en-US ] = "Notice" ; 125 }; 126 }; 127 }; 128 129 OKButton RID_CUI_README_OKBTN 130 { 131 DefButton = TRUE ; 132 Pos = MAP_APPFONT( 0, CTRL_MARGIN + TAB_HEIGHT + CTRL_MARGIN ); 133 Size = MAP_APPFONT ( BTN_WIDTH , BTN_HEIGHT ) ; 134 }; 135}; 136 137TabPage RID_CUI_README_TBPAGE 138{ 139 OutputSize = TRUE ; 140 SVLook = TRUE ; 141 Hide = TRUE ; 142 Size = MAP_APPFONT ( TAB_WIDTH , TAB_HEIGHT ) ; 143 144 MultiLineEdit RID_CUI_README_TBPAGE_EDIT 145 { 146 Border = TRUE ; 147 IgnoreTab = TRUE ; 148 ReadOnly = TRUE ; 149 AutoVScroll = TRUE ; 150 Pos = MAP_APPFONT( CTRL_MARGIN , CTRL_MARGIN ); 151 Size = MAP_APPFONT( TAB_WIDTH - CTRL_MARGIN - CTRL_MARGIN, TAB_HEIGHT - CTRL_MARGIN - CTRL_MARGIN ); 152 }; 153}; 154 155