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