Use correct object
[LibreOffice.git] / cui / source / options / optfltr.hxx
blob51a51ec04456e7ff0c9991f252a84662c7499d85
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 #pragma once
21 #include <sfx2/tabdlg.hxx>
23 class OfaMSFilterTabPage : public SfxTabPage
25 std::unique_ptr<weld::CheckButton> m_xWBasicCodeCB;
26 std::unique_ptr<weld::Widget> m_xWBasicCodeImg;
27 std::unique_ptr<weld::CheckButton> m_xWBasicWbctblCB;
28 std::unique_ptr<weld::Widget> m_xWBasicWbctblImg;
29 std::unique_ptr<weld::CheckButton> m_xWBasicStgCB;
30 std::unique_ptr<weld::Widget> m_xWBasicStgImg;
31 std::unique_ptr<weld::CheckButton> m_xEBasicCodeCB;
32 std::unique_ptr<weld::Widget> m_xEBasicCodeImg;
33 std::unique_ptr<weld::CheckButton> m_xEBasicExectblCB;
34 std::unique_ptr<weld::Widget> m_xEBasicExectblImg;
35 std::unique_ptr<weld::CheckButton> m_xEBasicStgCB;
36 std::unique_ptr<weld::Widget> m_xEBasicStgImg;
37 std::unique_ptr<weld::CheckButton> m_xPBasicCodeCB;
38 std::unique_ptr<weld::Widget> m_xPBasicCodeImg;
39 std::unique_ptr<weld::CheckButton> m_xPBasicStgCB;
40 std::unique_ptr<weld::Widget> m_xPBasicStgImg;
42 DECL_LINK(LoadWordBasicCheckHdl_Impl, weld::Toggleable&, void);
43 DECL_LINK(LoadExcelBasicCheckHdl_Impl, weld::Toggleable&, void);
44 public:
45 OfaMSFilterTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet );
46 virtual ~OfaMSFilterTabPage() override;
48 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController,
49 const SfxItemSet* rAttrSet );
51 virtual OUString GetAllStrings() override;
53 virtual bool FillItemSet( SfxItemSet* rSet ) override;
54 virtual void Reset( const SfxItemSet* rSet ) override;
57 enum class MSFltrPg2_CheckBoxEntries;
59 class OfaMSFilterTabPage2 : public SfxTabPage
61 OUString sChgToFromMath,
62 sChgToFromWriter,
63 sChgToFromCalc,
64 sChgToFromImpress,
65 sChgToFromSmartArt,
66 sChgToFromVisio,
67 sChgToFromPDF;
69 std::unique_ptr<weld::TreeView> m_xCheckLB;
70 std::unique_ptr<weld::Label> m_xHighlightingFT;
71 std::unique_ptr<weld::RadioButton> m_xHighlightingRB;
72 std::unique_ptr<weld::RadioButton> m_xShadingRB;
73 std::unique_ptr<weld::Widget> m_xShadingImg;
74 std::unique_ptr<weld::CheckButton> m_xMSOLockFileCB;
75 std::unique_ptr<weld::Widget> m_xMSOLockFileImg;
77 void InsertEntry( const OUString& _rTxt, MSFltrPg2_CheckBoxEntries _nType );
78 void InsertEntry( const OUString& _rTxt, MSFltrPg2_CheckBoxEntries _nType,
79 bool saveEnabled );
80 int GetEntry4Type( MSFltrPg2_CheckBoxEntries _nType ) const;
82 public:
83 OfaMSFilterTabPage2(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
84 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet );
85 virtual ~OfaMSFilterTabPage2() override;
87 virtual OUString GetAllStrings() override;
89 virtual bool FillItemSet( SfxItemSet* rSet ) override;
90 virtual void Reset( const SfxItemSet* rSet ) override;
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */