1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _UNODIALOGS_BUTTONGROUP_HRC
20 #define _UNODIALOGS_BUTTONGROUP_HRC
28 #define BUTTONGROUP_BUTTONWIDTH 40
30 #define BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, xOffset, yOffset ) \
33 Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset-xOffset , yTopPos ) ; \
34 Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \
38 CancelButton PB_CANCEL \
40 Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset , yTopPos+yOffset ) ; \
41 Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \
46 Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH , yTopPos+yOffset+yOffset ) ; \
47 Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \
51 #define BUTTONS_OK_CANCEL_HELP_STACKED( xRightPos ) \
52 BUTTONS_OK_CANCEL_HELP( xRightPos, 6, 0, 17 )
54 #define BUTTONS_OK_CANCEL_HELP_ABREAST( xRightPos, yTopPos ) \
55 BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, (BUTTONGROUP_BUTTONWIDTH+3), 0 )
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */