LibreOffice Module svtools (master) 1
miscopt.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#pragma once
20
21#include <svtools/svtdllapi.h>
22#include <sal/types.h>
23#include <rtl/ustring.hxx>
24#include <unotools/options.hxx>
25#include <memory>
26
27template <typename Arg, typename Ret> class Link;
28class LinkParamNone;
29
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*//*-*************************************************************************************************************/
36
38enum class ToolBoxButtonSize;
39
40/*-************************************************************************************************************
41 @short collect information about misc group
42 @ATTENTION This class is partially threadsafe.
43
44 @devstatus ready to use
45*//*-*************************************************************************************************************/
46
48{
49 public:
51 virtual ~SvtMiscOptions() override;
52
53 void AddListenerLink( const Link<LinkParamNone*,void>& rLink );
54 void RemoveListenerLink( const Link<LinkParamNone*,void>& rLink );
55
56 static sal_Int16 GetSymbolsSize();
57 void SetSymbolsSize( sal_Int16 eSet );
58 static sal_Int16 GetCurrentSymbolsSize();
59 static bool AreCurrentSymbolsLarge();
60
61 static OUString GetIconTheme();
62 void SetIconTheme(const OUString&);
63 bool IconThemeWasSetAutomatically() const;
64
65 private:
66 std::shared_ptr<SvtMiscOptions_Impl> m_pImpl;
67
68}; // class SvtMiscOptions
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::shared_ptr< SvtMiscOptions_Impl > m_pImpl
Definition: miscopt.hxx:66
#define SVT_DLLPUBLIC
Definition: svtdllapi.h:27
#define SAL_WARN_UNUSED
ToolBoxButtonSize