xref: /aoo41x/main/vcl/inc/vcl/group.hxx (revision e1beba7d)
10d63794cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
30d63794cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
40d63794cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
50d63794cSAndrew Rist  * distributed with this work for additional information
60d63794cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
70d63794cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
80d63794cSAndrew Rist  * "License"); you may not use this file except in compliance
90d63794cSAndrew Rist  * with the License.  You may obtain a copy of the License at
100d63794cSAndrew Rist  *
110d63794cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
120d63794cSAndrew Rist  *
130d63794cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
140d63794cSAndrew Rist  * software distributed under the License is distributed on an
150d63794cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
160d63794cSAndrew Rist  * KIND, either express or implied.  See the License for the
170d63794cSAndrew Rist  * specific language governing permissions and limitations
180d63794cSAndrew Rist  * under the License.
190d63794cSAndrew Rist  *
200d63794cSAndrew Rist  *************************************************************/
210d63794cSAndrew Rist 
220d63794cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SV_GROUP_HXX
25cdf0e10cSrcweir #define _SV_GROUP_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <vcl/sv.h>
28cdf0e10cSrcweir #include <vcl/dllapi.h>
29cdf0e10cSrcweir #include <vcl/ctrl.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir // ------------
32cdf0e10cSrcweir // - GroupBox -
33cdf0e10cSrcweir // ------------
34cdf0e10cSrcweir 
35cdf0e10cSrcweir class VCL_DLLPUBLIC GroupBox : public Control
36cdf0e10cSrcweir {
37cdf0e10cSrcweir private:
38cdf0e10cSrcweir     using Control::ImplInitSettings;
39cdf0e10cSrcweir     using Window::ImplInit;
40cdf0e10cSrcweir     SAL_DLLPRIVATE void     ImplInit( Window* pParent, WinBits nStyle );
41cdf0e10cSrcweir     SAL_DLLPRIVATE WinBits  ImplInitStyle( WinBits nStyle );
42cdf0e10cSrcweir     SAL_DLLPRIVATE void     ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground );
43cdf0e10cSrcweir     SAL_DLLPRIVATE void     ImplDraw( OutputDevice* pDev, sal_uLong nDrawFlags,
44cdf0e10cSrcweir                                       const Point& rPos, const Size& rSize, bool bLayout = false );
45cdf0e10cSrcweir 
46cdf0e10cSrcweir     virtual void	FillLayoutData() const;
47cdf0e10cSrcweir     virtual const Font&
48cdf0e10cSrcweir                     GetCanonicalFont( const StyleSettings& _rStyle ) const;
49cdf0e10cSrcweir     virtual const Color&
50cdf0e10cSrcweir                     GetCanonicalTextColor( const StyleSettings& _rStyle ) const;
51cdf0e10cSrcweir 
52cdf0e10cSrcweir public:
53*e1beba7dSHerbert Dürr     explicit        GroupBox( Window* pParent, WinBits nStyle = 0 );
54*e1beba7dSHerbert Dürr     explicit        GroupBox( Window* pParent, const ResId& );
55cdf0e10cSrcweir 
56cdf0e10cSrcweir     virtual void    Paint( const Rectangle& rRect );
57cdf0e10cSrcweir     virtual void    Draw( OutputDevice* pDev, const Point& rPos, const Size& rSize, sal_uLong nFlags );
58cdf0e10cSrcweir     virtual void    Resize();
59cdf0e10cSrcweir     virtual void    StateChanged( StateChangedType nType );
60cdf0e10cSrcweir     virtual void    DataChanged( const DataChangedEvent& rDCEvt );
61cdf0e10cSrcweir };
62cdf0e10cSrcweir 
63cdf0e10cSrcweir #endif  // _SV_GROUP_HXX
64*e1beba7dSHerbert Dürr 
65