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 "svtools/controldims.hrc"
25
26#include "dp_gui.hrc"
27
28#define LOCAL_WIDTH (50 * RSC_BS_CHARWIDTH)
29#define LOCAL_TEXT_HEIGHT (2 * RSC_CD_FIXEDTEXT_HEIGHT)
30#define LOCAL_LIST_HEIGHT (6 * RSC_BS_CHARHEIGHT)
31
32ModalDialog RID_DLG_DEPENDENCIES {
33    HelpID = "desktop:ModalDialog:RID_DLG_DEPENDENCIES";
34    Size = MAP_APPFONT(
35        (RSC_SP_DLG_INNERBORDER_LEFT + LOCAL_WIDTH +
36         RSC_SP_DLG_INNERBORDER_RIGHT),
37        (RSC_SP_DLG_INNERBORDER_TOP + LOCAL_TEXT_HEIGHT + RSC_SP_CTRL_DESC_Y +
38         LOCAL_LIST_HEIGHT + RSC_SP_CTRL_Y + RSC_CD_PUSHBUTTON_HEIGHT +
39         RSC_SP_DLG_INNERBORDER_BOTTOM));
40    Text[en-US] = "System dependencies check";
41    Sizeable = TRUE;
42    Moveable = TRUE;
43    Closeable = TRUE;
44    FixedText RID_DLG_DEPENDENCIES_TEXT {
45        Pos = MAP_APPFONT(
46            RSC_SP_DLG_INNERBORDER_LEFT, RSC_SP_DLG_INNERBORDER_TOP);
47        Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_TEXT_HEIGHT);
48        Text[en-US] = "The extension cannot be installed as the following\nsystem dependencies are not fulfilled:";
49        NoLabel = TRUE;
50    };
51    ListBox RID_DLG_DEPENDENCIES_LIST {
52        HelpID = "desktop:ListBox:RID_DLG_DEPENDENCIES:RID_DLG_DEPENDENCIES_LIST";
53        Pos = MAP_APPFONT(
54            RSC_SP_DLG_INNERBORDER_LEFT,
55            (RSC_SP_DLG_INNERBORDER_TOP + LOCAL_TEXT_HEIGHT +
56             RSC_SP_CTRL_DESC_Y));
57        Size = MAP_APPFONT(LOCAL_WIDTH, LOCAL_LIST_HEIGHT);
58    };
59    OKButton RID_DLG_DEPENDENCIES_OK {
60        Pos = MAP_APPFONT(
61            (RSC_SP_DLG_INNERBORDER_LEFT +
62             (LOCAL_WIDTH - RSC_CD_PUSHBUTTON_WIDTH) / 2),
63            (RSC_SP_DLG_INNERBORDER_TOP + LOCAL_TEXT_HEIGHT +
64             RSC_SP_CTRL_DESC_Y + LOCAL_LIST_HEIGHT + RSC_SP_CTRL_Y));
65        Size = MAP_APPFONT(RSC_CD_PUSHBUTTON_WIDTH, RSC_CD_PUSHBUTTON_HEIGHT);
66        DefButton = TRUE;
67    };
68};
69