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: optfltr.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 _OFA_OPTFLTR_HXX
31 #define _OFA_OPTFLTR_HXX
33 #ifndef _BUTTON_HXX //autogen
34 #include <vcl/button.hxx>
36 #ifndef _GROUP_HXX //autogen
37 #include <vcl/group.hxx>
39 #include <vcl/fixed.hxx>
40 #include <sfx2/tabdlg.hxx>
41 #include <svx/simptabl.hxx>
45 class OfaMSFilterTabPage
: public SfxTabPage
48 CheckBox aWBasicCodeCB
;
49 CheckBox aWBasicStgCB
;
51 CheckBox aEBasicCodeCB
;
52 CheckBox aEBasicExectblCB
;
53 CheckBox aEBasicStgCB
;
54 FixedLine aMSPPointGB
;
55 CheckBox aPBasicCodeCB
;
56 CheckBox aPBasicStgCB
;
58 OfaMSFilterTabPage( Window
* pParent
, const SfxItemSet
& rSet
);
59 virtual ~OfaMSFilterTabPage();
61 DECL_LINK( LoadExcelBasicCheckHdl_Impl
, CheckBox
* );
64 static SfxTabPage
* Create( Window
* pParent
,
65 const SfxItemSet
& rAttrSet
);
67 virtual BOOL
FillItemSet( SfxItemSet
& rSet
);
68 virtual void Reset( const SfxItemSet
& rSet
);
71 class OfaMSFilterTabPage2
: public SfxTabPage
73 class MSFltrSimpleTable
: public SvxSimpleTable
75 using SvTreeListBox::GetCheckButtonState
;
76 using SvTreeListBox::SetCheckButtonState
;
77 using SvxSimpleTable::SetTabs
;
79 void CheckEntryPos(ULONG nPos
, USHORT nCol
, BOOL bChecked
);
80 SvButtonState
GetCheckButtonState( SvLBoxEntry
*, USHORT nCol
) const;
81 void SetCheckButtonState( SvLBoxEntry
*, USHORT nCol
, SvButtonState
);
83 virtual void SetTabs();
84 virtual void HBarClick();
85 virtual void KeyInput( const KeyEvent
& rKEvt
);
88 MSFltrSimpleTable(Window
* pParent
, const ResId
& rResId
) :
89 SvxSimpleTable( pParent
, rResId
){}
92 MSFltrSimpleTable aCheckLB
;
93 FixedText aHeader1FT
, aHeader2FT
;
94 String sHeader1
, sHeader2
;
95 String sChgToFromMath
,
99 SvLBoxButtonData
* pCheckButtonData
;
101 OfaMSFilterTabPage2( Window
* pParent
, const SfxItemSet
& rSet
);
102 virtual ~OfaMSFilterTabPage2();
104 void InsertEntry( const String
& _rTxt
, sal_IntPtr _nType
);
105 SvLBoxEntry
* GetEntry4Type( sal_IntPtr _nType
) const;
109 static SfxTabPage
* Create( Window
* pParent
, const SfxItemSet
& rAttrSet
);
111 virtual BOOL
FillItemSet( SfxItemSet
& rSet
);
112 virtual void Reset( const SfxItemSet
& rSet
);