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#ifndef _DBU_DLG_HRC_ 29#include "dbu_dlg.hrc" 30#endif 31#include "dbaccess_helpid.hrc" 32#include "CollectionView.hrc" 33 34#define WIN_X 200 35#define WIN_Y 192 36 37#define CHECKBOX_HEIGHT 8 38#define FIXEDTEXT_HEIGHT 8 39#define RELATED_CONTROLS 4 40#define UNRELATED_CONTROLS 7 41#define EDIT_HEIGHT 12 42#define BUTTON_HEIGHT 14 43#define FIXEDLINE_HEIGHT 1 44#define IMG_SIZE 15 45 46 47ModalDialog DLG_COLLECTION_VIEW 48{ 49 OutputSize = TRUE ; 50 SVLook = TRUE ; 51 Moveable = TRUE ; 52 Closeable = TRUE ; 53 //Sizeable = TRUE; 54 HelpId = HID_EXPLORERDLG_COLLECTION ; 55 56 Size = MAP_APPFONT ( WIN_X , WIN_Y ) ; 57 Text [ en-US ] = "Save" ; 58 59 FixedText FT_EXPLORERFILE_CURRENTPATH 60 { 61 Pos = MAP_APPFONT ( UNRELATED_CONTROLS , UNRELATED_CONTROLS ) ; 62 Size = MAP_APPFONT ( 100 , FIXEDTEXT_HEIGHT ) ; 63 NoLabel = TRUE ; 64 }; 65 ImageButton BTN_EXPLORERFILE_NEWFOLDER 66 { 67 HelpID = "dbaccess:ImageButton:DLG_COLLECTION_VIEW:BTN_EXPLORERFILE_NEWFOLDER"; 68 TabStop = FALSE ; 69 Pos = MAP_APPFONT ( WIN_X - UNRELATED_CONTROLS - RELATED_CONTROLS - 2*IMG_SIZE, UNRELATED_CONTROLS ) ; 70 Size = MAP_APPFONT ( IMG_SIZE , IMG_SIZE ) ; 71 QuickHelpText [ en-US ] = "Create New Directory" ; 72 }; 73 ImageButton BTN_EXPLORERFILE_UP 74 { 75 HelpID = "dbaccess:ImageButton:DLG_COLLECTION_VIEW:BTN_EXPLORERFILE_UP"; 76 TabStop = TRUE ; 77 Pos = MAP_APPFONT ( WIN_X - UNRELATED_CONTROLS - IMG_SIZE, UNRELATED_CONTROLS ) ; 78 Size = MAP_APPFONT ( IMG_SIZE , IMG_SIZE ) ; 79 QuickHelpText [ en-US ] = "Up One Level" ; 80 }; 81 82 Control CTRL_VIEW 83 { 84 TabStop = TRUE ; 85 Pos = MAP_APPFONT ( UNRELATED_CONTROLS , 2*UNRELATED_CONTROLS + IMG_SIZE) ; 86 Size = MAP_APPFONT ( WIN_X - 2*UNRELATED_CONTROLS , WIN_Y - 6*UNRELATED_CONTROLS - BUTTON_HEIGHT - IMG_SIZE - EDIT_HEIGHT - FIXEDTEXT_HEIGHT) ; 87 Border = TRUE ; 88 }; 89 90 FixedText FT_EXPLORERFILE_FILENAME 91 { 92 Pos = MAP_APPFONT ( UNRELATED_CONTROLS , WIN_Y - 3*UNRELATED_CONTROLS - BUTTON_HEIGHT - FIXEDLINE_HEIGHT - EDIT_HEIGHT ) ; 93 Size = MAP_APPFONT ( 50 , FIXEDTEXT_HEIGHT ) ; 94 Text [ en-US ] = "File ~name:" ; 95 }; 96 Edit ED_EXPLORERFILE_FILENAME 97 { 98 HelpID = "dbaccess:Edit:DLG_COLLECTION_VIEW:ED_EXPLORERFILE_FILENAME"; 99 Pos = MAP_APPFONT ( RELATED_CONTROLS + UNRELATED_CONTROLS + 50 , WIN_Y - 3*UNRELATED_CONTROLS - BUTTON_HEIGHT - FIXEDLINE_HEIGHT - EDIT_HEIGHT) ; 100 Size = MAP_APPFONT ( WIN_X - RELATED_CONTROLS - 2*UNRELATED_CONTROLS - 50 , EDIT_HEIGHT ) ; 101 Border = TRUE ; 102 TabStop = TRUE ; 103 }; 104 105 FixedLine FL_1 106 { 107 Pos = MAP_APPFONT ( 0 , WIN_Y - 2*UNRELATED_CONTROLS - BUTTON_HEIGHT - FIXEDLINE_HEIGHT) ; 108 Size = MAP_APPFONT ( WIN_X , FIXEDLINE_HEIGHT ) ; 109 }; 110 111 PushButton BTN_EXPLORERFILE_SAVE 112 { 113 HelpID = "dbaccess:PushButton:DLG_COLLECTION_VIEW:BTN_EXPLORERFILE_SAVE"; 114 Pos = MAP_APPFONT ( WIN_X - 2*UNRELATED_CONTROLS - RELATED_CONTROLS - 150, WIN_Y - UNRELATED_CONTROLS - BUTTON_HEIGHT ) ; 115 Size = MAP_APPFONT ( 50 , BUTTON_HEIGHT ) ; 116 DefButton = TRUE ; 117 TabStop = TRUE ; 118 Text [ en-US ] = "Save" ; 119 }; 120 121 CancelButton PB_CANCEL 122 { 123 TabStop = TRUE ; 124 Pos = MAP_APPFONT ( WIN_X - 2*UNRELATED_CONTROLS - 100, WIN_Y - UNRELATED_CONTROLS - BUTTON_HEIGHT ) ; 125 Size = MAP_APPFONT ( 50 , BUTTON_HEIGHT ) ; 126 }; 127 128 HelpButton PB_HELP 129 { 130 TabStop = TRUE ; 131 Pos = MAP_APPFONT ( WIN_X - UNRELATED_CONTROLS - 50, WIN_Y - UNRELATED_CONTROLS - BUTTON_HEIGHT ) ; 132 Size = MAP_APPFONT ( 50 , BUTTON_HEIGHT ) ; 133 }; 134 135 136 String STR_PATHNAME 137 { 138 Text [ en-US ] = "~Path:" ; 139 }; 140}; 141 142String STR_NEW_FOLDER 143{ 144 Text [ en-US ] = "Folder" ; 145}; 146Image IMG_NAVIGATION_BTN_UP_SC 147{ 148 ImageBitmap = Bitmap { File = "fp010"; }; 149 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 150}; 151Image IMG_NAVIGATION_BTN_UP_SCH 152{ 153 ImageBitmap = Bitmap { File = "fph010"; }; 154 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 155}; 156Image IMG_NAVIGATION_CREATEFOLDER_SC 157{ 158 ImageBitmap = Bitmap { File = "fp015"; }; 159 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 160}; 161Image IMG_NAVIGATION_CREATEFOLDER_SCH 162{ 163 ImageBitmap = Bitmap { File = "fph015"; }; 164 MaskColor = Color { Red = 0xFFFF; Green = 0x0; Blue = 0xFFFF; }; 165}; 166 167String STR_ALREADYEXISTOVERWRITE 168{ 169 Text [ en-US ] = "The file already exists. Overwrite?" ; 170}; 171 172