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#ifndef _CHART2_RESOURCE_HXX 28#define _CHART2_RESOURCE_HXX 29 30#define BUTTONS_OK_CANCEL_HELP( xPos, yPos, xOffset, yOffset ) \ 31OKButton BTN_OK \ 32{ \ 33 Pos = MAP_APPFONT ( xPos , yPos ) ; \ 34 Size = MAP_APPFONT ( 50 , 14 ) ; \ 35 TabStop = TRUE ; \ 36 DefButton = TRUE ; \ 37}; \ 38CancelButton BTN_CANCEL \ 39{ \ 40 Pos = MAP_APPFONT ( xPos+xOffset , yPos+yOffset ) ; \ 41 Size = MAP_APPFONT ( 50 , 14 ) ; \ 42 TabStop = TRUE ; \ 43}; \ 44HelpButton BTN_HELP \ 45{ \ 46 Pos = MAP_APPFONT ( xPos+xOffset+xOffset , yPos+yOffset+yOffset ) ; \ 47 Size = MAP_APPFONT ( 50 , 14 ) ; \ 48 TabStop = TRUE ; \ 49}; 50 51#define BUTTONS_OK_CANCEL_HELP_STACKED( xPos ) \ 52BUTTONS_OK_CANCEL_HELP( xPos, 6, 0, 17 ) 53 54#define BUTTONS_HELP_OK_CANCEL( xPos, yPos, xOffset, yOffset ) \ 55HelpButton BTN_HELP \ 56{ \ 57 Pos = MAP_APPFONT ( xPos , yPos ) ; \ 58 Size = MAP_APPFONT ( 50 , 14 ) ; \ 59 TabStop = TRUE ; \ 60}; \ 61OKButton BTN_OK \ 62{ \ 63 Pos = MAP_APPFONT ( xPos+xOffset , yPos+yOffset ) ; \ 64 Size = MAP_APPFONT ( 50 , 14 ) ; \ 65 TabStop = TRUE ; \ 66 DefButton = TRUE ; \ 67}; \ 68CancelButton BTN_CANCEL \ 69{ \ 70 Pos = MAP_APPFONT ( xPos+xOffset+xOffset , yPos+yOffset+yOffset ) ; \ 71 Size = MAP_APPFONT ( 50 , 14 ) ; \ 72 TabStop = TRUE ; \ 73}; 74 75#define BUTTONS_HELP_OK_CANCEL_NEXT( xPos, yPos ) \ 76BUTTONS_HELP_OK_CANCEL( xPos, yPos, 53, 0 ) 77 78 79#endif 80