xref: /aoo41x/main/cui/source/options/optfltr.hxx (revision c4eee24d)
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 _OFA_OPTFLTR_HXX
24 #define _OFA_OPTFLTR_HXX
25 
26 #ifndef _BUTTON_HXX //autogen
27 #include <vcl/button.hxx>
28 #endif
29 #ifndef _GROUP_HXX //autogen
30 #include <vcl/group.hxx>
31 #endif
32 #include <vcl/fixed.hxx>
33 #include <sfx2/tabdlg.hxx>
34 #include <svx/simptabl.hxx>
35 
36 
37 
38 class OfaMSFilterTabPage : public SfxTabPage
39 {
40     FixedLine       aMSWordGB;
41 	CheckBox		aWBasicCodeCB;
42 	CheckBox		aWBasicStgCB;
43     FixedLine       aMSExcelGB;
44 	CheckBox		aEBasicCodeCB;
45 	CheckBox		aEBasicExectblCB;
46 	CheckBox		aEBasicStgCB;
47     FixedLine       aMSPPointGB;
48 	CheckBox		aPBasicCodeCB;
49 	CheckBox		aPBasicStgCB;
50 
51 	OfaMSFilterTabPage( Window* pParent, const SfxItemSet& rSet );
52 	virtual ~OfaMSFilterTabPage();
53 
54 	DECL_LINK( LoadExcelBasicCheckHdl_Impl, CheckBox* );
55 public:
56 
57 	static SfxTabPage*	Create( Window* pParent,
58 								const SfxItemSet& rAttrSet );
59 
60 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
61 	virtual	void 		Reset( const SfxItemSet& rSet );
62 };
63 
64 class OfaMSFilterTabPage2 : public SfxTabPage
65 {
66 	class MSFltrSimpleTable : public SvxSimpleTable
67 	{
68 		using SvTreeListBox::GetCheckButtonState;
69 		using SvTreeListBox::SetCheckButtonState;
70 		using SvxSimpleTable::SetTabs;
71 
72         void            CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked);
73         SvButtonState   GetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol ) const;
74 		void			SetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol, SvButtonState );
75     protected:
76 		virtual void	SetTabs();
77 		virtual void	HBarClick();
78         virtual void    KeyInput( const KeyEvent& rKEvt );
79 
80 	public:
MSFltrSimpleTable(Window * pParent,const ResId & rResId)81 		MSFltrSimpleTable(Window* pParent, const ResId& rResId ) :
82 			SvxSimpleTable( pParent, rResId ){}
83 	};
84 
85 	MSFltrSimpleTable aCheckLB;
86 	FixedText aHeader1FT, aHeader2FT;
87 	String sHeader1, sHeader2;
88 	String sChgToFromMath,
89 		   sChgToFromWriter,
90 		   sChgToFromCalc,
91 		   sChgToFromImpress;
92 	SvLBoxButtonData*	pCheckButtonData;
93 
94 	OfaMSFilterTabPage2( Window* pParent, const SfxItemSet& rSet );
95 	virtual ~OfaMSFilterTabPage2();
96 
97     void            InsertEntry( const String& _rTxt, sal_IntPtr _nType );
98     SvLBoxEntry*    GetEntry4Type( sal_IntPtr _nType ) const;
99 
100 public:
101 
102 	static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
103 
104 	virtual	sal_Bool 		FillItemSet( SfxItemSet& rSet );
105 	virtual	void 		Reset( const SfxItemSet& rSet );
106 };
107 
108 
109 #endif //
110 
111 
112