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 79 80#define TAB_WIDTH 290 81#define TAB_HEIGHT 270 82 83#define CTRL_MARGIN 3 84#define DLG_WIDTH CTRL_MARGIN + TAB_WIDTH + CTRL_MARGIN 85#define DLG_HEIGHT CTRL_MARGIN + TAB_HEIGHT + CTRL_MARGIN + BTN_HEIGHT + CTRL_MARGIN 86 87ModalDialog RID_CUI_README_DLG 88{ 89 OutputSize = TRUE ; 90 SvLook = TRUE ; 91 Moveable = TRUE ; 92 Closeable = TRUE; 93 Size = MAP_APPFONT ( DLG_WIDTH , DLG_HEIGHT ) ; 94 Text [ en-US ] = "Readme, License and Notice" ; 95 96 TabControl RID_CUI_README_TBCTL 97 { 98 OutputSize = TRUE ; 99 Pos = MAP_APPFONT( CTRL_MARGIN , CTRL_MARGIN ); 100 Size = MAP_APPFONT( TAB_WIDTH , TAB_HEIGHT ); 101 PageList = 102 { 103 PageItem 104 { 105 Identifier = RID_CUI_READMEPAGE ; 106 PageResID = RID_CUI_README_TBPAGE ; 107 Text [ en-US ] = "Readme" ; 108 }; 109 PageItem 110 { 111 Identifier = RID_CUI_LICENSEPAGE ; 112 PageResID = RID_CUI_README_TBPAGE ; 113 Text [ en-US ] = "License" ; 114 }; 115 PageItem 116 { 117 Identifier = RID_CUI_NOTICEPAGE ; 118 PageResID = RID_CUI_README_TBPAGE ; 119 Text [ en-US ] = "Notice" ; 120 }; 121 }; 122 }; 123 124 OKButton RID_CUI_README_OKBTN 125 { 126 DefButton = TRUE ; 127 Pos = MAP_APPFONT( 0, CTRL_MARGIN + TAB_HEIGHT + CTRL_MARGIN ); 128 Size = MAP_APPFONT ( BTN_WIDTH , BTN_HEIGHT ) ; 129 }; 130}; 131 132TabPage RID_CUI_README_TBPAGE 133{ 134 OutputSize = TRUE ; 135 SVLook = TRUE ; 136 Hide = TRUE ; 137 Size = MAP_APPFONT ( TAB_WIDTH , TAB_HEIGHT ) ; 138 139 MultiLineEdit RID_CUI_README_TBPAGE_EDIT 140 { 141 Border = TRUE ; 142 IgnoreTab = TRUE ; 143 ReadOnly = TRUE ; 144 AutoVScroll = TRUE ; 145 Pos = MAP_APPFONT( CTRL_MARGIN , CTRL_MARGIN ); 146 Size = MAP_APPFONT( TAB_WIDTH - CTRL_MARGIN - CTRL_MARGIN, TAB_HEIGHT - CTRL_MARGIN - CTRL_MARGIN ); 147 }; 148}; 149 150