1*bfd08df8SAndrew Rist /**************************************************************
2cdf0e10cSrcweir *
3*bfd08df8SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*bfd08df8SAndrew Rist * or more contributor license agreements. See the NOTICE file
5*bfd08df8SAndrew Rist * distributed with this work for additional information
6*bfd08df8SAndrew Rist * regarding copyright ownership. The ASF licenses this file
7*bfd08df8SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*bfd08df8SAndrew Rist * "License"); you may not use this file except in compliance
9*bfd08df8SAndrew Rist * with the License. You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*bfd08df8SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*bfd08df8SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*bfd08df8SAndrew Rist * software distributed under the License is distributed on an
15*bfd08df8SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*bfd08df8SAndrew Rist * KIND, either express or implied. See the License for the
17*bfd08df8SAndrew Rist * specific language governing permissions and limitations
18*bfd08df8SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*bfd08df8SAndrew Rist *************************************************************/
21*bfd08df8SAndrew Rist
22*bfd08df8SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove
25cdf0e10cSrcweir #include "precompiled_embeddedobj.hxx"
26cdf0e10cSrcweir
27cdf0e10cSrcweir #include "closepreventer.hxx"
28cdf0e10cSrcweir
queryClosing(const::com::sun::star::lang::EventObject &,sal_Bool)29cdf0e10cSrcweir void SAL_CALL OClosePreventer::queryClosing( const ::com::sun::star::lang::EventObject&, sal_Bool )
30cdf0e10cSrcweir throw (::com::sun::star::util::CloseVetoException, ::com::sun::star::uno::RuntimeException)
31cdf0e10cSrcweir {
32cdf0e10cSrcweir throw ::com::sun::star::util::CloseVetoException();
33cdf0e10cSrcweir }
34cdf0e10cSrcweir
notifyClosing(const com::sun::star::lang::EventObject &)35cdf0e10cSrcweir void SAL_CALL OClosePreventer::notifyClosing( const com::sun::star::lang::EventObject& )
36cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException)
37cdf0e10cSrcweir {
38cdf0e10cSrcweir // just a disaster
39cdf0e10cSrcweir OSL_ENSURE( sal_False, "The object can not be prevented from closing!\n" );
40cdf0e10cSrcweir }
41cdf0e10cSrcweir
disposing(const com::sun::star::lang::EventObject &)42cdf0e10cSrcweir void SAL_CALL OClosePreventer::disposing( const com::sun::star::lang::EventObject& )
43cdf0e10cSrcweir throw (::com::sun::star::uno::RuntimeException)
44cdf0e10cSrcweir {
45cdf0e10cSrcweir // just a disaster
46cdf0e10cSrcweir OSL_ENSURE( sal_False, "The object can not be prevented from closing!\n" );
47cdf0e10cSrcweir }
48cdf0e10cSrcweir
49