bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / options / optfltr.hxx
blob2abda52cb46e92871839ea06d80fdc681a0b6f7f
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 INCLUDED_CUI_SOURCE_OPTIONS_OPTFLTR_HXX
20 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTFLTR_HXX
22 #include <vcl/button.hxx>
23 #include <vcl/group.hxx>
24 #include <vcl/fixed.hxx>
25 #include <sfx2/tabdlg.hxx>
26 #include <svtools/simptabl.hxx>
28 class OfaMSFilterTabPage : public SfxTabPage
30 VclPtr<CheckBox> aWBasicCodeCB;
31 VclPtr<CheckBox> aWBasicWbctblCB;
32 VclPtr<CheckBox> aWBasicStgCB;
33 VclPtr<CheckBox> aEBasicCodeCB;
34 VclPtr<CheckBox> aEBasicExectblCB;
35 VclPtr<CheckBox> aEBasicStgCB;
36 VclPtr<CheckBox> aPBasicCodeCB;
37 VclPtr<CheckBox> aPBasicStgCB;
40 DECL_LINK(LoadWordBasicCheckHdl_Impl, void *);
41 DECL_LINK(LoadExcelBasicCheckHdl_Impl, void *);
42 public:
43 OfaMSFilterTabPage( vcl::Window* pParent, const SfxItemSet& rSet );
44 virtual ~OfaMSFilterTabPage();
45 virtual void dispose() SAL_OVERRIDE;
47 static VclPtr<SfxTabPage> Create( vcl::Window* pParent,
48 const SfxItemSet* rAttrSet );
50 virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
51 virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
54 class OfaMSFilterTabPage2 : public SfxTabPage
56 class MSFltrSimpleTable : public SvSimpleTable
58 using SvTreeListBox::GetCheckButtonState;
59 using SvTreeListBox::SetCheckButtonState;
60 using SvSimpleTable::SetTabs;
62 void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, bool bChecked);
63 static SvButtonState GetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol );
64 void SetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol, SvButtonState );
65 protected:
66 virtual void SetTabs() SAL_OVERRIDE;
67 virtual void HBarClick() SAL_OVERRIDE;
68 virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
70 public:
71 MSFltrSimpleTable(SvSimpleTableContainer& rParent, WinBits nBits = 0)
72 : SvSimpleTable(rParent, nBits)
77 VclPtr<SvSimpleTableContainer> m_pCheckLBContainer;
78 VclPtr<MSFltrSimpleTable> m_pCheckLB;
79 OUString sHeader1, sHeader2;
80 OUString sChgToFromMath,
81 sChgToFromWriter,
82 sChgToFromCalc,
83 sChgToFromImpress,
84 sChgToFromSmartArt;
85 SvLBoxButtonData* pCheckButtonData;
87 VclPtr<RadioButton> aHighlightingRB;
88 VclPtr<RadioButton> aShadingRB;
90 virtual ~OfaMSFilterTabPage2();
91 virtual void dispose() SAL_OVERRIDE;
93 void InsertEntry( const OUString& _rTxt, sal_IntPtr _nType );
94 void InsertEntry( const OUString& _rTxt, sal_IntPtr _nType,
95 bool loadEnabled, bool saveEnabled );
96 SvTreeListEntry* GetEntry4Type( sal_IntPtr _nType ) const;
98 public:
99 OfaMSFilterTabPage2( vcl::Window* pParent, const SfxItemSet& rSet );
100 static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );
102 virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
103 virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
107 #endif
110 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */