Update ooo320-m1
[ooovba.git] / filter / source / xsltdialog / xmlfilterjar.hxx
blobb6fe9b5f7c6f394cab575b8ee8ab0f37bb935dcd
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: xmlfilterjar.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 _XMLFILTERJAR_HXX_
31 #define _XMLFILTERJAR_HXX_
33 #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
34 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
35 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
37 #include <vector>
39 class filter_info_impl;
41 typedef std::vector< filter_info_impl* > XMLFilterVector;
43 class XMLFilterJarHelper
45 public:
46 XMLFilterJarHelper( com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMSF );
48 bool savePackage( const rtl::OUString& rPackageURL, const XMLFilterVector& rFilters );
49 void openPackage( const rtl::OUString& rPackageURL, XMLFilterVector& rFilters );
51 private:
52 void addFile( com::sun::star::uno::Reference< com::sun::star::uno::XInterface > xRootFolder, com::sun::star::uno::Reference< com::sun::star::lang::XSingleServiceFactory > xFactory, const ::rtl::OUString& rSourceFile ) throw( com::sun::star::uno::Exception );
54 bool copyFile( com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess > xIfc, ::rtl::OUString& rURL, const ::rtl::OUString& rTargetURL );
55 bool copyFiles( com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess > xIfc, filter_info_impl* pFilter );
57 com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > mxMSF;
59 ::rtl::OUString sVndSunStarPackage;
60 ::rtl::OUString sXSLTPath;
61 ::rtl::OUString sDTDPath;
62 ::rtl::OUString sTemplatePath;
63 ::rtl::OUString sSpecialConfigManager;
64 ::rtl::OUString sPump;
65 ::rtl::OUString sProgPath;
68 #endif