xref: /AOO42X/main/framework/inc/framework/toolboxconfiguration.hxx (revision 9ec4364b07e7ef7f3918c20bb92058686c5065e7)
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 #ifndef __FRAMEWORK_XML_TOOLBOXCONFIGURATION_HXX_
23 #define __FRAMEWORK_XML_TOOLBOXCONFIGURATION_HXX_
24 
25 #include <framework/fwedllapi.h>
26 #include <svl/svarray.hxx>
27 #include <vcl/bitmap.hxx>
28 #include <tools/string.hxx>
29 #include <com/sun/star/io/XInputStream.hpp>
30 #ifndef _COM_SUN_STAR_IO_XOUPUTSTREAM_HPP_
31 #include <com/sun/star/io/XOutputStream.hpp>
32 #endif
33 #include <com/sun/star/container/XIndexContainer.hpp>
34 #include <com/sun/star/container/XIndexAccess.hpp>
35 
36 // #110897#
37 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
38 
39 namespace framework
40 {
41 
42 class FWE_DLLPUBLIC ToolBoxConfiguration
43 {
44     public:
45         // #110897#
46         static sal_Bool LoadToolBox(
47             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
48             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& rInputStream,
49             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >& rToolbarConfiguration );
50 
51         // #110897#
52         static sal_Bool StoreToolBox(
53             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& xServiceFactory,
54             const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rOutputStream,
55             const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess >& rToolbarConfiguration );
56 };
57 
58 } // namespace framework
59 
60 #endif // __FRAMEWORK_XML_TOOLBOXCONFIGURATION_HXX_
61 
62 /* vim: set noet sw=4 ts=4: */
63