swwait.hxx (1d2dbeb0) swwait.hxx (8ef2f12b)
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

--- 12 unchanged lines hidden (view full) ---

21
22
23#ifndef _SWWAIT_HXX
24#define _SWWAIT_HXX
25
26#include <tools/solar.h>
27#include "swdllapi.h"
28
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

--- 12 unchanged lines hidden (view full) ---

21
22
23#ifndef _SWWAIT_HXX
24#define _SWWAIT_HXX
25
26#include <tools/solar.h>
27#include "swdllapi.h"
28
29#include <hash_set>
30
29class SwDocShell;
31class SwDocShell;
32class SfxDispatcher;
30
31class SW_DLLPUBLIC SwWait
32{
33
34class SW_DLLPUBLIC SwWait
35{
33 SwDocShell &rDoc;
34 sal_Bool bLock;
35public:
36public:
36 SwWait( SwDocShell &rDocShell, sal_Bool bLockDispatcher );
37 // Activate wait cursor for all windows of given document <rDocShell>
38 // Optional all dispatcher could be Locked
39 SwWait(
40 SwDocShell &rDocShell,
41 const bool bLockUnlockDispatcher );
37 ~SwWait();
42 ~SwWait();
43
44private:
45 void EnterWaitAndLockDispatcher();
46 void LeaveWaitAndUnlockDispatcher();
47
48 SwDocShell& mrDoc;
49 const bool mbLockUnlockDispatcher;
50 std::unordered_set< SfxDispatcher* > mpLockedDispatchers;
38};
39
40#endif
51};
52
53#endif