Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / svtools / miscopt.hxx
blob226e92bc68d396e6506347adc84b7f3182e4a6a1
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 #pragma once
21 #include <svtools/svtdllapi.h>
22 #include <sal/types.h>
23 #include <rtl/ustring.hxx>
24 #include <unotools/options.hxx>
25 #include <memory>
27 template <typename Arg, typename Ret> class Link;
28 class LinkParamNone;
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 SAL_WARN_UNUSED SVT_DLLPUBLIC SvtMiscOptions final : 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 static sal_Int16 GetSymbolsSize();
57 void SetSymbolsSize( sal_Int16 eSet );
58 static sal_Int16 GetCurrentSymbolsSize();
59 static bool AreCurrentSymbolsLarge();
61 static OUString GetIconTheme();
62 void SetIconTheme(const OUString&);
63 bool IconThemeWasSetAutomatically() const;
65 private:
66 std::shared_ptr<SvtMiscOptions_Impl> m_pImpl;
68 }; // class SvtMiscOptions
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */