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