tdf#119209: Windows share has inappropriate server suggestion
[LibreOffice.git] / include / svtools / miscopt.hxx
blobdc60c6a2274567f28f75aac699f537b98e423f7e
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 <tools/link.hxx>
25 #include <osl/mutex.hxx>
26 #include <rtl/ustring.hxx>
27 #include <unotools/options.hxx>
28 #include <memory>
30 /*-************************************************************************************************************
31 @short forward declaration to our private date container implementation
32 @descr We use these class as internal member to support small memory requirements.
33 You can create the container if it is necessary. The class which use these mechanism
34 is faster and smaller then a complete implementation!
35 *//*-*************************************************************************************************************/
37 class SvtMiscOptions_Impl;
38 enum class ToolBoxButtonSize;
40 /*-************************************************************************************************************
41 @short collect information about misc group
42 @ATTENTION This class is partially threadsafe.
44 @devstatus ready to use
45 *//*-*************************************************************************************************************/
47 class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
49 public:
50 SvtMiscOptions();
51 virtual ~SvtMiscOptions() override;
53 void AddListenerLink( const Link<LinkParamNone*,void>& rLink );
54 void RemoveListenerLink( const Link<LinkParamNone*,void>& rLink );
56 bool UseSystemFileDialog() const;
57 void SetUseSystemFileDialog( bool bSet );
58 bool IsUseSystemFileDialogReadOnly() const;
60 bool DisableUICustomization() const;
62 bool IsPluginsEnabled() const;
64 sal_Int16 GetSymbolsSize() const;
65 void SetSymbolsSize( sal_Int16 eSet );
66 ToolBoxButtonSize GetSidebarIconSize() const;
67 void SetSidebarIconSize( ToolBoxButtonSize eSet );
68 ToolBoxButtonSize GetNotebookbarIconSize() const;
69 void SetNotebookbarIconSize( ToolBoxButtonSize eSet );
70 sal_Int16 GetCurrentSymbolsSize() const;
71 bool AreCurrentSymbolsLarge() const;
73 OUString GetIconTheme() const;
74 void SetIconTheme(const OUString&);
75 bool IconThemeWasSetAutomatically();
77 sal_Int16 GetToolboxStyle() const;
78 void SetToolboxStyle( sal_Int16 nStyle );
80 bool UseSystemPrintDialog() const;
81 void SetUseSystemPrintDialog( bool bSet );
83 bool ShowLinkWarningDialog() const;
84 void SetShowLinkWarningDialog( bool bSet );
85 bool IsShowLinkWarningDialogReadOnly() const;
87 void SetExperimentalMode( bool bSet );
88 bool IsExperimentalMode() const;
90 void SetMacroRecorderMode( bool bSet );
91 bool IsMacroRecorderMode() const;
93 private:
95 /*-****************************************************************************************************
96 @short return a reference to a static mutex
97 @descr These class is partially threadsafe (for de-/initialization only).
98 All access methods aren't safe!
99 We create a static mutex only for one ime and use at different times.
100 @return A reference to a static mutex member.
101 *//*-*****************************************************************************************************/
103 SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
105 private:
106 std::shared_ptr<SvtMiscOptions_Impl> m_pImpl;
108 }; // class SvtMiscOptions
110 #endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
112 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */