lok: use "None" string item in the ListBox control
[LibreOffice.git] / include / svtools / slidesorterbaropt.hxx
blobc12268fea1fab34de889d3ed5dac48b614263ffd
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_SLIDESORTERBAROPT_HXX
21 #define INCLUDED_SVTOOLS_SLIDESORTERBAROPT_HXX
23 #include <svtools/svtdllapi.h>
24 #include <unotools/options.hxx>
25 #include <memory>
27 namespace osl { class Mutex; }
29 /** forward declaration to our private date container implementation
31 We use these class as internal member to support small memory requirements.
32 You can create the container if it is necessary. The class which use these mechanism
33 is faster and smaller then a complete implementation!
35 class SvtSlideSorterBarOptions_Impl;
37 /** collect information about sidebar group
39 \attention This class is partially threadsafe.
41 class SVT_DLLPUBLIC SvtSlideSorterBarOptions final : public utl::detail::Options
43 public:
44 SvtSlideSorterBarOptions();
45 virtual ~SvtSlideSorterBarOptions() override;
47 bool GetVisibleImpressView() const;
48 void SetVisibleImpressView( bool bVisible );
49 bool GetVisibleOutlineView() const;
50 void SetVisibleOutlineView( bool bVisible );
51 bool GetVisibleNotesView() const;
52 void SetVisibleNotesView( bool bVisible );
53 bool GetVisibleHandoutView() const;
54 void SetVisibleHandoutView( bool bVisible );
55 bool GetVisibleSlideSorterView() const;
56 void SetVisibleSlideSorterView( bool bVisible );
57 bool GetVisibleDrawView() const;
58 void SetVisibleDrawView( bool bVisible );
61 private:
62 /** return a reference to a static mutex
64 These class is partially threadsafe (for de-/initialization only).
65 All access methods aren't safe!
66 We create a static mutex only for one ime and use at different times.
68 \return A reference to a static mutex member.*/
69 SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
71 private:
72 std::shared_ptr<SvtSlideSorterBarOptions_Impl> m_pImpl;
75 #endif
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */