xref: /aoo4110/main/unotools/inc/unotools/fltrcfg.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SVT_FLTRCFG_HXX
24 #define _SVT_FLTRCFG_HXX
25 
26 // -----------------------------------------------------------------------
27 
28 #include "unotools/unotoolsdllapi.h"
29 #include <unotools/configitem.hxx>
30 
31 struct SvtFilterOptions_Impl;
32 class UNOTOOLS_DLLPUBLIC SvtFilterOptions : public utl::ConfigItem
33 {
34 	SvtFilterOptions_Impl* pImp;
35 
36 	const com::sun::star::uno::Sequence<rtl::OUString>& GetPropertyNames();
37 public:
38 					SvtFilterOptions();
39 	virtual 	   ~SvtFilterOptions();
40 
41 	virtual void 			Notify( const com::sun::star::uno::Sequence<rtl::OUString>& aPropertyNames);
42 	virtual void			Commit();
43 	void					Load();
44 
45 	void SetLoadWordBasicCode( sal_Bool bFlag );
46 	sal_Bool IsLoadWordBasicCode() const;
47 	void SetLoadWordBasicStorage( sal_Bool bFlag );
48 	sal_Bool IsLoadWordBasicStorage() const;
49 
50 	void SetLoadExcelBasicCode( sal_Bool bFlag );
51 	sal_Bool IsLoadExcelBasicCode() const;
52 	void SetLoadExcelBasicExecutable( sal_Bool bFlag );
53 	sal_Bool IsLoadExcelBasicExecutable() const;
54 	void SetLoadExcelBasicStorage( sal_Bool bFlag );
55 	sal_Bool IsLoadExcelBasicStorage() const;
56 
57 	void SetLoadPPointBasicCode( sal_Bool bFlag );
58 	sal_Bool IsLoadPPointBasicCode() const;
59 	void SetLoadPPointBasicStorage( sal_Bool bFlag );
60 	sal_Bool IsLoadPPointBasicStorage() const;
61 
62 	sal_Bool IsMathType2Math() const;
63 	void SetMathType2Math( sal_Bool bFlag );
64 	sal_Bool IsMath2MathType() const;
65 	void SetMath2MathType( sal_Bool bFlag );
66 
67 	sal_Bool IsWinWord2Writer() const;
68 	void SetWinWord2Writer( sal_Bool bFlag );
69 	sal_Bool IsWriter2WinWord() const;
70 	void SetWriter2WinWord( sal_Bool bFlag );
71 
72     sal_Bool IsUseEnhancedFields() const;
73     void SetUseEnhancedFields( sal_Bool  bFlag );
74 
75 	sal_Bool IsExcel2Calc() const;
76 	void SetExcel2Calc( sal_Bool bFlag );
77 	sal_Bool IsCalc2Excel() const;
78 	void SetCalc2Excel( sal_Bool bFlag );
79 
80 	sal_Bool IsPowerPoint2Impress() const;
81 	void SetPowerPoint2Impress( sal_Bool bFlag );
82 	sal_Bool IsImpress2PowerPoint() const;
83 	void SetImpress2PowerPoint( sal_Bool bFlag );
84 
85 	sal_Bool IsEnablePPTPreview() const;
86 	sal_Bool IsEnableCalcPreview() const;
87 	sal_Bool IsEnableWordPreview() const;
88 
89 	static SvtFilterOptions* Get();
90 };
91 
92 #endif
93 
94 
95 
96 
97