masterfix DEV300: #i10000# build fix
[LibreOffice.git] / cui / source / options / optfltr.hxx
blob608139fab42d4eb3658f4543a389efe63c745c58
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 #ifndef _OFA_OPTFLTR_HXX
28 #define _OFA_OPTFLTR_HXX
30 #ifndef _BUTTON_HXX //autogen
31 #include <vcl/button.hxx>
32 #endif
33 #ifndef _GROUP_HXX //autogen
34 #include <vcl/group.hxx>
35 #endif
36 #include <vcl/fixed.hxx>
37 #include <sfx2/tabdlg.hxx>
38 #include <svx/simptabl.hxx>
42 class OfaMSFilterTabPage : public SfxTabPage
44 FixedLine aMSWordGB;
45 CheckBox aWBasicCodeCB;
46 CheckBox aWBasicStgCB;
47 FixedLine aMSExcelGB;
48 CheckBox aEBasicCodeCB;
49 CheckBox aEBasicExectblCB;
50 CheckBox aEBasicStgCB;
51 FixedLine aMSPPointGB;
52 CheckBox aPBasicCodeCB;
53 CheckBox aPBasicStgCB;
55 OfaMSFilterTabPage( Window* pParent, const SfxItemSet& rSet );
56 virtual ~OfaMSFilterTabPage();
58 DECL_LINK( LoadExcelBasicCheckHdl_Impl, CheckBox* );
59 public:
61 static SfxTabPage* Create( Window* pParent,
62 const SfxItemSet& rAttrSet );
64 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
65 virtual void Reset( const SfxItemSet& rSet );
68 class OfaMSFilterTabPage2 : public SfxTabPage
70 class MSFltrSimpleTable : public SvxSimpleTable
72 using SvTreeListBox::GetCheckButtonState;
73 using SvTreeListBox::SetCheckButtonState;
74 using SvxSimpleTable::SetTabs;
76 void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked);
77 SvButtonState GetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol ) const;
78 void SetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol, SvButtonState );
79 protected:
80 virtual void SetTabs();
81 virtual void HBarClick();
82 virtual void KeyInput( const KeyEvent& rKEvt );
84 public:
85 MSFltrSimpleTable(Window* pParent, const ResId& rResId ) :
86 SvxSimpleTable( pParent, rResId ){}
89 MSFltrSimpleTable aCheckLB;
90 FixedText aHeader1FT, aHeader2FT;
91 String sHeader1, sHeader2;
92 String sChgToFromMath,
93 sChgToFromWriter,
94 sChgToFromCalc,
95 sChgToFromImpress;
96 SvLBoxButtonData* pCheckButtonData;
98 OfaMSFilterTabPage2( Window* pParent, const SfxItemSet& rSet );
99 virtual ~OfaMSFilterTabPage2();
101 void InsertEntry( const String& _rTxt, sal_IntPtr _nType );
102 SvLBoxEntry* GetEntry4Type( sal_IntPtr _nType ) const;
104 public:
106 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
108 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
109 virtual void Reset( const SfxItemSet& rSet );
113 #endif //