1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
20 #ifndef INCLUDED_UNOTOOLS_PRINTWARNINGOPTIONS_HXX
21 #define INCLUDED_UNOTOOLS_PRINTWARNINGOPTIONS_HXX
23 #include <unotools/unotoolsdllapi.h>
24 #include <sal/types.h>
25 #include <unotools/options.hxx>
28 namespace osl
{ class Mutex
; }
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 SvtPrintWarningOptions_Impl
;
39 /*-************************************************************************************************************
40 @short collect information about startup features
41 @devstatus ready to use
42 *//*-*************************************************************************************************************/
44 class SAL_WARN_UNUSED UNOTOOLS_DLLPUBLIC SvtPrintWarningOptions final
: public utl::detail::Options
47 SvtPrintWarningOptions();
48 virtual ~SvtPrintWarningOptions() override
;
50 /*-****************************************************************************************************
51 @short interface methods to get and set value of config key "org.openoffice.Office.Common/Print/Warning..."
52 @descr These options describe internal states to enable/disable features of installed office.
54 @seealso configuration package "org.openoffice.Office.Common/_3D-Engine"
55 *//*-*****************************************************************************************************/
57 bool IsPaperSize() const;
58 bool IsPaperOrientation() const;
59 bool IsTransparency() const;
60 bool IsModifyDocumentOnPrintingAllowed() const;
62 void SetPaperSize( bool bState
);
63 void SetPaperOrientation( bool bState
);
64 void SetTransparency( bool bState
);
65 void SetModifyDocumentOnPrintingAllowed( bool bState
);
69 /*-****************************************************************************************************
70 @short return a reference to a static mutex
71 @descr These class use his own static mutex to be threadsafe.
72 We create a static mutex only for one ime and use at different times.
73 @return A reference to a static mutex member.
74 *//*-*****************************************************************************************************/
76 UNOTOOLS_DLLPRIVATE
static ::osl::Mutex
& GetOwnStaticMutex();
79 std::shared_ptr
<SvtPrintWarningOptions_Impl
> m_pImpl
;
81 }; // class SvtPrintWarningOptions
83 #endif // INCLUDED_UNOTOOLS_PRINTWARNINGOPTIONS_HXX
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */