1*f319bb99SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*f319bb99SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*f319bb99SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*f319bb99SAndrew Rist * distributed with this work for additional information 6*f319bb99SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*f319bb99SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*f319bb99SAndrew Rist * "License"); you may not use this file except in compliance 9*f319bb99SAndrew Rist * with the License. You may obtain a copy of the License at 10cdf0e10cSrcweir * 11*f319bb99SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*f319bb99SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*f319bb99SAndrew Rist * software distributed under the License is distributed on an 15*f319bb99SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*f319bb99SAndrew Rist * KIND, either express or implied. See the License for the 17*f319bb99SAndrew Rist * specific language governing permissions and limitations 18*f319bb99SAndrew Rist * under the License. 19cdf0e10cSrcweir * 20*f319bb99SAndrew Rist *************************************************************/ 21*f319bb99SAndrew Rist 22*f319bb99SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef _MANIFEST_WRITER_HXX 25cdf0e10cSrcweir #define _MANIFEST_WRITER_HXX 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include <cppuhelper/implbase2.hxx> 28cdf0e10cSrcweir #ifndef _COM_SUN_STAR_PACKAGES_MANIFEST_XMANIFESTWRITER_HPP 29cdf0e10cSrcweir #include <com/sun/star/packages/manifest/XManifestWriter.hpp> 30cdf0e10cSrcweir #endif 31cdf0e10cSrcweir #ifndef _COM_SUN_STAR_LANG_XPSERVICEINFO_HPP_ 32cdf0e10cSrcweir #include <com/sun/star/lang/XServiceInfo.hpp> 33cdf0e10cSrcweir #endif 34cdf0e10cSrcweir 35cdf0e10cSrcweir namespace com { namespace sun { namespace star { 36cdf0e10cSrcweir namespace lang { class XMultiServiceFactory; class XSingleServiceFactory; } 37cdf0e10cSrcweir } } } 38cdf0e10cSrcweir 39cdf0e10cSrcweir class ManifestWriter: public ::cppu::WeakImplHelper2 40cdf0e10cSrcweir < 41cdf0e10cSrcweir ::com::sun::star::packages::manifest::XManifestWriter, 42cdf0e10cSrcweir ::com::sun::star::lang::XServiceInfo 43cdf0e10cSrcweir > 44cdf0e10cSrcweir { 45cdf0e10cSrcweir protected: 46cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xFactory; 47cdf0e10cSrcweir public: 48cdf0e10cSrcweir ManifestWriter( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > & xNewFactory ); 49cdf0e10cSrcweir virtual ~ManifestWriter(); 50cdf0e10cSrcweir 51cdf0e10cSrcweir // XManifestWriter 52cdf0e10cSrcweir virtual void SAL_CALL writeManifestSequence( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rStream, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > >& rSequence ) 53cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 54cdf0e10cSrcweir 55cdf0e10cSrcweir // XServiceInfo 56cdf0e10cSrcweir virtual ::rtl::OUString SAL_CALL getImplementationName( ) 57cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 58cdf0e10cSrcweir virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName ) 59cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 60cdf0e10cSrcweir virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) 61cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException); 62cdf0e10cSrcweir 63cdf0e10cSrcweir // Component constructor 64cdf0e10cSrcweir static ::rtl::OUString static_getImplementationName(); 65cdf0e10cSrcweir static ::com::sun::star::uno::Sequence < ::rtl::OUString > static_getSupportedServiceNames(); 66cdf0e10cSrcweir static ::com::sun::star::uno::Reference < com::sun::star::lang::XSingleServiceFactory > createServiceFactory( com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > const & rServiceFactory ); 67cdf0e10cSrcweir sal_Bool SAL_CALL static_supportsService(rtl::OUString const & rServiceName); 68cdf0e10cSrcweir }; 69cdf0e10cSrcweir #endif 70cdf0e10cSrcweir 71