2012-05-25 17:31:11 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
2012-08-07 20:45:12 +02:00
|
|
|
* This file is part of the LibreOffice project.
|
2012-05-25 17:31:11 +02:00
|
|
|
*
|
|
|
|
* 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/.
|
2012-08-07 20:45:12 +02:00
|
|
|
*
|
|
|
|
* 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 .
|
2012-05-25 17:31:11 +02:00
|
|
|
*/
|
2012-08-07 20:45:12 +02:00
|
|
|
|
2012-05-25 17:31:11 +02:00
|
|
|
#ifndef INCLUDED_SVTOOLS_SLIDESORTERBAROPT_HXX
|
|
|
|
#define INCLUDED_SVTOOLS_SLIDESORTERBAROPT_HXX
|
|
|
|
|
2013-11-09 15:40:46 -06:00
|
|
|
#include <svtools/svtdllapi.h>
|
2012-05-25 17:31:11 +02:00
|
|
|
#include <sal/types.h>
|
|
|
|
#include <osl/mutex.hxx>
|
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
#include <unotools/options.hxx>
|
2016-06-15 20:46:16 +02:00
|
|
|
#include <memory>
|
2012-05-25 17:31:11 +02:00
|
|
|
|
2012-08-04 20:43:13 +02:00
|
|
|
/** forward declaration to our private date container implementation
|
|
|
|
|
|
|
|
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
|
2012-08-04 20:43:13 +02:00
|
|
|
is faster and smaller then a complete implementation!
|
|
|
|
*/
|
2012-05-25 17:31:11 +02:00
|
|
|
class SvtSlideSorterBarOptions_Impl;
|
|
|
|
|
2013-02-28 18:11:24 -04:00
|
|
|
/** collect information about sidebar group
|
2012-08-04 20:43:13 +02:00
|
|
|
|
|
|
|
\attention This class is partially threadsafe.
|
|
|
|
*/
|
2012-05-25 17:31:11 +02:00
|
|
|
class SVT_DLLPUBLIC SvtSlideSorterBarOptions: public utl::detail::Options
|
|
|
|
{
|
|
|
|
public:
|
2012-08-04 20:43:13 +02:00
|
|
|
SvtSlideSorterBarOptions();
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvtSlideSorterBarOptions() override;
|
2012-05-25 17:31:11 +02:00
|
|
|
|
2012-08-04 20:43:13 +02:00
|
|
|
bool GetVisibleImpressView() const;
|
|
|
|
void SetVisibleImpressView( bool bVisible );
|
|
|
|
bool GetVisibleOutlineView() const;
|
|
|
|
void SetVisibleOutlineView( bool bVisible );
|
|
|
|
bool GetVisibleNotesView() const;
|
|
|
|
void SetVisibleNotesView( bool bVisible );
|
|
|
|
bool GetVisibleHandoutView() const;
|
|
|
|
void SetVisibleHandoutView( bool bVisible );
|
|
|
|
bool GetVisibleSlideSorterView() const;
|
|
|
|
void SetVisibleSlideSorterView( bool bVisible );
|
|
|
|
bool GetVisibleDrawView() const;
|
|
|
|
void SetVisibleDrawView( bool bVisible );
|
2012-05-25 17:31:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
2012-08-04 20:43:13 +02:00
|
|
|
/** return a reference to a static mutex
|
|
|
|
|
|
|
|
These class is partially threadsafe (for de-/initialization only).
|
2018-01-31 21:33:20 +01:00
|
|
|
All access methods aren't safe!
|
2012-08-04 20:43:13 +02:00
|
|
|
We create a static mutex only for one ime and use at different times.
|
|
|
|
|
|
|
|
\return A reference to a static mutex member.*/
|
2012-05-25 17:31:11 +02:00
|
|
|
SVT_DLLPRIVATE static ::osl::Mutex& GetInitMutex();
|
|
|
|
|
|
|
|
private:
|
2016-06-15 20:46:16 +02:00
|
|
|
std::shared_ptr<SvtSlideSorterBarOptions_Impl> m_pImpl;
|
2012-08-04 20:43:13 +02:00
|
|
|
};
|
2012-05-25 17:31:11 +02:00
|
|
|
|
2012-08-04 20:43:13 +02:00
|
|
|
#endif
|
2012-05-25 17:31:11 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|