1*c0dc1914SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*c0dc1914SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*c0dc1914SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*c0dc1914SAndrew Rist * distributed with this work for additional information
6*c0dc1914SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*c0dc1914SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*c0dc1914SAndrew Rist * "License"); you may not use this file except in compliance
9*c0dc1914SAndrew Rist * with the License.  You may obtain a copy of the License at
10*c0dc1914SAndrew Rist *
11*c0dc1914SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*c0dc1914SAndrew Rist *
13*c0dc1914SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*c0dc1914SAndrew Rist * software distributed under the License is distributed on an
15*c0dc1914SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*c0dc1914SAndrew Rist * KIND, either express or implied.  See the License for the
17*c0dc1914SAndrew Rist * specific language governing permissions and limitations
18*c0dc1914SAndrew Rist * under the License.
19*c0dc1914SAndrew Rist *
20*c0dc1914SAndrew Rist *************************************************************/
21*c0dc1914SAndrew Rist
22*c0dc1914SAndrew Rist
23cdf0e10cSrcweir#ifndef _UNODIALOGS_BUTTONGROUP_HRC
24cdf0e10cSrcweir#define _UNODIALOGS_BUTTONGROUP_HRC
25cdf0e10cSrcweir
26cdf0e10cSrcweir#include "resids.hrc"
27cdf0e10cSrcweir
28cdf0e10cSrcweir#define PB_OK       1
29cdf0e10cSrcweir#define PB_CANCEL   1
30cdf0e10cSrcweir#define PB_HELP     1
31cdf0e10cSrcweir
32cdf0e10cSrcweir#define BUTTONGROUP_BUTTONWIDTH 40
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define BUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, xOffset, yOffset ) \
35cdf0e10cSrcweirOKButton PB_OK \
36cdf0e10cSrcweir{ \
37cdf0e10cSrcweir	Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset-xOffset , yTopPos ) ; \
38cdf0e10cSrcweir	Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \
39cdf0e10cSrcweir	TabStop = TRUE ; \
40cdf0e10cSrcweir	DefButton = TRUE ; \
41cdf0e10cSrcweir}; \
42cdf0e10cSrcweirCancelButton PB_CANCEL \
43cdf0e10cSrcweir{ \
44cdf0e10cSrcweir	Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH-xOffset , yTopPos+yOffset  ) ; \
45cdf0e10cSrcweir	Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \
46cdf0e10cSrcweir	TabStop = TRUE ; \
47cdf0e10cSrcweir}; \
48cdf0e10cSrcweirHelpButton PB_HELP \
49cdf0e10cSrcweir{ \
50cdf0e10cSrcweir	Pos = MAP_APPFONT ( xRightPos-BUTTONGROUP_BUTTONWIDTH , yTopPos+yOffset+yOffset  ) ; \
51cdf0e10cSrcweir	Size = MAP_APPFONT ( BUTTONGROUP_BUTTONWIDTH , 14 ) ; \
52cdf0e10cSrcweir	TabStop = TRUE ; \
53cdf0e10cSrcweir};
54cdf0e10cSrcweir
55cdf0e10cSrcweir#define BUTTONS_OK_CANCEL_HELP_STACKED( xRightPos ) \
56cdf0e10cSrcweirBUTTONS_OK_CANCEL_HELP( xRightPos, 6, 0, 17 )
57cdf0e10cSrcweir
58cdf0e10cSrcweir#define BUTTONS_OK_CANCEL_HELP_ABREAST( xRightPos, yTopPos ) \
59cdf0e10cSrcweirBUTTONS_OK_CANCEL_HELP( xRightPos, yTopPos, (BUTTONGROUP_BUTTONWIDTH+3), 0 )
60cdf0e10cSrcweir
61cdf0e10cSrcweir#endif
62