Update ooo320-m1
[ooovba.git] / vcl / source / gdi / salnativewidgets-none.cxx
blob21b202c9c06487099b4bca6c530ba1b7bb1a1475
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: salnativewidgets-none.cxx,v $
10 * $Revision: 1.7 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_vcl.hxx"
34 #include <vcl/salgdi.hxx>
36 using namespace rtl;
38 /****************************************************************
39 * Placeholder for no native widgets
40 ***************************************************************/
44 * IsNativeControlSupported()
46 * Returns TRUE if the platform supports native
47 * drawing of the control defined by nPart
49 BOOL SalGraphics::IsNativeControlSupported( ControlType, ControlPart )
51 return( FALSE );
56 * HitTestNativeControl()
58 * If the return value is TRUE, bIsInside contains information whether
59 * aPos was or was not inside the native widget specified by the
60 * nType/nPart combination.
62 BOOL SalGraphics::hitTestNativeControl( ControlType,
63 ControlPart,
64 const Region&,
65 const Point&,
66 SalControlHandle&,
67 BOOL& )
69 return( FALSE );
74 * DrawNativeControl()
76 * Draws the requested control described by nPart/nState.
78 * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
79 * aValue: An optional value (tristate/numerical/string)
80 * rControlHandle: Carries platform dependent data and is maintained by the SalFrame implementation.
81 * aCaption: A caption or title string (like button text etc)
83 BOOL SalGraphics::drawNativeControl( ControlType,
84 ControlPart,
85 const Region&,
86 ControlState,
87 const ImplControlValue&,
88 SalControlHandle&,
89 const OUString& )
91 return( FALSE );
96 * DrawNativeControlText()
98 * OPTIONAL. Draws the requested text for the control described by nPart/nState.
99 * Used if text not drawn by DrawNativeControl().
101 * rControlRegion: The bounding region of the complete control in VCL frame coordinates.
102 * aValue: An optional value (tristate/numerical/string)
103 * rControlHandle: Carries platform dependent data and is maintained by the SalFrame implementation.
104 * aCaption: A caption or title string (like button text etc)
106 BOOL SalGraphics::drawNativeControlText( ControlType,
107 ControlPart,
108 const Region&,
109 ControlState,
110 const ImplControlValue&,
111 SalControlHandle&,
112 const OUString& )
114 return( FALSE );
119 * GetNativeControlRegion()
121 * If the return value is TRUE, rNativeBoundingRegion
122 * contains the TRUE bounding region covered by the control
123 * including any adornment, while rNativeContentRegion contains the area
124 * within the control that can be safely drawn into without drawing over
125 * the borders of the control.
127 * rControlRegion: The bounding region of the control in VCL frame coordinates.
128 * aValue: An optional value (tristate/numerical/string)
129 * rControlHandle: Carries platform dependent data and is maintained by the SalFrame implementation.
130 * aCaption: A caption or title string (like button text etc)
132 BOOL SalGraphics::getNativeControlRegion( ControlType,
133 ControlPart,
134 const Region&,
135 ControlState,
136 const ImplControlValue&,
137 SalControlHandle&,
138 const OUString&,
139 Region &,
140 Region & )
142 return( FALSE );