merged tag ooo/DEV300_m102
[LibreOffice.git] / filter / source / xsltdialog / xmlfilterjar.hxx
bloba196905edabfa2a07dda4b52ae9f83ef3680a895
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _XMLFILTERJAR_HXX_
28 #define _XMLFILTERJAR_HXX_
30 #include <com/sun/star/container/XHierarchicalNameAccess.hpp>
31 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
32 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
34 #include <vector>
36 class filter_info_impl;
38 typedef std::vector< filter_info_impl* > XMLFilterVector;
40 class XMLFilterJarHelper
42 public:
43 XMLFilterJarHelper( com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& xMSF );
45 bool savePackage( const rtl::OUString& rPackageURL, const XMLFilterVector& rFilters );
46 void openPackage( const rtl::OUString& rPackageURL, XMLFilterVector& rFilters );
48 private:
49 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 );
51 bool copyFile( com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess > xIfc, ::rtl::OUString& rURL, const ::rtl::OUString& rTargetURL );
52 bool copyFiles( com::sun::star::uno::Reference< com::sun::star::container::XHierarchicalNameAccess > xIfc, filter_info_impl* pFilter );
54 com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > mxMSF;
56 ::rtl::OUString sVndSunStarPackage;
57 ::rtl::OUString sXSLTPath;
58 ::rtl::OUString sDTDPath;
59 ::rtl::OUString sTemplatePath;
60 ::rtl::OUString sSpecialConfigManager;
61 ::rtl::OUString sPump;
62 ::rtl::OUString sProgPath;
65 #endif