xref: /AOO42X/main/dbaccess/source/ui/dlg/CollectionView.src (revision 57b6b03fd2228196c789002783ce50bcfc3d27f6)
181d089aeSAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
381d089aeSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
481d089aeSAndrew Rist * or more contributor license agreements.  See the NOTICE file
581d089aeSAndrew Rist * distributed with this work for additional information
681d089aeSAndrew Rist * regarding copyright ownership.  The ASF licenses this file
781d089aeSAndrew Rist * to you under the Apache License, Version 2.0 (the
881d089aeSAndrew Rist * "License"); you may not use this file except in compliance
981d089aeSAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
1181d089aeSAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
1381d089aeSAndrew Rist * Unless required by applicable law or agreed to in writing,
1481d089aeSAndrew Rist * software distributed under the License is distributed on an
1581d089aeSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
1681d089aeSAndrew Rist * KIND, either express or implied.  See the License for the
1781d089aeSAndrew Rist * specific language governing permissions and limitations
1881d089aeSAndrew Rist * under the License.
19cdf0e10cSrcweir *
2081d089aeSAndrew Rist *************************************************************/
2181d089aeSAndrew Rist
2281d089aeSAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef _DBU_DLG_HRC_
25cdf0e10cSrcweir#include "dbu_dlg.hrc"
26cdf0e10cSrcweir#endif
27cdf0e10cSrcweir#include "dbaccess_helpid.hrc"
28cdf0e10cSrcweir#include "CollectionView.hrc"
29cdf0e10cSrcweir
30cdf0e10cSrcweir#define WIN_X 200
31cdf0e10cSrcweir#define WIN_Y 192
32cdf0e10cSrcweir
33cdf0e10cSrcweir#define CHECKBOX_HEIGHT     8
34cdf0e10cSrcweir#define FIXEDTEXT_HEIGHT    8
35cdf0e10cSrcweir#define RELATED_CONTROLS    4
36cdf0e10cSrcweir#define UNRELATED_CONTROLS  7
37cdf0e10cSrcweir#define EDIT_HEIGHT         12
38cdf0e10cSrcweir#define BUTTON_HEIGHT       14
39cdf0e10cSrcweir#define FIXEDLINE_HEIGHT    1
40cdf0e10cSrcweir#define IMG_SIZE            15
41cdf0e10cSrcweir
42cdf0e10cSrcweir
43cdf0e10cSrcweirModalDialog DLG_COLLECTION_VIEW
44cdf0e10cSrcweir{
45cdf0e10cSrcweir    OutputSize = TRUE ;
46cdf0e10cSrcweir    SVLook = TRUE ;
47cdf0e10cSrcweir    Moveable = TRUE ;
48cdf0e10cSrcweir    Closeable = TRUE ;
49cdf0e10cSrcweir    //Sizeable = TRUE ;
50cdf0e10cSrcweir    HelpId = HID_EXPLORERDLG_COLLECTION ;
51cdf0e10cSrcweir
52cdf0e10cSrcweir    Size = MAP_APPFONT ( WIN_X, WIN_Y ) ;
53cdf0e10cSrcweir    Text [ en-US ] = "Save" ;
54cdf0e10cSrcweir
55cdf0e10cSrcweir    FixedText FT_EXPLORERFILE_CURRENTPATH
56cdf0e10cSrcweir    {
57cdf0e10cSrcweir        Pos = MAP_APPFONT ( UNRELATED_CONTROLS, UNRELATED_CONTROLS ) ;
58cdf0e10cSrcweir        Size = MAP_APPFONT ( 100, FIXEDTEXT_HEIGHT ) ;
59cdf0e10cSrcweir        NoLabel = TRUE ;
60cdf0e10cSrcweir    };
61cdf0e10cSrcweir    ImageButton BTN_EXPLORERFILE_NEWFOLDER
62cdf0e10cSrcweir    {
63cdf0e10cSrcweir        HelpID = "dbaccess:ImageButton:DLG_COLLECTION_VIEW:BTN_EXPLORERFILE_NEWFOLDER" ;
64cdf0e10cSrcweir        TabStop = FALSE ;
65cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - UNRELATED_CONTROLS - RELATED_CONTROLS - 2 * IMG_SIZE, UNRELATED_CONTROLS ) ;
66cdf0e10cSrcweir        Size = MAP_APPFONT ( IMG_SIZE, IMG_SIZE ) ;
67cdf0e10cSrcweir        QuickHelpText [ en-US ] = "Create New Directory" ;
68cdf0e10cSrcweir    };
69cdf0e10cSrcweir    ImageButton BTN_EXPLORERFILE_UP
70cdf0e10cSrcweir    {
71cdf0e10cSrcweir        HelpID = "dbaccess:ImageButton:DLG_COLLECTION_VIEW:BTN_EXPLORERFILE_UP" ;
72cdf0e10cSrcweir        TabStop = TRUE ;
73cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - UNRELATED_CONTROLS - IMG_SIZE, UNRELATED_CONTROLS ) ;
74cdf0e10cSrcweir        Size = MAP_APPFONT ( IMG_SIZE, IMG_SIZE ) ;
75cdf0e10cSrcweir        QuickHelpText [ en-US ] = "Up One Level" ;
76cdf0e10cSrcweir    };
77cdf0e10cSrcweir
78cdf0e10cSrcweir    Control CTRL_VIEW
79cdf0e10cSrcweir    {
80cdf0e10cSrcweir        TabStop = TRUE ;
81cdf0e10cSrcweir        Pos = MAP_APPFONT ( UNRELATED_CONTROLS, 2*UNRELATED_CONTROLS + IMG_SIZE) ;
82cdf0e10cSrcweir        Size = MAP_APPFONT ( WIN_X - 2 * UNRELATED_CONTROLS, WIN_Y - 6 * UNRELATED_CONTROLS - BUTTON_HEIGHT - IMG_SIZE - EDIT_HEIGHT - FIXEDTEXT_HEIGHT) ;
83cdf0e10cSrcweir        Border = TRUE ;
84cdf0e10cSrcweir    };
85cdf0e10cSrcweir
86cdf0e10cSrcweir    FixedText FT_EXPLORERFILE_FILENAME
87cdf0e10cSrcweir    {
88cdf0e10cSrcweir        Pos = MAP_APPFONT ( UNRELATED_CONTROLS, WIN_Y - 3 * UNRELATED_CONTROLS - BUTTON_HEIGHT - FIXEDLINE_HEIGHT - EDIT_HEIGHT ) ;
89cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, FIXEDTEXT_HEIGHT ) ;
90cdf0e10cSrcweir        Text [ en-US ] = "File ~name:" ;
91cdf0e10cSrcweir    };
92cdf0e10cSrcweir    Edit ED_EXPLORERFILE_FILENAME
93cdf0e10cSrcweir    {
94cdf0e10cSrcweir        HelpID = "dbaccess:Edit:DLG_COLLECTION_VIEW:ED_EXPLORERFILE_FILENAME" ;
95cdf0e10cSrcweir        Pos = MAP_APPFONT ( RELATED_CONTROLS + UNRELATED_CONTROLS + 50, WIN_Y - 3 * UNRELATED_CONTROLS - BUTTON_HEIGHT - FIXEDLINE_HEIGHT - EDIT_HEIGHT) ;
96cdf0e10cSrcweir        Size = MAP_APPFONT ( WIN_X - RELATED_CONTROLS - 2 * UNRELATED_CONTROLS - 50, EDIT_HEIGHT ) ;
97cdf0e10cSrcweir        Border = TRUE ;
98cdf0e10cSrcweir        TabStop = TRUE ;
99cdf0e10cSrcweir    };
100cdf0e10cSrcweir
101cdf0e10cSrcweir    FixedLine FL_1
102cdf0e10cSrcweir    {
103cdf0e10cSrcweir        Pos = MAP_APPFONT ( 0, WIN_Y - 2 * UNRELATED_CONTROLS - BUTTON_HEIGHT - FIXEDLINE_HEIGHT) ;
104cdf0e10cSrcweir        Size = MAP_APPFONT ( WIN_X, FIXEDLINE_HEIGHT ) ;
105cdf0e10cSrcweir    };
106cdf0e10cSrcweir
107cdf0e10cSrcweir    PushButton BTN_EXPLORERFILE_SAVE
108cdf0e10cSrcweir    {
109cdf0e10cSrcweir        HelpID = "dbaccess:PushButton:DLG_COLLECTION_VIEW:BTN_EXPLORERFILE_SAVE" ;
110cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - 2 * UNRELATED_CONTROLS - RELATED_CONTROLS - 150, WIN_Y - UNRELATED_CONTROLS - BUTTON_HEIGHT ) ;
111cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, BUTTON_HEIGHT ) ;
112cdf0e10cSrcweir        DefButton = TRUE ;
113cdf0e10cSrcweir        TabStop = TRUE ;
114cdf0e10cSrcweir        Text [ en-US ] = "Save" ;
115cdf0e10cSrcweir    };
116cdf0e10cSrcweir
117cdf0e10cSrcweir    CancelButton PB_CANCEL
118cdf0e10cSrcweir    {
119cdf0e10cSrcweir        TabStop = TRUE ;
120cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - 2 * UNRELATED_CONTROLS - 100, WIN_Y - UNRELATED_CONTROLS - BUTTON_HEIGHT ) ;
121cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, BUTTON_HEIGHT ) ;
122cdf0e10cSrcweir    };
123cdf0e10cSrcweir
124cdf0e10cSrcweir    HelpButton PB_HELP
125cdf0e10cSrcweir    {
126cdf0e10cSrcweir        TabStop = TRUE ;
127cdf0e10cSrcweir        Pos = MAP_APPFONT ( WIN_X - UNRELATED_CONTROLS - 50, WIN_Y - UNRELATED_CONTROLS - BUTTON_HEIGHT ) ;
128cdf0e10cSrcweir        Size = MAP_APPFONT ( 50, BUTTON_HEIGHT ) ;
129cdf0e10cSrcweir    };
130cdf0e10cSrcweir
131cdf0e10cSrcweir
132cdf0e10cSrcweir    String STR_PATHNAME
133cdf0e10cSrcweir    {
134cdf0e10cSrcweir        Text [ en-US ] = "~Path:" ;
135cdf0e10cSrcweir    };
136cdf0e10cSrcweir};
137cdf0e10cSrcweir
138cdf0e10cSrcweirString STR_NEW_FOLDER
139cdf0e10cSrcweir{
140cdf0e10cSrcweir    Text [ en-US ] = "Folder" ;
141cdf0e10cSrcweir};
142cdf0e10cSrcweirImage IMG_NAVIGATION_BTN_UP_SC
143cdf0e10cSrcweir{
144cdf0e10cSrcweir    ImageBitmap = Bitmap {File = "fp010" ;} ;
145cdf0e10cSrcweir};
146cdf0e10cSrcweirImage IMG_NAVIGATION_BTN_UP_SCH
147cdf0e10cSrcweir{
148cdf0e10cSrcweir    ImageBitmap = Bitmap {File = "fph010" ;} ;
149cdf0e10cSrcweir};
150cdf0e10cSrcweirImage IMG_NAVIGATION_CREATEFOLDER_SC
151cdf0e10cSrcweir{
152cdf0e10cSrcweir    ImageBitmap = Bitmap {File = "fp015" ;} ;
153cdf0e10cSrcweir};
154cdf0e10cSrcweirImage IMG_NAVIGATION_CREATEFOLDER_SCH
155cdf0e10cSrcweir{
156cdf0e10cSrcweir    ImageBitmap = Bitmap {File = "fph015" ;} ;
157cdf0e10cSrcweir};
158cdf0e10cSrcweir
159cdf0e10cSrcweirString STR_ALREADYEXISTOVERWRITE
160cdf0e10cSrcweir{
161cdf0e10cSrcweir    Text [ en-US ] = "The file already exists. Overwrite?" ;
162cdf0e10cSrcweir};
163cdf0e10cSrcweir
164*57b6b03fSmseidel// ********************************************************************** EOF
165