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