bump product version to 6.3.0.0.beta1
[LibreOffice.git] / include / svtools / miscopt.hxx
blobb84bbc2da8d499d061172214e39cfc30437703b0
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 .
19 #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
20 #define INCLUDED_SVTOOLS_MISCOPT_HXX
22 #include <svtools/svtdllapi.h>
23 #include <sal/types.h>
24 #include <rtl/ustring.hxx>
25 #include <unotools/options.hxx>
26 #include <memory>
28 namespace osl { class Mutex; }
29 template <typename Arg, typename Ret> class Link;
30 class LinkParamNone;
32 /*-************************************************************************************************************
33 @short forward declaration to our private date container implementation
34 @descr We use these class as internal member to support small memory requirements.
35 You can create the container if it is necessary. The class which use these mechanism
36 is faster and smaller then a complete implementation!
37 *//*-*************************************************************************************************************/
39 class SvtMiscOptions_Impl;
40 enum class ToolBoxButtonSize;
42 /*-************************************************************************************************************
43 @short collect information about misc group
44 @ATTENTION This class is partially threadsafe.
46 @devstatus ready to use
47 *//*-*************************************************************************************************************/
49 class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
51 public:
52 SvtMiscOptions();
53 virtual ~SvtMiscOptions() override;
55 void AddListenerLink( const Link<LinkParamNone*,void>& rLink );
56 void RemoveListenerLink( const Link<LinkParamNone*,void>& rLink );
58 bool UseSystemFileDialog() const;
59 void SetUseSystemFileDialog( bool bSet );
60 bool IsUseSystemFileDialogReadOnly() const;
62 bool DisableUICustomization() const;
64 bool IsPluginsEnabled() const;
66 sal_Int16 GetSymbolsSize() const;
67 void SetSymbolsSize( sal_Int16 eSet );
68 ToolBoxButtonSize GetSidebarIconSize() const;
69 void SetSidebarIconSize( ToolBoxButtonSize eSet );
70 ToolBoxButtonSize GetNotebookbarIconSize() const;
71 void SetNotebookbarIconSize( ToolBoxButtonSize eSet );
72 sal_Int16 GetCurrentSymbolsSize() const;
73 bool AreCurrentSymbolsLarge() const;
75 OUString GetIconTheme() const;
76 void SetIconTheme(const OUString&);
77 bool IconThemeWasSetAutomatically();
79 sal_Int16 GetToolboxStyle() const;
80 void SetToolboxStyle( sal_Int16 nStyle );
82 bool UseSystemPrintDialog() const;
83 void SetUseSystemPrintDialog( bool bSet );
85 bool ShowLinkWarningDialog() const;
86 void SetShowLinkWarningDialog( bool bSet );
87 bool IsShowLinkWarningDialogReadOnly() const;
89 void SetExperimentalMode( bool bSet );
90 bool IsExperimentalMode() const;
92 void SetMacroRecorderMode( bool bSet );
93 bool IsMacroRecorderMode() const;
95 private:
97 /*-****************************************************************************************************
98 @short return a reference to a static mutex
99 @descr These class is partially threadsafe (for de-/initialization only).
100 All access methods aren't safe!
101 We create a static mutex only for one ime and use at different times.
102 @return A reference to a static mutex member.
103 *//*-*****************************************************************************************************/
105 SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
107 private:
108 std::shared_ptr<SvtMiscOptions_Impl> m_pImpl;
110 }; // class SvtMiscOptions
112 #endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */