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 <unotools/unotoolsdllapi.h>
23 #include <unotools/configitem.hxx>
26 struct SvtFilterOptions_Impl
;
27 class UNOTOOLS_DLLPUBLIC SvtFilterOptions
: public utl::ConfigItem
30 std::unique_ptr
<SvtFilterOptions_Impl
> pImpl
;
32 virtual void ImplCommit() override
;
36 virtual ~SvtFilterOptions() override
;
38 virtual void Notify( const css::uno::Sequence
<OUString
>& aPropertyNames
) override
;
41 void SetLoadWordBasicCode( bool bFlag
);
42 bool IsLoadWordBasicCode() const;
43 void SetLoadWordBasicExecutable( bool bFlag
);
44 bool IsLoadWordBasicExecutable() const;
45 void SetLoadWordBasicStorage( bool bFlag
);
46 bool IsLoadWordBasicStorage() const;
48 void SetLoadExcelBasicCode( bool bFlag
);
49 bool IsLoadExcelBasicCode() const;
50 void SetLoadExcelBasicExecutable( bool bFlag
);
51 bool IsLoadExcelBasicExecutable() const;
52 void SetLoadExcelBasicStorage( bool bFlag
);
53 bool IsLoadExcelBasicStorage() const;
55 void SetLoadPPointBasicCode( bool bFlag
);
56 bool IsLoadPPointBasicCode() const;
57 void SetLoadPPointBasicStorage( bool bFlag
);
58 bool IsLoadPPointBasicStorage() const;
60 bool IsMathType2Math() const;
61 void SetMathType2Math( bool bFlag
);
62 bool IsMath2MathType() const;
63 void SetMath2MathType( bool bFlag
);
65 bool IsWinWord2Writer() const;
66 void SetWinWord2Writer( bool bFlag
);
67 bool IsWriter2WinWord() const;
68 void SetWriter2WinWord( bool bFlag
);
70 bool IsUseEnhancedFields() const;
72 bool IsExcel2Calc() const;
73 void SetExcel2Calc( bool bFlag
);
74 bool IsCalc2Excel() const;
75 void SetCalc2Excel( bool bFlag
);
77 bool IsPowerPoint2Impress() const;
78 void SetPowerPoint2Impress( bool bFlag
);
79 bool IsImpress2PowerPoint() const;
80 void SetImpress2PowerPoint( bool bFlag
);
82 bool IsSmartArt2Shape() const;
83 void SetSmartArt2Shape( bool bFlag
);
85 bool IsEnablePPTPreview() const;
86 bool IsEnableCalcPreview() const;
87 bool IsEnableWordPreview() const;
89 bool IsCharBackground2Highlighting() const;
90 bool IsCharBackground2Shading() const;
91 void SetCharBackground2Highlighting();
92 void SetCharBackground2Shading();
94 bool IsMSOLockFileCreationIsEnabled() const;
95 void EnableMSOLockFileCreation(bool bEnable
);
97 static SvtFilterOptions
& Get();
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */