1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: fltrcfg.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVT_FLTRCFG_HXX
31 #define _SVT_FLTRCFG_HXX
33 // -----------------------------------------------------------------------
35 #include "svtools/svldllapi.h"
36 #include <unotools/configitem.hxx>
38 struct SvtFilterOptions_Impl
;
39 class SVL_DLLPUBLIC SvtFilterOptions
: public utl::ConfigItem
41 SvtFilterOptions_Impl
* pImp
;
43 const com::sun::star::uno::Sequence
<rtl::OUString
>& GetPropertyNames();
46 virtual ~SvtFilterOptions();
48 virtual void Notify( const com::sun::star::uno::Sequence
<rtl::OUString
>& aPropertyNames
);
49 virtual void Commit();
52 void SetLoadWordBasicCode( sal_Bool bFlag
);
53 sal_Bool
IsLoadWordBasicCode() const;
54 void SetLoadWordBasicStorage( sal_Bool bFlag
);
55 sal_Bool
IsLoadWordBasicStorage() const;
57 void SetLoadExcelBasicCode( sal_Bool bFlag
);
58 sal_Bool
IsLoadExcelBasicCode() const;
59 void SetLoadExcelBasicExecutable( sal_Bool bFlag
);
60 sal_Bool
IsLoadExcelBasicExecutable() const;
61 void SetLoadExcelBasicStorage( sal_Bool bFlag
);
62 sal_Bool
IsLoadExcelBasicStorage() const;
64 void SetLoadPPointBasicCode( sal_Bool bFlag
);
65 sal_Bool
IsLoadPPointBasicCode() const;
66 void SetLoadPPointBasicStorage( sal_Bool bFlag
);
67 sal_Bool
IsLoadPPointBasicStorage() const;
69 sal_Bool
IsMathType2Math() const;
70 void SetMathType2Math( sal_Bool bFlag
);
71 sal_Bool
IsMath2MathType() const;
72 void SetMath2MathType( sal_Bool bFlag
);
74 sal_Bool
IsWinWord2Writer() const;
75 void SetWinWord2Writer( sal_Bool bFlag
);
76 sal_Bool
IsWriter2WinWord() const;
77 void SetWriter2WinWord( sal_Bool bFlag
);
79 sal_Bool
IsUseEnhancedFields() const;
80 void SetUseEnhancedFields( sal_Bool bFlag
);
82 sal_Bool
IsExcel2Calc() const;
83 void SetExcel2Calc( sal_Bool bFlag
);
84 sal_Bool
IsCalc2Excel() const;
85 void SetCalc2Excel( sal_Bool bFlag
);
87 sal_Bool
IsPowerPoint2Impress() const;
88 void SetPowerPoint2Impress( sal_Bool bFlag
);
89 sal_Bool
IsImpress2PowerPoint() const;
90 void SetImpress2PowerPoint( sal_Bool bFlag
);
92 sal_Bool
IsEnablePPTPreview() const;
93 sal_Bool
IsEnableCalcPreview() const;
94 sal_Bool
IsEnableWordPreview() const;
96 static SvtFilterOptions
* Get();