Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / svtools / toolpanelopt.hxx
blob1d2e957972e41da55b28a9d022e3d366a694481e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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 INCLUDED_SVTOOLS_TOOLPANELOPT_HXX
21 #define INCLUDED_SVTOOLS_TOOLPANELOPT_HXX
23 #include <svtools/svtdllapi.h>
24 #include <sal/types.h>
25 #include <osl/mutex.hxx>
26 #include <rtl/ustring.hxx>
27 #include <unotools/options.hxx>
28 #include <memory>
30 class SvtToolPanelOptions_Impl;
32 /** collect information about sidebar group
34 \attention This class is partially threadsafe.
36 class SVT_DLLPUBLIC SvtToolPanelOptions: public utl::detail::Options
38 public:
39 SvtToolPanelOptions();
40 virtual ~SvtToolPanelOptions() override;
42 bool GetVisibleImpressView() const;
43 void SetVisibleImpressView( bool bVisible );
44 bool GetVisibleOutlineView() const;
45 void SetVisibleOutlineView( bool bVisible );
46 bool GetVisibleNotesView() const;
47 void SetVisibleNotesView( bool bVisible );
48 bool GetVisibleHandoutView() const;
49 void SetVisibleHandoutView( bool bVisible );
50 bool GetVisibleSlideSorterView() const;
51 void SetVisibleSlideSorterView( bool bVisible );
54 private:
55 /** return a reference to a static mutex
57 These class is partially threadsafe (for de-/initialization only).
58 All access methods are'nt safe!
59 We create a static mutex only for one ime and use at different times.
61 \return A reference to a static mutex member.*/
62 SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
64 private:
65 std::shared_ptr<SvtToolPanelOptions_Impl> m_pImpl;
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */