LibreOffice Module unotools (master) 1
fltrcfg.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef INCLUDED_UNOTOOLS_FLTRCFG_HXX
20#define INCLUDED_UNOTOOLS_FLTRCFG_HXX
21
22#include <o3tl/deleter.hxx>
25#include <memory>
26
29{
30private:
31 std::unique_ptr<SvtFilterOptions_Impl, o3tl::default_delete<SvtFilterOptions_Impl>> pImpl;
32
33 virtual void ImplCommit() override;
34
35public:
37 virtual ~SvtFilterOptions() override;
38
39 virtual void Notify( const css::uno::Sequence<OUString>& aPropertyNames) override;
40 void Load();
41
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;
48
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;
55
56 void SetLoadPPointBasicCode( bool bFlag );
57 bool IsLoadPPointBasicCode() const;
58 void SetLoadPPointBasicStorage( bool bFlag );
59 bool IsLoadPPointBasicStorage() const;
60
61 bool IsMathType2Math() const;
62 void SetMathType2Math( bool bFlag );
63 bool IsMath2MathType() const;
64 void SetMath2MathType( bool bFlag );
65
66 bool IsWinWord2Writer() const;
67 void SetWinWord2Writer( bool bFlag );
68 bool IsWriter2WinWord() const;
69 void SetWriter2WinWord( bool bFlag );
70
71 bool IsUseEnhancedFields() const;
72
73 bool IsExcel2Calc() const;
74 void SetExcel2Calc( bool bFlag );
75 bool IsCalc2Excel() const;
76 void SetCalc2Excel( bool bFlag );
77
78 bool IsPowerPoint2Impress() const;
79 void SetPowerPoint2Impress( bool bFlag );
80 bool IsImpress2PowerPoint() const;
81 void SetImpress2PowerPoint( bool bFlag );
82
83 bool IsSmartArt2Shape() const;
84 void SetSmartArt2Shape( bool bFlag );
85
86 bool IsEnablePPTPreview() const;
87 bool IsEnableCalcPreview() const;
88 bool IsEnableWordPreview() const;
89
90 bool IsCharBackground2Highlighting() const;
91 bool IsCharBackground2Shading() const;
92 void SetCharBackground2Highlighting();
93 void SetCharBackground2Shading();
94
95 bool IsMSOLockFileCreationIsEnabled() const;
96 void EnableMSOLockFileCreation(bool bEnable);
97
98 bool IsVisio2Draw() const;
99 void SetVisio2Draw(bool bFlag);
100
101 static SvtFilterOptions& Get();
102};
103
104#endif
105
106/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< SvtFilterOptions_Impl, o3tl::default_delete< SvtFilterOptions_Impl > > pImpl
Definition: fltrcfg.hxx:31
virtual void Notify(const css::uno::Sequence< OUString > &aPropertyNames)=0
is called from the ConfigManager before application ends of from the PropertyChangeListener if the su...
virtual void ImplCommit()=0
writes the changed values into the sub tree.
SVXCORE_DLLPUBLIC MSO_SPT Get(const OUString &)
#define UNOTOOLS_DLLPUBLIC