merge the formfield patch from ooo-build
[ooovba.git] / filter / source / xsltdialog / xmlfiltertabdialog.hxx
blob139eedab2f3f066fed0f6d412ed775e4da093c67
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: xmlfiltertabdialog.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
30 #ifndef _XMLFILTERTABDIALOG_HXX_
31 #define _XMLFILTERTABDIALOG_HXX_
33 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 #include <sfx2/tabdlg.hxx>
36 class Window;
37 class ResMgr;
39 class filter_info_impl;
40 class XMLFilterTabPageBasic;
41 class XMLFilterTabPageXSLT;
43 class XMLFilterTabDialog: public TabDialog
45 public:
46 XMLFilterTabDialog( Window *pParent, ResMgr& rResMgr, const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxMSF, const filter_info_impl* pInfo );
47 virtual ~XMLFilterTabDialog();
49 ResMgr& getResMgr() { return mrResMgr; }
51 bool onOk();
53 filter_info_impl* getNewFilterInfo() const;
55 private:
56 com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > mxMSF;
58 DECL_LINK( ActivatePageHdl, TabControl * );
59 DECL_LINK( DeactivatePageHdl, TabControl * );
60 DECL_LINK( OkHdl, Button * );
61 DECL_LINK( CancelHdl, Button * );
63 ResMgr& mrResMgr;
65 const filter_info_impl* mpOldInfo;
66 filter_info_impl* mpNewInfo;
68 TabControl maTabCtrl;
69 OKButton maOKBtn;
70 CancelButton maCancelBtn;
71 HelpButton maHelpBtn;
73 XMLFilterTabPageBasic* mpBasicPage;
74 XMLFilterTabPageXSLT* mpXSLTPage;
78 #endif