1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef SD_FRAMEWORK_UPDATE_REQUEST_HXX
21 #define SD_FRAMEWORK_UPDATE_REQUEST_HXX
23 #include "MutexOwner.hxx"
24 #include <com/sun/star/drawing/framework/XConfigurationChangeRequest.hpp>
25 #include <com/sun/star/container/XNamed.hpp>
26 #include <com/sun/star/drawing/framework/XConfiguration.hpp>
27 #include <cppuhelper/compbase2.hxx>
32 typedef ::cppu::WeakComponentImplHelper2
<
33 ::com::sun::star::drawing::framework::XConfigurationChangeRequest
,
34 ::com::sun::star::container::XNamed
35 > UpdateRequestInterfaceBase
;
37 } // end of anonymous namespace.
41 namespace sd
{ namespace framework
{
43 /** This update request is used to request configuration updates
44 asynchronous when no other requests are being processed. When there are
45 other requests then we can simply wait until the last one is executed:
46 the configuration is updated when the request queue becomes empty. This
47 is use by this implementation as well. The execute() method does not
48 really do anything. This request just triggers the update of the
49 configuration when it is removed as last request from the queue.
53 public UpdateRequestInterfaceBase
56 UpdateRequest (void) throw();
57 virtual ~UpdateRequest (void) throw();
60 // XConfigurationChangeOperation
62 virtual void SAL_CALL
execute (
63 const ::com::sun::star::uno::Reference
<
64 com::sun::star::drawing::framework::XConfiguration
>& rxConfiguration
)
65 throw (::com::sun::star::uno::RuntimeException
);
70 /** Return a human readable string representation. This is used for
73 virtual OUString SAL_CALL
getName (void)
74 throw (::com::sun::star::uno::RuntimeException
);
76 /** This call is ignored because the XNamed interface is (mis)used to
77 give access to a human readable name for debugging purposes.
79 virtual void SAL_CALL
setName (const OUString
& rName
)
80 throw (::com::sun::star::uno::RuntimeException
);
83 } } // end of namespace sd::framework
87 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */