1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28#define __RSC 29 30#include "newerverwarn.hrc" 31#include "ids.hrc" 32 33#define STD_MASKCOLOR Color { Red=0xffff; Green=0x0000; Blue=0xffff; } 34 35ModalDialog RID_DLG_NEWER_VERSION_WARNING 36{ 37 HelpId = HID_DLG_NEWERVERSIONWARNING; 38 OutputSize = TRUE ; 39 Size = MAP_APPFONT ( DLG_WIDTH , DLG_HEIGHT ) ; 40 SvLook = TRUE ; 41 Moveable = TRUE ; 42 Closeable = TRUE ; 43 Text [ en-US ] = "%PRODUCTNAME Update Available" ; 44 FixedImage FI_IMAGE 45 { 46 Pos = MAP_APPFONT ( COL_1 , ROW_1 ); 47 Size = MAP_APPFONT ( IMAGE_WIDTH , IMAGE_HEIGHT ); 48 Hide = FALSE; 49 Fixed = Image 50 { 51 ImageBitmap = Bitmap { File = "versionwarning.png"; }; 52 MaskColor = STD_MASKCOLOR; 53 }; 54 }; 55 FixedText FT_INFO 56 { 57 Pos = MAP_APPFONT( COL_2, ROW_1 ); 58 Size = MAP_APPFONT( INFO_WIDTH, INFO_LINES * RSC_CD_FIXEDTEXT_HEIGHT ); 59 Wordbreak = TRUE; 60 Text [ en-US ] = "This document was created by a newer version of %PRODUCTNAME. It may contain features not supported by your current version.\n\nClick 'Update Now...' to run online update and get the latest version of %PRODUCTNAME."; 61 }; 62 FixedLine FL_BUTTON 63 { 64 Pos = MAP_APPFONT ( 0 , ROW_2 ) ; 65 Size = MAP_APPFONT ( DLG_WIDTH , RSC_CD_FIXEDLINE_HEIGHT ) ; 66 }; 67 PushButton PB_UPDATE 68 { 69 HelpID = "uui:PushButton:RID_DLG_NEWER_VERSION_WARNING:PB_UPDATE"; 70 Pos = MAP_APPFONT ( COL_3 , ROW_3 ) ; 71 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 72 TabStop = TRUE ; 73 Text [ en-US ] = "~Update Now..." ; 74 }; 75 CancelButton PB_LATER 76 { 77 Pos = MAP_APPFONT ( COL_4 , ROW_3 ) ; 78 Size = MAP_APPFONT ( RSC_CD_PUSHBUTTON_WIDTH , RSC_CD_PUSHBUTTON_HEIGHT ) ; 79 TabStop = TRUE ; 80 Text [ en-US ] = "~Later" ; 81 }; 82}; 83