1*9f62ea84SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*9f62ea84SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*9f62ea84SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*9f62ea84SAndrew Rist * distributed with this work for additional information 6*9f62ea84SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*9f62ea84SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*9f62ea84SAndrew Rist * "License"); you may not use this file except in compliance 9*9f62ea84SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*9f62ea84SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*9f62ea84SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*9f62ea84SAndrew Rist * software distributed under the License is distributed on an 15*9f62ea84SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*9f62ea84SAndrew Rist * KIND, either express or implied. See the License for the 17*9f62ea84SAndrew Rist * specific language governing permissions and limitations 18*9f62ea84SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*9f62ea84SAndrew Rist *************************************************************/ 21*9f62ea84SAndrew Rist 22*9f62ea84SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_vcl.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <salgdi.hxx> 28cdf0e10cSrcweir 29cdf0e10cSrcweir using namespace rtl; 30cdf0e10cSrcweir 31cdf0e10cSrcweir /**************************************************************** 32cdf0e10cSrcweir * Placeholder for no native widgets 33cdf0e10cSrcweir ***************************************************************/ 34cdf0e10cSrcweir 35cdf0e10cSrcweir 36cdf0e10cSrcweir /* 37cdf0e10cSrcweir * IsNativeControlSupported() 38cdf0e10cSrcweir * 39cdf0e10cSrcweir * Returns sal_True if the platform supports native 40cdf0e10cSrcweir * drawing of the control defined by nPart 41cdf0e10cSrcweir */ 42cdf0e10cSrcweir sal_Bool SalGraphics::IsNativeControlSupported( ControlType, ControlPart ) 43cdf0e10cSrcweir { 44cdf0e10cSrcweir return( sal_False ); 45cdf0e10cSrcweir } 46cdf0e10cSrcweir 47cdf0e10cSrcweir 48cdf0e10cSrcweir /* 49cdf0e10cSrcweir * HitTestNativeControl() 50cdf0e10cSrcweir * 51cdf0e10cSrcweir * If the return value is sal_True, bIsInside contains information whether 52cdf0e10cSrcweir * aPos was or was not inside the native widget specified by the 53cdf0e10cSrcweir * nType/nPart combination. 54cdf0e10cSrcweir */ 55cdf0e10cSrcweir sal_Bool SalGraphics::hitTestNativeControl( ControlType, 56cdf0e10cSrcweir ControlPart, 57cdf0e10cSrcweir const Rectangle&, 58cdf0e10cSrcweir const Point&, 59cdf0e10cSrcweir sal_Bool& ) 60cdf0e10cSrcweir { 61cdf0e10cSrcweir return( sal_False ); 62cdf0e10cSrcweir } 63cdf0e10cSrcweir 64cdf0e10cSrcweir 65cdf0e10cSrcweir /* 66cdf0e10cSrcweir * DrawNativeControl() 67cdf0e10cSrcweir * 68cdf0e10cSrcweir * Draws the requested control described by nPart/nState. 69cdf0e10cSrcweir * 70cdf0e10cSrcweir * rControlRegion: The bounding region of the complete control in VCL frame coordinates. 71cdf0e10cSrcweir * aValue: An optional value (tristate/numerical/string) 72cdf0e10cSrcweir * aCaption: A caption or title string (like button text etc) 73cdf0e10cSrcweir */ 74cdf0e10cSrcweir sal_Bool SalGraphics::drawNativeControl( ControlType, 75cdf0e10cSrcweir ControlPart, 76cdf0e10cSrcweir const Rectangle&, 77cdf0e10cSrcweir ControlState, 78cdf0e10cSrcweir const ImplControlValue&, 79cdf0e10cSrcweir const OUString& ) 80cdf0e10cSrcweir { 81cdf0e10cSrcweir return( sal_False ); 82cdf0e10cSrcweir } 83cdf0e10cSrcweir 84cdf0e10cSrcweir 85cdf0e10cSrcweir /* 86cdf0e10cSrcweir * DrawNativeControlText() 87cdf0e10cSrcweir * 88cdf0e10cSrcweir * OPTIONAL. Draws the requested text for the control described by nPart/nState. 89cdf0e10cSrcweir * Used if text not drawn by DrawNativeControl(). 90cdf0e10cSrcweir * 91cdf0e10cSrcweir * rControlRegion: The bounding region of the complete control in VCL frame coordinates. 92cdf0e10cSrcweir * aValue: An optional value (tristate/numerical/string) 93cdf0e10cSrcweir * aCaption: A caption or title string (like button text etc) 94cdf0e10cSrcweir */ 95cdf0e10cSrcweir sal_Bool SalGraphics::drawNativeControlText( ControlType, 96cdf0e10cSrcweir ControlPart, 97cdf0e10cSrcweir const Rectangle&, 98cdf0e10cSrcweir ControlState, 99cdf0e10cSrcweir const ImplControlValue&, 100cdf0e10cSrcweir const OUString& ) 101cdf0e10cSrcweir { 102cdf0e10cSrcweir return( sal_False ); 103cdf0e10cSrcweir } 104cdf0e10cSrcweir 105cdf0e10cSrcweir 106cdf0e10cSrcweir /* 107cdf0e10cSrcweir * GetNativeControlRegion() 108cdf0e10cSrcweir * 109cdf0e10cSrcweir * If the return value is sal_True, rNativeBoundingRegion 110cdf0e10cSrcweir * contains the sal_True bounding region covered by the control 111cdf0e10cSrcweir * including any adornment, while rNativeContentRegion contains the area 112cdf0e10cSrcweir * within the control that can be safely drawn into without drawing over 113cdf0e10cSrcweir * the borders of the control. 114cdf0e10cSrcweir * 115cdf0e10cSrcweir * rControlRegion: The bounding region of the control in VCL frame coordinates. 116cdf0e10cSrcweir * aValue: An optional value (tristate/numerical/string) 117cdf0e10cSrcweir * aCaption: A caption or title string (like button text etc) 118cdf0e10cSrcweir */ 119cdf0e10cSrcweir sal_Bool SalGraphics::getNativeControlRegion( ControlType, 120cdf0e10cSrcweir ControlPart, 121cdf0e10cSrcweir const Rectangle&, 122cdf0e10cSrcweir ControlState, 123cdf0e10cSrcweir const ImplControlValue&, 124cdf0e10cSrcweir const OUString&, 125cdf0e10cSrcweir Rectangle &, 126cdf0e10cSrcweir Rectangle & ) 127cdf0e10cSrcweir { 128cdf0e10cSrcweir return( sal_False ); 129cdf0e10cSrcweir } 130cdf0e10cSrcweir 131