/* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #ifndef _UNODIALOGS_BUTTONGROUP_HRC #define _UNODIALOGS_BUTTONGROUP_HRC #include "resids.hrc" #define PB_OK 1 #define PB_CANCEL 1 #define PB_HELP 1 #define BUTTONGROUP_BUTTONWIDTH 40 #define BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, xOffset, yOffset ) \ OKButton PB_OK \ { \ Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset-xOffset , yTopPos ) ; \ Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ TabStop = TRUE ; \ DefButton = TRUE ; \ }; \ CancelButton PB_CANCEL \ { \ Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset , yTopPos+yOffset ) ; \ Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ TabStop = TRUE ; \ }; \ HelpButton PB_HELP \ { \ Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH , yTopPos+yOffset+yOffset ) ; \ Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ TabStop = TRUE ; \ }; #define BUTTONS_OK_CANCEL_HELP_STACKED( xRightPos ) \ BUTTONS_OK_CANCEL_HELP( xRightPos, 6, 0, 17 ) #define BUTTONS_OK_CANCEL_HELP_ABREAST( xRightPos, yTopPos ) \ BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, (BUTTONGROUP_BUTTONWIDTH+3), 0 ) #endif