LibreOffice Module cui (master)  1
optfltr.hxx
Go to the documentation of this file.
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 <sfx2/tabdlg.hxx>
24 #include <svtools/simptabl.hxx>
25 
27 {
28  std::unique_ptr<weld::CheckButton> m_xWBasicCodeCB;
29  std::unique_ptr<weld::CheckButton> m_xWBasicWbctblCB;
30  std::unique_ptr<weld::CheckButton> m_xWBasicStgCB;
31  std::unique_ptr<weld::CheckButton> m_xEBasicCodeCB;
32  std::unique_ptr<weld::CheckButton> m_xEBasicExectblCB;
33  std::unique_ptr<weld::CheckButton> m_xEBasicStgCB;
34  std::unique_ptr<weld::CheckButton> m_xPBasicCodeCB;
35  std::unique_ptr<weld::CheckButton> m_xPBasicStgCB;
36 
37  DECL_LINK(LoadWordBasicCheckHdl_Impl, weld::Button&, void);
38  DECL_LINK(LoadExcelBasicCheckHdl_Impl, weld::Button&, void);
39 public:
40  OfaMSFilterTabPage(TabPageParent pParent, const SfxItemSet& rSet );
41  virtual ~OfaMSFilterTabPage() override;
42 
43  static VclPtr<SfxTabPage> Create( TabPageParent pParent,
44  const SfxItemSet* rAttrSet );
45 
46  virtual bool FillItemSet( SfxItemSet* rSet ) override;
47  virtual void Reset( const SfxItemSet* rSet ) override;
48 };
49 
50 enum class MSFltrPg2_CheckBoxEntries;
51 
53 {
54  OUString sChgToFromMath,
61 
62  std::unique_ptr<weld::TreeView> m_xCheckLB;
63  std::unique_ptr<weld::RadioButton> m_xHighlightingRB;
64  std::unique_ptr<weld::RadioButton> m_xShadingRB;
65  std::unique_ptr<weld::CheckButton> m_xMSOLockFileCB;
66 
67  virtual ~OfaMSFilterTabPage2() override;
68 
69  void InsertEntry( const OUString& _rTxt, MSFltrPg2_CheckBoxEntries _nType );
70  void InsertEntry( const OUString& _rTxt, MSFltrPg2_CheckBoxEntries _nType,
71  bool saveEnabled );
72  int GetEntry4Type( MSFltrPg2_CheckBoxEntries _nType ) const;
73 
74 public:
75  OfaMSFilterTabPage2(TabPageParent pParent, const SfxItemSet& rSet);
76  static VclPtr<SfxTabPage> Create( TabPageParent pParent, const SfxItemSet* rAttrSet );
77 
78  virtual bool FillItemSet( SfxItemSet* rSet ) override;
79  virtual void Reset( const SfxItemSet* rSet ) override;
80 };
81 
82 
83 #endif
84 
85 
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::CheckButton > m_xWBasicStgCB
Definition: optfltr.hxx:30
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optfltr.cxx:163
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: optfltr.cxx:78
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: optfltr.cxx:157
OUString sChgToFromImpress
Definition: optfltr.hxx:54
virtual ~OfaMSFilterTabPage() override
Definition: optfltr.cxx:58
std::unique_ptr< weld::CheckButton > m_xPBasicStgCB
Definition: optfltr.hxx:35
virtual ~OfaMSFilterTabPage2() override
Definition: optfltr.cxx:153
std::unique_ptr< weld::CheckButton > m_xEBasicCodeCB
Definition: optfltr.hxx:31
OUString sChgToFromPDF
Definition: optfltr.hxx:54
std::unique_ptr< weld::CheckButton > m_xPBasicCodeCB
Definition: optfltr.hxx:34
virtual void Reset(const SfxItemSet *rSet) override
Definition: optfltr.cxx:104
std::unique_ptr< weld::RadioButton > m_xHighlightingRB
Definition: optfltr.hxx:63
DECL_LINK(LoadWordBasicCheckHdl_Impl, weld::Button &, void)
std::unique_ptr< weld::RadioButton > m_xShadingRB
Definition: optfltr.hxx:64
void InsertEntry(const OUString &_rTxt, MSFltrPg2_CheckBoxEntries _nType)
Definition: optfltr.cxx:324
std::unique_ptr< weld::TreeView > m_xCheckLB
Definition: optfltr.hxx:62
int GetEntry4Type(MSFltrPg2_CheckBoxEntries _nType) const
Definition: optfltr.cxx:341
OUString sChgToFromVisio
Definition: optfltr.hxx:54
std::unique_ptr< weld::CheckButton > m_xWBasicWbctblCB
Definition: optfltr.hxx:29
OUString sChgToFromWriter
Definition: optfltr.hxx:54
MSFltrPg2_CheckBoxEntries
Definition: optfltr.cxx:31
OfaMSFilterTabPage(TabPageParent pParent, const SfxItemSet &rSet)
Definition: optfltr.cxx:43
std::unique_ptr< weld::CheckButton > m_xEBasicExectblCB
Definition: optfltr.hxx:32
OUString sChgToFromMath
Definition: optfltr.hxx:54
OUString sChgToFromCalc
Definition: optfltr.hxx:54
std::unique_ptr< weld::CheckButton > m_xWBasicCodeCB
Definition: optfltr.hxx:28
std::unique_ptr< weld::CheckButton > m_xEBasicStgCB
Definition: optfltr.hxx:33
OfaMSFilterTabPage2(TabPageParent pParent, const SfxItemSet &rSet)
Definition: optfltr.cxx:130
virtual void Reset(const SfxItemSet *rSet) override
Definition: optfltr.cxx:240
OUString sChgToFromSmartArt
Definition: optfltr.hxx:54
std::unique_ptr< weld::CheckButton > m_xMSOLockFileCB
Definition: optfltr.hxx:65
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: optfltr.cxx:72