2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-15 17:28:16 +00:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2007-04-11 18:29:09 +00:00
|
|
|
#ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
|
|
|
|
#define INCLUDED_SVTOOLS_MISCOPT_HXX
|
|
|
|
|
2013-11-09 15:40:46 -06:00
|
|
|
#include <svtools/svtdllapi.h>
|
2007-04-11 18:29:09 +00:00
|
|
|
#include <sal/types.h>
|
2015-04-30 10:20:00 +02:00
|
|
|
#include <tools/link.hxx>
|
2007-04-11 18:29:09 +00:00
|
|
|
#include <osl/mutex.hxx>
|
|
|
|
#include <rtl/ustring.hxx>
|
2009-10-06 07:38:24 +02:00
|
|
|
#include <unotools/options.hxx>
|
2016-06-15 20:41:11 +02:00
|
|
|
#include <memory>
|
2007-04-11 18:29:09 +00:00
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
/*-************************************************************************************************************
|
2007-04-11 18:29:09 +00:00
|
|
|
@short forward declaration to our private date container implementation
|
|
|
|
@descr We use these class as internal member to support small memory requirements.
|
2013-12-20 11:25:37 +01:00
|
|
|
You can create the container if it is necessary. The class which use these mechanism
|
2007-04-11 18:29:09 +00:00
|
|
|
is faster and smaller then a complete implementation!
|
|
|
|
*//*-*************************************************************************************************************/
|
|
|
|
|
|
|
|
class SvtMiscOptions_Impl;
|
2016-09-02 13:54:34 +02:00
|
|
|
enum class ToolBoxButtonSize;
|
2007-04-11 18:29:09 +00:00
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
/*-************************************************************************************************************
|
2013-02-28 18:11:24 -04:00
|
|
|
@short collect information about misc group
|
2007-04-11 18:29:09 +00:00
|
|
|
@ATTENTION This class is partially threadsafe.
|
|
|
|
|
|
|
|
@devstatus ready to use
|
|
|
|
*//*-*************************************************************************************************************/
|
|
|
|
|
2009-10-06 07:38:24 +02:00
|
|
|
class SVT_DLLPUBLIC SvtMiscOptions: public utl::detail::Options
|
2007-04-11 18:29:09 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
SvtMiscOptions();
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvtMiscOptions() override;
|
2007-04-11 18:29:09 +00:00
|
|
|
|
2015-09-14 11:28:15 +02:00
|
|
|
void AddListenerLink( const Link<LinkParamNone*,void>& rLink );
|
|
|
|
void RemoveListenerLink( const Link<LinkParamNone*,void>& rLink );
|
2007-04-11 18:29:09 +00:00
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
bool UseSystemFileDialog() const;
|
|
|
|
void SetUseSystemFileDialog( bool bSet );
|
|
|
|
bool IsUseSystemFileDialogReadOnly() const;
|
2007-04-11 18:29:09 +00:00
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
bool DisableUICustomization() const;
|
2010-08-25 23:26:50 +02:00
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
bool IsPluginsEnabled() const;
|
2007-04-11 18:29:09 +00:00
|
|
|
|
|
|
|
sal_Int16 GetSymbolsSize() const;
|
|
|
|
void SetSymbolsSize( sal_Int16 eSet );
|
2016-09-02 13:54:34 +02:00
|
|
|
ToolBoxButtonSize GetSidebarIconSize() const;
|
|
|
|
void SetSidebarIconSize( ToolBoxButtonSize eSet );
|
|
|
|
ToolBoxButtonSize GetNotebookbarIconSize() const;
|
|
|
|
void SetNotebookbarIconSize( ToolBoxButtonSize eSet );
|
2007-04-11 18:29:09 +00:00
|
|
|
sal_Int16 GetCurrentSymbolsSize() const;
|
|
|
|
bool AreCurrentSymbolsLarge() const;
|
|
|
|
|
2014-02-09 00:53:28 +01:00
|
|
|
OUString GetIconTheme() const;
|
|
|
|
void SetIconTheme(const OUString&);
|
|
|
|
bool IconThemeWasSetAutomatically();
|
2007-04-11 18:29:09 +00:00
|
|
|
|
|
|
|
sal_Int16 GetToolboxStyle() const;
|
|
|
|
void SetToolboxStyle( sal_Int16 nStyle );
|
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
bool UseSystemPrintDialog() const;
|
|
|
|
void SetUseSystemPrintDialog( bool bSet );
|
2008-03-05 15:39:28 +00:00
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
bool ShowLinkWarningDialog() const;
|
|
|
|
void SetShowLinkWarningDialog( bool bSet );
|
|
|
|
bool IsShowLinkWarningDialogReadOnly() const;
|
2010-08-25 23:02:22 +02:00
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
void SetExperimentalMode( bool bSet );
|
|
|
|
bool IsExperimentalMode() const;
|
2010-10-28 16:22:50 +01:00
|
|
|
|
2014-03-20 16:41:09 +02:00
|
|
|
void SetMacroRecorderMode( bool bSet );
|
|
|
|
bool IsMacroRecorderMode() const;
|
2012-06-10 23:00:36 +02:00
|
|
|
|
2007-04-11 18:29:09 +00:00
|
|
|
private:
|
|
|
|
|
2014-02-25 19:06:16 +01:00
|
|
|
/*-****************************************************************************************************
|
2007-04-11 18:29:09 +00:00
|
|
|
@short return a reference to a static mutex
|
|
|
|
@descr These class is partially threadsafe (for de-/initialization only).
|
2018-01-31 21:33:20 +01:00
|
|
|
All access methods aren't safe!
|
2007-04-11 18:29:09 +00:00
|
|
|
We create a static mutex only for one ime and use at different times.
|
|
|
|
@return A reference to a static mutex member.
|
|
|
|
*//*-*****************************************************************************************************/
|
|
|
|
|
2007-07-26 07:41:43 +00:00
|
|
|
SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
|
2007-04-11 18:29:09 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-15 20:41:11 +02:00
|
|
|
std::shared_ptr<SvtMiscOptions_Impl> m_pImpl;
|
2007-04-11 18:29:09 +00:00
|
|
|
|
|
|
|
}; // class SvtMiscOptions
|
|
|
|
|
|
|
|
#endif // #ifndef INCLUDED_SVTOOLS_MISCOPT_HXX
|
2010-10-14 08:27:31 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|