1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _XMLFILTERTABDIALOG_HXX_
24 #define _XMLFILTERTABDIALOG_HXX_
25 
26 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
27 #include <sfx2/tabdlg.hxx>
28 
29 class Window;
30 class ResMgr;
31 
32 class filter_info_impl;
33 class XMLFilterTabPageBasic;
34 class XMLFilterTabPageXSLT;
35 
36 class XMLFilterTabDialog: public TabDialog
37 {
38 public:
39 	XMLFilterTabDialog(	Window *pParent, ResMgr& rResMgr, const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxMSF, const filter_info_impl* pInfo );
40 	virtual ~XMLFilterTabDialog();
41 
getResMgr()42 	ResMgr& getResMgr() { return mrResMgr; }
43 
44 	bool onOk();
45 
46 	filter_info_impl* getNewFilterInfo() const;
47 
48 private:
49 	com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > mxMSF;
50 
51 	DECL_LINK( ActivatePageHdl, TabControl * );
52 	DECL_LINK( DeactivatePageHdl, TabControl * );
53 	DECL_LINK( OkHdl, Button * );
54 	DECL_LINK( CancelHdl, Button * );
55 
56 	ResMgr&	mrResMgr;
57 
58 	const filter_info_impl* mpOldInfo;
59 	filter_info_impl* mpNewInfo;
60 
61 	TabControl		maTabCtrl;
62 	OKButton		maOKBtn;
63 	CancelButton	maCancelBtn;
64 	HelpButton		maHelpBtn;
65 
66 	XMLFilterTabPageBasic*	mpBasicPage;
67 	XMLFilterTabPageXSLT* mpXSLTPage;
68 };
69 
70 
71 #endif
72