Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTFLTR_HXX
20 : #define INCLUDED_CUI_SOURCE_OPTIONS_OPTFLTR_HXX
21 :
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>
27 :
28 : class OfaMSFilterTabPage : public SfxTabPage
29 : {
30 : CheckBox* aWBasicCodeCB;
31 : CheckBox* aWBasicWbctblCB;
32 : CheckBox* aWBasicStgCB;
33 : CheckBox* aEBasicCodeCB;
34 : CheckBox* aEBasicExectblCB;
35 : CheckBox* aEBasicStgCB;
36 : CheckBox* aPBasicCodeCB;
37 : CheckBox* aPBasicStgCB;
38 :
39 : OfaMSFilterTabPage( vcl::Window* pParent, const SfxItemSet& rSet );
40 : virtual ~OfaMSFilterTabPage();
41 :
42 : DECL_LINK(LoadWordBasicCheckHdl_Impl, void *);
43 : DECL_LINK(LoadExcelBasicCheckHdl_Impl, void *);
44 : public:
45 :
46 : static SfxTabPage* Create( vcl::Window* pParent,
47 : const SfxItemSet* rAttrSet );
48 :
49 : virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
50 : virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
51 : };
52 :
53 : class OfaMSFilterTabPage2 : public SfxTabPage
54 : {
55 0 : class MSFltrSimpleTable : public SvSimpleTable
56 : {
57 : using SvTreeListBox::GetCheckButtonState;
58 : using SvTreeListBox::SetCheckButtonState;
59 : using SvSimpleTable::SetTabs;
60 :
61 : void CheckEntryPos(sal_uLong nPos, sal_uInt16 nCol, bool bChecked);
62 : SvButtonState GetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol ) const;
63 : void SetCheckButtonState( SvTreeListEntry*, sal_uInt16 nCol, SvButtonState );
64 : protected:
65 : virtual void SetTabs() SAL_OVERRIDE;
66 : virtual void HBarClick() SAL_OVERRIDE;
67 : virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE;
68 :
69 : public:
70 0 : MSFltrSimpleTable(SvSimpleTableContainer& rParent, WinBits nBits = 0)
71 0 : : SvSimpleTable(rParent, nBits)
72 : {
73 0 : }
74 : };
75 :
76 : SvSimpleTableContainer* m_pCheckLBContainer;
77 : MSFltrSimpleTable* m_pCheckLB;
78 : OUString sHeader1, sHeader2;
79 : OUString sChgToFromMath,
80 : sChgToFromWriter,
81 : sChgToFromCalc,
82 : sChgToFromImpress,
83 : sChgToFromSmartArt;
84 : SvLBoxButtonData* pCheckButtonData;
85 :
86 : OfaMSFilterTabPage2( vcl::Window* pParent, const SfxItemSet& rSet );
87 : virtual ~OfaMSFilterTabPage2();
88 :
89 : void InsertEntry( const OUString& _rTxt, sal_IntPtr _nType );
90 : void InsertEntry( const OUString& _rTxt, sal_IntPtr _nType,
91 : bool loadEnabled, bool saveEnabled );
92 : SvTreeListEntry* GetEntry4Type( sal_IntPtr _nType ) const;
93 :
94 : public:
95 :
96 : static SfxTabPage* Create( vcl::Window* pParent, const SfxItemSet* rAttrSet );
97 :
98 : virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
99 : virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
100 : };
101 :
102 :
103 : #endif
104 :
105 :
106 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|