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#ifndef _UNODIALOGS_BUTTONGROUP_HRC 24#define _UNODIALOGS_BUTTONGROUP_HRC 25 26#include "resids.hrc" 27 28#define PB_OK 1 29#define PB_CANCEL 1 30#define PB_HELP 1 31 32#define BUTTONGROUP_BUTTONWIDTH 40 33 34#define BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, xOffset, yOffset ) \ 35OKButton PB_OK \ 36{ \ 37 Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset-xOffset , yTopPos ) ; \ 38 Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ 39 TabStop = TRUE ; \ 40 DefButton = TRUE ; \ 41}; \ 42CancelButton PB_CANCEL \ 43{ \ 44 Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset , yTopPos+yOffset ) ; \ 45 Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ 46 TabStop = TRUE ; \ 47}; \ 48HelpButton PB_HELP \ 49{ \ 50 Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH , yTopPos+yOffset+yOffset ) ; \ 51 Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \ 52 TabStop = TRUE ; \ 53}; 54 55#define BUTTONS_OK_CANCEL_HELP_STACKED( xRightPos ) \ 56BUTTONS_OK_CANCEL_HELP( xRightPos, 6, 0, 17 ) 57 58#define BUTTONS_OK_CANCEL_HELP_ABREAST( xRightPos, yTopPos ) \ 59BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, (BUTTONGROUP_BUTTONWIDTH+3), 0 ) 60 61#endif 62