sync master with lastest vba changes
[ooovba.git] / binfilter / inc / bf_sch / SchXMLWrapper.hxx
blobd0c7dea9238eb070cc937cff7a620efdc4b7b85c
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: SchXMLWrapper.hxx,v $
10 * $Revision: 1.6 $
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 _SCH_XMLWRP_HXX_
31 #define _SCH_XMLWRP_HXX_
33 #ifndef _SVSTOR_HXX
34 #include <bf_so3/svstor.hxx>
35 #endif
36 namespace com { namespace sun { namespace star {
37 namespace xml {
38 namespace sax {
39 class XParser;
42 namespace document {
43 class XGraphicObjectResolver;
45 namespace frame {
46 class XModel;
48 namespace task {
49 class XStatusIndicator;
51 namespace lang {
52 class XMultiServiceFactory;
54 namespace io {
55 class XActiveDataSource;
57 }}}
58 namespace binfilter {
60 //STRIP008 namespace com { namespace sun { namespace star {
61 //STRIP008 namespace xml {
62 //STRIP008 namespace sax {
63 //STRIP008 class XParser;
64 //STRIP008 }
65 //STRIP008 }
66 //STRIP008 namespace document {
67 //STRIP008 class XGraphicObjectResolver;
68 //STRIP008 }
69 //STRIP008 namespace frame {
70 //STRIP008 class XModel;
71 //STRIP008 }
72 //STRIP008 namespace task {
73 //STRIP008 class XStatusIndicator;
74 //STRIP008 }
75 //STRIP008 namespace lang {
76 //STRIP008 class XMultiServiceFactory;
77 //STRIP008 }
78 //STRIP008 namespace io {
79 //STRIP008 class XActiveDataSource;
80 //STRIP008 }
81 //STRIP008 }}}
83 class SchXMLWrapper
85 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
86 ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > mxStatusIndicator;
87 SvStorage& mrStorage;
89 sal_Bool mbIsDraw : 1;
90 sal_Bool mbShowProgress : 1;
92 sal_Bool ExportStream(
93 const ::rtl::OUString& rsStreamName,
94 const ::rtl::OUString& rsServiceName,
95 ::com::sun::star::uno::Reference< ::com::sun::star::io::XActiveDataSource >& xDataSource,
96 ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& xServiceFactory,
97 ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArgs );
99 public:
100 SchXMLWrapper( ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel >& xModel,
101 SvStorage& rStorage,
102 sal_Bool bShowProgress = TRUE );
104 sal_Int32 Import();
105 sal_Bool Export();
108 } //namespace binfilter
109 #endif // _SCH_XMLWRP_HXX_