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 // MARKER(update_precomp.py): autogen include statement, do not remove 29 #include "precompiled_vcl.hxx" 30 31 #include <salgdi.hxx> 32 33 using namespace rtl; 34 35 /**************************************************************** 36 * Placeholder for no native widgets 37 ***************************************************************/ 38 39 40 /* 41 * IsNativeControlSupported() 42 * 43 * Returns sal_True if the platform supports native 44 * drawing of the control defined by nPart 45 */ 46 sal_Bool SalGraphics::IsNativeControlSupported( ControlType, ControlPart ) 47 { 48 return( sal_False ); 49 } 50 51 52 /* 53 * HitTestNativeControl() 54 * 55 * If the return value is sal_True, bIsInside contains information whether 56 * aPos was or was not inside the native widget specified by the 57 * nType/nPart combination. 58 */ 59 sal_Bool SalGraphics::hitTestNativeControl( ControlType, 60 ControlPart, 61 const Rectangle&, 62 const Point&, 63 sal_Bool& ) 64 { 65 return( sal_False ); 66 } 67 68 69 /* 70 * DrawNativeControl() 71 * 72 * Draws the requested control described by nPart/nState. 73 * 74 * rControlRegion: The bounding region of the complete control in VCL frame coordinates. 75 * aValue: An optional value (tristate/numerical/string) 76 * aCaption: A caption or title string (like button text etc) 77 */ 78 sal_Bool SalGraphics::drawNativeControl( ControlType, 79 ControlPart, 80 const Rectangle&, 81 ControlState, 82 const ImplControlValue&, 83 const OUString& ) 84 { 85 return( sal_False ); 86 } 87 88 89 /* 90 * DrawNativeControlText() 91 * 92 * OPTIONAL. Draws the requested text for the control described by nPart/nState. 93 * Used if text not drawn by DrawNativeControl(). 94 * 95 * rControlRegion: The bounding region of the complete control in VCL frame coordinates. 96 * aValue: An optional value (tristate/numerical/string) 97 * aCaption: A caption or title string (like button text etc) 98 */ 99 sal_Bool SalGraphics::drawNativeControlText( ControlType, 100 ControlPart, 101 const Rectangle&, 102 ControlState, 103 const ImplControlValue&, 104 const OUString& ) 105 { 106 return( sal_False ); 107 } 108 109 110 /* 111 * GetNativeControlRegion() 112 * 113 * If the return value is sal_True, rNativeBoundingRegion 114 * contains the sal_True bounding region covered by the control 115 * including any adornment, while rNativeContentRegion contains the area 116 * within the control that can be safely drawn into without drawing over 117 * the borders of the control. 118 * 119 * rControlRegion: The bounding region of the control in VCL frame coordinates. 120 * aValue: An optional value (tristate/numerical/string) 121 * aCaption: A caption or title string (like button text etc) 122 */ 123 sal_Bool SalGraphics::getNativeControlRegion( ControlType, 124 ControlPart, 125 const Rectangle&, 126 ControlState, 127 const ImplControlValue&, 128 const OUString&, 129 Rectangle &, 130 Rectangle & ) 131 { 132 return( sal_False ); 133 } 134 135