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 28 #ifndef _SV_NATIVEWIDGETS_H 29 #define _SV_NATIVEWIDGETS_H 30 31 // since 10.4 ... no metrics are returned, and we have to fix the values 32 #define BUTTON_WIDTH 16 33 #define BUTTON_HEIGHT 17 34 35 //standard height of the AHIG 36 //tabs 37 #define TAB_HEIGHT_NORMAL 20 38 #define TAB_HEIGHT_SMALL 17 39 #define TAB_HEIGHT_MINI 15 40 41 #define TAB_TEXT_OFFSET 12 42 #define VCL_TAB_TEXT_OFFSET 2 43 44 //listboxes, comboboxes (they have the same dimensions) 45 #define COMBOBOX_HEIGHT_NORMAL 20 46 #define DROPDOWN_BUTTON_WIDTH 20 47 48 //text edit 49 #define TEXT_EDIT_HEIGHT_NORMAL 22 50 51 //spin box 52 #define SPIN_BUTTON_SPACE 2 53 #define SPIN_BUTTON_WIDTH 13 54 #define SPIN_UPPER_BUTTON_HEIGHT 11 55 #define SPIN_LOWER_BUTTON_HEIGHT 10 56 #define SPIN_TWO_BUTTONS_HEIGHT 21 57 58 // progress bar 59 #define INTRO_PROGRESS_HEIGHT 9 60 61 // for some controls, like spinbuttons + spinboxes, or listboxes 62 // we need it to adjust text position beside radio and check buttons 63 64 #define TEXT_SEPARATOR 3 65 66 // extra border for focus ring 67 #define FOCUS_RING_WIDTH 4 68 69 #define CLIP_FUZZ 1 70 71 #endif // _SV_NATIVEWIDGETS_H 72