sw: fail loading when the fallback text detection fails
[LibreOffice.git] / include / unotools / compatibilityviewoptions.hxx
blob6030c5834f4ee4bba7e50c294278ec92943aab38
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
8 */
10 #ifndef INCLUDED_SVTOOLS_COMPATIBILITYVIEWOPTIONS_HXX
11 #define INCLUDED_SVTOOLS_COMPATIBILITYVIEWOPTIONS_HXX
13 #include <unotools/unotoolsdllapi.h>
14 #include <unotools/options.hxx>
16 namespace osl
18 class Mutex;
21 class SvtCompatibilityViewOptions_Impl;
23 /// Compatibility settings which affects the GUI. These are not document level settings
24 /// (like SvtCompatibilityOptions), but global options affecting the application's
25 /// behavior in general.
26 class UNOTOOLS_DLLPUBLIC SvtCompatibilityViewOptions final : public utl::detail::Options
28 public:
29 SvtCompatibilityViewOptions();
30 virtual ~SvtCompatibilityViewOptions() override;
32 bool HasMSOCompatibleFormsMenu() const;
33 void SetMSOCompatibleFormsMenu(bool bSet);
35 private:
36 /// Return a reference to a static mutex
37 UNOTOOLS_DLLPRIVATE static osl::Mutex& GetOwnStaticMutex();
39 std::shared_ptr<SvtCompatibilityViewOptions_Impl> m_pImpl;
42 #endif // #ifndef INCLUDED_SVTOOLS_COMPATIBILITYVIEWOPTIONS_HXX
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */