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 .
19 #ifndef INCLUDED_UNOTOOLS_FLTRCFG_HXX
20 #define INCLUDED_UNOTOOLS_FLTRCFG_HXX
22 #include <o3tl/deleter.hxx>
23 #include <unotools/unotoolsdllapi.h>
24 #include <unotools/configitem.hxx>
27 struct SvtFilterOptions_Impl
;
28 class UNOTOOLS_DLLPUBLIC SvtFilterOptions final
: public utl::ConfigItem
31 std::unique_ptr
<SvtFilterOptions_Impl
, o3tl::default_delete
<SvtFilterOptions_Impl
>> pImpl
;
33 virtual void ImplCommit() override
;
37 virtual ~SvtFilterOptions() override
;
39 virtual void Notify( const css::uno::Sequence
<OUString
>& aPropertyNames
) override
;
42 void SetLoadWordBasicCode( bool bFlag
);
43 bool IsLoadWordBasicCode() const;
44 void SetLoadWordBasicExecutable( bool bFlag
);
45 bool IsLoadWordBasicExecutable() const;
46 void SetLoadWordBasicStorage( bool bFlag
);
47 bool IsLoadWordBasicStorage() const;
49 void SetLoadExcelBasicCode( bool bFlag
);
50 bool IsLoadExcelBasicCode() const;
51 void SetLoadExcelBasicExecutable( bool bFlag
);
52 bool IsLoadExcelBasicExecutable() const;
53 void SetLoadExcelBasicStorage( bool bFlag
);
54 bool IsLoadExcelBasicStorage() const;
56 void SetLoadPPointBasicCode( bool bFlag
);
57 bool IsLoadPPointBasicCode() const;
58 void SetLoadPPointBasicStorage( bool bFlag
);
59 bool IsLoadPPointBasicStorage() const;
61 bool IsMathType2Math() const;
62 void SetMathType2Math( bool bFlag
);
63 bool IsMath2MathType() const;
64 void SetMath2MathType( bool bFlag
);
66 bool IsWinWord2Writer() const;
67 void SetWinWord2Writer( bool bFlag
);
68 bool IsWriter2WinWord() const;
69 void SetWriter2WinWord( bool bFlag
);
71 bool IsUseEnhancedFields() const;
73 bool IsExcel2Calc() const;
74 void SetExcel2Calc( bool bFlag
);
75 bool IsCalc2Excel() const;
76 void SetCalc2Excel( bool bFlag
);
78 bool IsPowerPoint2Impress() const;
79 void SetPowerPoint2Impress( bool bFlag
);
80 bool IsImpress2PowerPoint() const;
81 void SetImpress2PowerPoint( bool bFlag
);
83 bool IsSmartArt2Shape() const;
84 void SetSmartArt2Shape( bool bFlag
);
86 bool IsEnablePPTPreview() const;
87 bool IsEnableCalcPreview() const;
88 bool IsEnableWordPreview() const;
90 bool IsCharBackground2Highlighting() const;
91 bool IsCharBackground2Shading() const;
92 void SetCharBackground2Highlighting();
93 void SetCharBackground2Shading();
95 bool IsMSOLockFileCreationIsEnabled() const;
96 void EnableMSOLockFileCreation(bool bEnable
);
98 bool IsVisio2Draw() const;
99 void SetVisio2Draw(bool bFlag
);
101 static SvtFilterOptions
& Get();
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */