1*c4eee24dSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c4eee24dSAndrew Rist * distributed with this work for additional information 6*c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9*c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10*c4eee24dSAndrew Rist * 11*c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*c4eee24dSAndrew Rist * 13*c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15*c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17*c4eee24dSAndrew Rist * specific language governing permissions and limitations 18*c4eee24dSAndrew Rist * under the License. 19*c4eee24dSAndrew Rist * 20*c4eee24dSAndrew Rist *************************************************************/ 21*c4eee24dSAndrew Rist 22*c4eee24dSAndrew Rist 23cdf0e10cSrcweir #ifndef _OFA_OPTFLTR_HXX 24cdf0e10cSrcweir #define _OFA_OPTFLTR_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir #ifndef _BUTTON_HXX //autogen 27cdf0e10cSrcweir #include <vcl/button.hxx> 28cdf0e10cSrcweir #endif 29cdf0e10cSrcweir #ifndef _GROUP_HXX //autogen 30cdf0e10cSrcweir #include <vcl/group.hxx> 31cdf0e10cSrcweir #endif 32cdf0e10cSrcweir #include <vcl/fixed.hxx> 33cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 34cdf0e10cSrcweir #include <svx/simptabl.hxx> 35cdf0e10cSrcweir 36cdf0e10cSrcweir 37cdf0e10cSrcweir 38cdf0e10cSrcweir class OfaMSFilterTabPage : public SfxTabPage 39cdf0e10cSrcweir { 40cdf0e10cSrcweir FixedLine aMSWordGB; 41cdf0e10cSrcweir CheckBox aWBasicCodeCB; 42cdf0e10cSrcweir CheckBox aWBasicStgCB; 43cdf0e10cSrcweir FixedLine aMSExcelGB; 44cdf0e10cSrcweir CheckBox aEBasicCodeCB; 45cdf0e10cSrcweir CheckBox aEBasicExectblCB; 46cdf0e10cSrcweir CheckBox aEBasicStgCB; 47cdf0e10cSrcweir FixedLine aMSPPointGB; 48cdf0e10cSrcweir CheckBox aPBasicCodeCB; 49cdf0e10cSrcweir CheckBox aPBasicStgCB; 50cdf0e10cSrcweir 51cdf0e10cSrcweir OfaMSFilterTabPage( Window* pParent, const SfxItemSet& rSet ); 52cdf0e10cSrcweir virtual ~OfaMSFilterTabPage(); 53cdf0e10cSrcweir 54cdf0e10cSrcweir DECL_LINK( LoadExcelBasicCheckHdl_Impl, CheckBox* ); 55cdf0e10cSrcweir public: 56cdf0e10cSrcweir 57cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, 58cdf0e10cSrcweir const SfxItemSet& rAttrSet ); 59cdf0e10cSrcweir 60cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 61cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 62cdf0e10cSrcweir }; 63cdf0e10cSrcweir 64cdf0e10cSrcweir class OfaMSFilterTabPage2 : public SfxTabPage 65cdf0e10cSrcweir { 66cdf0e10cSrcweir class MSFltrSimpleTable : public SvxSimpleTable 67cdf0e10cSrcweir { 68cdf0e10cSrcweir using SvTreeListBox::GetCheckButtonState; 69cdf0e10cSrcweir using SvTreeListBox::SetCheckButtonState; 70cdf0e10cSrcweir using SvxSimpleTable::SetTabs; 71cdf0e10cSrcweir 72cdf0e10cSrcweir void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked); 73cdf0e10cSrcweir SvButtonState GetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol ) const; 74cdf0e10cSrcweir void SetCheckButtonState( SvLBoxEntry*, sal_uInt16 nCol, SvButtonState ); 75cdf0e10cSrcweir protected: 76cdf0e10cSrcweir virtual void SetTabs(); 77cdf0e10cSrcweir virtual void HBarClick(); 78cdf0e10cSrcweir virtual void KeyInput( const KeyEvent& rKEvt ); 79cdf0e10cSrcweir 80cdf0e10cSrcweir public: MSFltrSimpleTable(Window * pParent,const ResId & rResId)81cdf0e10cSrcweir MSFltrSimpleTable(Window* pParent, const ResId& rResId ) : 82cdf0e10cSrcweir SvxSimpleTable( pParent, rResId ){} 83cdf0e10cSrcweir }; 84cdf0e10cSrcweir 85cdf0e10cSrcweir MSFltrSimpleTable aCheckLB; 86cdf0e10cSrcweir FixedText aHeader1FT, aHeader2FT; 87cdf0e10cSrcweir String sHeader1, sHeader2; 88cdf0e10cSrcweir String sChgToFromMath, 89cdf0e10cSrcweir sChgToFromWriter, 90cdf0e10cSrcweir sChgToFromCalc, 91cdf0e10cSrcweir sChgToFromImpress; 92cdf0e10cSrcweir SvLBoxButtonData* pCheckButtonData; 93cdf0e10cSrcweir 94cdf0e10cSrcweir OfaMSFilterTabPage2( Window* pParent, const SfxItemSet& rSet ); 95cdf0e10cSrcweir virtual ~OfaMSFilterTabPage2(); 96cdf0e10cSrcweir 97cdf0e10cSrcweir void InsertEntry( const String& _rTxt, sal_IntPtr _nType ); 98cdf0e10cSrcweir SvLBoxEntry* GetEntry4Type( sal_IntPtr _nType ) const; 99cdf0e10cSrcweir 100cdf0e10cSrcweir public: 101cdf0e10cSrcweir 102cdf0e10cSrcweir static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet ); 103cdf0e10cSrcweir 104cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& rSet ); 105cdf0e10cSrcweir virtual void Reset( const SfxItemSet& rSet ); 106cdf0e10cSrcweir }; 107cdf0e10cSrcweir 108cdf0e10cSrcweir 109cdf0e10cSrcweir #endif // 110cdf0e10cSrcweir 111cdf0e10cSrcweir 112