xref: /AOO41X/main/vcl/inc/vcl/tabdlg.hxx (revision 0d63794c5b3715d9f8da2f4b7b451b7426ee7897)
1*0d63794cSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*0d63794cSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*0d63794cSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*0d63794cSAndrew Rist  * distributed with this work for additional information
6*0d63794cSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*0d63794cSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*0d63794cSAndrew Rist  * "License"); you may not use this file except in compliance
9*0d63794cSAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*0d63794cSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*0d63794cSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*0d63794cSAndrew Rist  * software distributed under the License is distributed on an
15*0d63794cSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*0d63794cSAndrew Rist  * KIND, either express or implied.  See the License for the
17*0d63794cSAndrew Rist  * specific language governing permissions and limitations
18*0d63794cSAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*0d63794cSAndrew Rist  *************************************************************/
21*0d63794cSAndrew Rist 
22*0d63794cSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SV_TABDLG_HXX
25cdf0e10cSrcweir #define _SV_TABDLG_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <vcl/sv.h>
28cdf0e10cSrcweir #include <vcl/dllapi.h>
29cdf0e10cSrcweir #include <vcl/dialog.hxx>
30cdf0e10cSrcweir 
31cdf0e10cSrcweir class FixedLine;
32cdf0e10cSrcweir class TabControl;
33cdf0e10cSrcweir 
34cdf0e10cSrcweir // ----------------------
35cdf0e10cSrcweir // - TabDialog -
36cdf0e10cSrcweir // ----------------------
37cdf0e10cSrcweir 
38cdf0e10cSrcweir class VCL_DLLPUBLIC TabDialog : public Dialog
39cdf0e10cSrcweir {
40cdf0e10cSrcweir private:
41cdf0e10cSrcweir 	FixedLine*			mpFixedLine;
42cdf0e10cSrcweir 	Window* 			mpViewWindow;
43cdf0e10cSrcweir 	WindowAlign 		meViewAlign;
44cdf0e10cSrcweir 	sal_Bool				mbPosControls;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	SAL_DLLPRIVATE void	ImplInitTabDialogData();
47cdf0e10cSrcweir 	SAL_DLLPRIVATE void	ImplPosControls();
48cdf0e10cSrcweir 
49cdf0e10cSrcweir public:
50cdf0e10cSrcweir 						TabDialog( Window* pParent,
51cdf0e10cSrcweir 								   WinBits nStyle = WB_STDTABDIALOG );
52cdf0e10cSrcweir 						TabDialog( Window* pParent, const ResId& rResId );
53cdf0e10cSrcweir 						~TabDialog();
54cdf0e10cSrcweir 
55cdf0e10cSrcweir 	virtual void		Resize();
56cdf0e10cSrcweir 	virtual void		StateChanged( StateChangedType nStateChange );
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	void				AdjustLayout();
59cdf0e10cSrcweir 
SetViewWindow(Window * pWindow)60cdf0e10cSrcweir 	void				SetViewWindow( Window* pWindow ) { mpViewWindow = pWindow; }
GetViewWindow() const61cdf0e10cSrcweir 	Window* 			GetViewWindow() const { return mpViewWindow; }
SetViewAlign(WindowAlign eAlign)62cdf0e10cSrcweir 	void				SetViewAlign( WindowAlign eAlign ) { meViewAlign = eAlign; }
GetViewAlign() const63cdf0e10cSrcweir 	WindowAlign 		GetViewAlign() const { return meViewAlign; }
64cdf0e10cSrcweir };
65cdf0e10cSrcweir 
66cdf0e10cSrcweir #endif	// _SV_TABDLG_HXX
67