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