LibreOffice Module sw (master)  1
fldfunc.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_SW_SOURCE_UI_FLDUI_FLDFUNC_HXX
20 #define INCLUDED_SW_SOURCE_UI_FLDUI_FLDFUNC_HXX
21 
22 #include <sfx2/tabdlg.hxx>
23 #include <vcl/fixed.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/edit.hxx>
27 
28 #include <condedit.hxx>
29 #include "fldpage.hxx"
30 #include <actctrl.hxx>
31 
33 {
34  OUString m_sOldValueFT;
35  OUString m_sOldNameFT;
36 
39 
40  std::unique_ptr<weld::TreeView> m_xTypeLB;
41  std::unique_ptr<weld::TreeView> m_xSelectionLB;
42  std::unique_ptr<weld::Widget> m_xFormat;
43  std::unique_ptr<weld::TreeView> m_xFormatLB;
44  std::unique_ptr<weld::Label> m_xNameFT;
45  std::unique_ptr<ConditionEdit> m_xNameED;
46  std::unique_ptr<weld::Widget> m_xValueGroup;
47  std::unique_ptr<weld::Label> m_xValueFT;
48  std::unique_ptr<weld::Entry> m_xValueED;
49  std::unique_ptr<weld::Label> m_xCond1FT;
50  std::unique_ptr<ConditionEdit> m_xCond1ED;
51  std::unique_ptr<weld::Label> m_xCond2FT;
52  std::unique_ptr<ConditionEdit> m_xCond2ED;
53  std::unique_ptr<weld::Button> m_xMacroBT;
54 
55  //controls of "Input list"
56  std::unique_ptr<weld::Widget> m_xListGroup;
57  std::unique_ptr<weld::Label> m_xListItemFT;
58  std::unique_ptr<weld::Entry> m_xListItemED;
59  std::unique_ptr<weld::Button> m_xListAddPB;
60  std::unique_ptr<weld::Label> m_xListItemsFT;
61  std::unique_ptr<weld::TreeView> m_xListItemsLB;
62  std::unique_ptr<weld::Button> m_xListRemovePB;
63  std::unique_ptr<weld::Button> m_xListUpPB;
64  std::unique_ptr<weld::Button> m_xListDownPB;
65  std::unique_ptr<weld::Label> m_xListNameFT;
66  std::unique_ptr<weld::Entry> m_xListNameED;
67 
68  DECL_LINK( TypeHdl, weld::TreeView&, void );
69  DECL_LINK( SelectHdl, weld::TreeView&, void );
70  DECL_LINK( InsertMacroHdl, weld::TreeView&, void );
71  DECL_LINK( ModifyHdl, weld::Entry&, void );
72  DECL_LINK( ListModifyReturnActionHdl, weld::Entry&, bool );
73  DECL_LINK( ListModifyButtonHdl, weld::Button&, void );
74  DECL_LINK( ListEnableHdl, weld::Entry&, void );
75  DECL_LINK( ListEnableListBoxHdl, weld::TreeView&, void );
76  void ListModifyHdl(const weld::Widget*);
77 
78  // select Macro
79  DECL_LINK( MacroHdl, weld::Button&, void );
80 
81  void UpdateSubType();
82 
83 protected:
84  virtual sal_uInt16 GetGroup() override;
85 
86 public:
88  virtual ~SwFieldFuncPage() override;
89 
90  static VclPtr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet* rAttrSet);
91 
92  virtual bool FillItemSet( SfxItemSet* rSet ) override;
93  virtual void Reset( const SfxItemSet* rSet ) override;
94 
95  virtual void FillUserData() override;
96 };
97 
98 #endif
99 
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Button > m_xListRemovePB
Definition: fldfunc.hxx:62
void ListModifyHdl(const weld::Widget *)
Definition: fldfunc.cxx:411
std::unique_ptr< weld::Button > m_xListDownPB
Definition: fldfunc.hxx:64
virtual sal_uInt16 GetGroup() override
Definition: fldfunc.cxx:585
const SfxItemSet * pSet
std::unique_ptr< weld::TreeView > m_xTypeLB
Definition: fldfunc.hxx:40
sal_uIntPtr sal_uLong
std::unique_ptr< weld::Label > m_xNameFT
Definition: fldfunc.hxx:44
sal_uLong nOldFormat
Definition: fldfunc.hxx:37
std::unique_ptr< weld::Label > m_xValueFT
Definition: fldfunc.hxx:47
std::unique_ptr< weld::Label > m_xListNameFT
Definition: fldfunc.hxx:65
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: fldfunc.cxx:516
std::unique_ptr< ConditionEdit > m_xCond1ED
Definition: fldfunc.hxx:50
void UpdateSubType()
Definition: fldfunc.cxx:473
virtual ~SwFieldFuncPage() override
Definition: fldfunc.cxx:90
std::unique_ptr< weld::Label > m_xListItemsFT
Definition: fldfunc.hxx:60
OUString m_sOldValueFT
Definition: fldfunc.hxx:34
std::unique_ptr< weld::TreeView > m_xListItemsLB
Definition: fldfunc.hxx:61
std::unique_ptr< weld::Label > m_xListItemFT
Definition: fldfunc.hxx:57
virtual void Reset(const SfxItemSet *rSet) override
Definition: fldfunc.cxx:95
std::unique_ptr< weld::Widget > m_xFormat
Definition: fldfunc.hxx:42
SwFieldFuncPage(TabPageParent pParent, const SfxItemSet *pSet)
Definition: fldfunc.cxx:41
std::unique_ptr< ConditionEdit > m_xNameED
Definition: fldfunc.hxx:45
std::unique_ptr< weld::Entry > m_xListNameED
Definition: fldfunc.hxx:66
std::unique_ptr< weld::TreeView > m_xFormatLB
Definition: fldfunc.hxx:43
std::unique_ptr< weld::Label > m_xCond1FT
Definition: fldfunc.hxx:49
std::unique_ptr< ConditionEdit > m_xCond2ED
Definition: fldfunc.hxx:52
std::unique_ptr< weld::Widget > m_xListGroup
Definition: fldfunc.hxx:56
std::unique_ptr< weld::Button > m_xMacroBT
Definition: fldfunc.hxx:53
std::unique_ptr< weld::Entry > m_xListItemED
Definition: fldfunc.hxx:58
std::unique_ptr< weld::Entry > m_xValueED
Definition: fldfunc.hxx:48
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: fldfunc.hxx:41
std::unique_ptr< weld::Label > m_xCond2FT
Definition: fldfunc.hxx:51
std::unique_ptr< weld::Widget > m_xValueGroup
Definition: fldfunc.hxx:46
OUString m_sOldNameFT
Definition: fldfunc.hxx:35
std::unique_ptr< weld::Button > m_xListAddPB
Definition: fldfunc.hxx:59
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: fldfunc.cxx:579
bool bDropDownLBChanged
Definition: fldfunc.hxx:38
std::unique_ptr< weld::Button > m_xListUpPB
Definition: fldfunc.hxx:63
DECL_LINK(TypeHdl, weld::TreeView &, void)
virtual void FillUserData() override
Definition: fldfunc.cxx:590