Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / cui / source / options / optfltr.hxx
blob655bc106f5b1ba4b3048f721d0eec956d0f6b7dd
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 FixedLine aMSWordGB;
33 CheckBox aWBasicCodeCB;
34 CheckBox aWBasicWbctblCB;
35 CheckBox aWBasicStgCB;
36 FixedLine aMSExcelGB;
37 CheckBox aEBasicCodeCB;
38 CheckBox aEBasicExectblCB;
39 CheckBox aEBasicStgCB;
40 FixedLine aMSPPointGB;
41 CheckBox aPBasicCodeCB;
42 CheckBox aPBasicStgCB;
44 OfaMSFilterTabPage( Window* pParent, const SfxItemSet& rSet );
45 virtual ~OfaMSFilterTabPage();
47 DECL_LINK(LoadWordBasicCheckHdl_Impl, void *);
48 DECL_LINK(LoadExcelBasicCheckHdl_Impl, void *);
49 public:
51 static SfxTabPage* Create( Window* pParent,
52 const SfxItemSet& rAttrSet );
54 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
55 virtual void Reset( const SfxItemSet& rSet );
58 class OfaMSFilterTabPage2 : public SfxTabPage
60 class MSFltrSimpleTable : public SvxSimpleTable
62 using SvTreeListBox::GetCheckButtonState;
63 using SvTreeListBox::SetCheckButtonState;
64 using SvxSimpleTable::SetTabs;
66 void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, sal_Bool bChecked);
67 SvButtonState GetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol ) const;
68 void SetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol, SvButtonState );
69 protected:
70 virtual void SetTabs();
71 virtual void HBarClick();
72 virtual void KeyInput( const KeyEvent& rKEvt );
74 public:
75 MSFltrSimpleTable(SvxSimpleTableContainer& rParent, WinBits nBits = WB_BORDER)
76 : SvxSimpleTable(rParent, nBits)
81 SvxSimpleTableContainer m_aCheckLBContainer;
82 MSFltrSimpleTable aCheckLB;
83 FixedText aHeader1FT, aHeader2FT;
84 String sHeader1, sHeader2;
85 String sChgToFromMath,
86 sChgToFromWriter,
87 sChgToFromCalc,
88 sChgToFromImpress;
89 SvLBoxButtonData* pCheckButtonData;
91 OfaMSFilterTabPage2( Window* pParent, const SfxItemSet& rSet );
92 virtual ~OfaMSFilterTabPage2();
94 void InsertEntry( const String& _rTxt, sal_IntPtr _nType );
95 SvTreeListEntry* GetEntry4Type( sal_IntPtr _nType ) const;
97 public:
99 static SfxTabPage* Create( Window* pParent, const SfxItemSet& rAttrSet );
101 virtual sal_Bool FillItemSet( SfxItemSet& rSet );
102 virtual void Reset( const SfxItemSet& rSet );
106 #endif //
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */