update credits
[LibreOffice.git] / cui / source / options / optfltr.hxx
blobfb4fd067e2701ac19e03781ba56ee63aa2a1751a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _OFA_OPTFLTR_HXX
20 #define _OFA_OPTFLTR_HXX
22 #include <vcl/button.hxx>
23 #include <vcl/group.hxx>
24 #include <vcl/fixed.hxx>
25 #include <sfx2/tabdlg.hxx>
26 #include <svx/simptabl.hxx>
30 class OfaMSFilterTabPage : public SfxTabPage
32 CheckBox* aWBasicCodeCB;
33 CheckBox* aWBasicWbctblCB;
34 CheckBox* aWBasicStgCB;
35 CheckBox* aEBasicCodeCB;
36 CheckBox* aEBasicExectblCB;
37 CheckBox* aEBasicStgCB;
38 CheckBox* aPBasicCodeCB;
39 CheckBox* aPBasicStgCB;
41 OfaMSFilterTabPage( Window* pParent, const SfxItemSet& rSet );
42 virtual ~OfaMSFilterTabPage();
44 DECL_LINK(LoadWordBasicCheckHdl_Impl, void *);
45 DECL_LINK(LoadExcelBasicCheckHdl_Impl, void *);
46 public:
48 static SfxTabPage* Create( Window* pParent,
49 const SfxItemSet& rAttrSet );
51 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
52 virtual void Reset( const SfxItemSet& rSet );
55 class OfaMSFilterTabPage2 : public SfxTabPage
57 class MSFltrSimpleTable : public SvxSimpleTable
59 using SvTreeListBox::GetCheckButtonState;
60 using SvTreeListBox::SetCheckButtonState;
61 using SvxSimpleTable::SetTabs;
63 void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked);
64 SvButtonState GetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol ) const;
65 void SetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol, SvButtonState );
66 protected:
67 virtual void SetTabs();
68 virtual void HBarClick();
69 virtual void KeyInput( const KeyEvent& rKEvt );
71 public:
72 MSFltrSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER)
73 : SvxSimpleTable(rParent, nBits)
78 SvxSimpleTableContainer m_aCheckLBContainer;
79 MSFltrSimpleTable aCheckLB;
80 FixedText aHeader1FT, aHeader2FT;
81 String sHeader1, sHeader2;
82 String sChgToFromMath,
83 sChgToFromWriter,
84 sChgToFromCalc,
85 sChgToFromImpress;
86 SvLBoxButtonData* pCheckButtonData;
88 OfaMSFilterTabPage2( Window* pParent, const SfxItemSet& rSet );
89 virtual ~OfaMSFilterTabPage2();
91 void InsertEntry( const String& _rTxt, sal_IntPtr _nType );
92 SvTreeListEntry* GetEntry4Type( sal_IntPtr _nType ) const;
94 public:
96 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
98 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
99 virtual void Reset( const SfxItemSet& rSet );
103 #endif //
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */