1*08421ca6SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*08421ca6SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*08421ca6SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*08421ca6SAndrew Rist * distributed with this work for additional information 6*08421ca6SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*08421ca6SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*08421ca6SAndrew Rist * "License"); you may not use this file except in compliance 9*08421ca6SAndrew Rist * with the License. You may obtain a copy of the License at 10*08421ca6SAndrew Rist * 11*08421ca6SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*08421ca6SAndrew Rist * 13*08421ca6SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*08421ca6SAndrew Rist * software distributed under the License is distributed on an 15*08421ca6SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*08421ca6SAndrew Rist * KIND, either express or implied. See the License for the 17*08421ca6SAndrew Rist * specific language governing permissions and limitations 18*08421ca6SAndrew Rist * under the License. 19*08421ca6SAndrew Rist * 20*08421ca6SAndrew Rist *************************************************************/ 21*08421ca6SAndrew Rist 22*08421ca6SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #include <com/sun/star/util/XCloseListener.hpp> 25cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx> 26cdf0e10cSrcweir 27cdf0e10cSrcweir class OClosePreventer : public ::cppu::WeakImplHelper1 < ::com::sun::star::util::XCloseListener > 28cdf0e10cSrcweir { 29cdf0e10cSrcweir virtual void SAL_CALL queryClosing( const ::com::sun::star::lang::EventObject& Source, sal_Bool GetsOwnership ) throw (::com::sun::star::util::CloseVetoException, ::com::sun::star::uno::RuntimeException); 30cdf0e10cSrcweir virtual void SAL_CALL notifyClosing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException); 31cdf0e10cSrcweir 32cdf0e10cSrcweir virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException); 33cdf0e10cSrcweir }; 34cdf0e10cSrcweir 35