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
24#include <condedit.hxx>
25#include "fldpage.hxx"
26
28{
29 OUString m_sOldValueFT;
30 OUString m_sOldNameFT;
31
32 sal_uInt32 m_nOldFormat;
34
35 std::unique_ptr<weld::TreeView> m_xTypeLB;
36 std::unique_ptr<weld::TreeView> m_xSelectionLB;
37 std::unique_ptr<weld::Widget> m_xFormat;
38 std::unique_ptr<weld::TreeView> m_xFormatLB;
39 std::unique_ptr<weld::Label> m_xNameFT;
40 std::unique_ptr<ConditionEdit> m_xNameED;
41 std::unique_ptr<weld::Widget> m_xValueGroup;
42 std::unique_ptr<weld::Label> m_xValueFT;
43 std::unique_ptr<weld::Entry> m_xValueED;
44 std::unique_ptr<weld::Label> m_xCond1FT;
45 std::unique_ptr<ConditionEdit> m_xCond1ED;
46 std::unique_ptr<weld::Label> m_xCond2FT;
47 std::unique_ptr<ConditionEdit> m_xCond2ED;
48 std::unique_ptr<weld::Button> m_xMacroBT;
49
50 //controls of "Input list"
51 std::unique_ptr<weld::Widget> m_xListGroup;
52 std::unique_ptr<weld::Entry> m_xListItemED;
53 std::unique_ptr<weld::Button> m_xListAddPB;
54 std::unique_ptr<weld::TreeView> m_xListItemsLB;
55 std::unique_ptr<weld::Button> m_xListRemovePB;
56 std::unique_ptr<weld::Button> m_xListUpPB;
57 std::unique_ptr<weld::Button> m_xListDownPB;
58 std::unique_ptr<weld::Entry> m_xListNameED;
59
60 DECL_LINK( TypeHdl, weld::TreeView&, void );
61 DECL_LINK( SelectHdl, weld::TreeView&, void );
62 DECL_LINK( InsertMacroHdl, weld::TreeView&, bool );
63 DECL_LINK( ModifyHdl, weld::Entry&, void );
64 DECL_LINK( ListModifyReturnActionHdl, weld::Entry&, bool );
65 DECL_LINK( ListModifyButtonHdl, weld::Button&, void );
66 DECL_LINK( ListEnableHdl, weld::Entry&, void );
67 DECL_LINK( ListEnableListBoxHdl, weld::TreeView&, void );
68 void ListModifyHdl(const weld::Widget*);
69
70 // select Macro
71 DECL_LINK( MacroHdl, weld::Button&, void );
72
73 void UpdateSubType();
74
75protected:
76 virtual sal_uInt16 GetGroup() override;
77
78public:
79 SwFieldFuncPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* pSet);
80 virtual ~SwFieldFuncPage() override;
81
82 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
83
84 virtual bool FillItemSet( SfxItemSet* rSet ) override;
85 virtual void Reset( const SfxItemSet* rSet ) override;
86
87 virtual void FillUserData() override;
88};
89
90#endif
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
OUString m_sOldNameFT
Definition: fldfunc.hxx:30
std::unique_ptr< weld::Button > m_xListAddPB
Definition: fldfunc.hxx:53
DECL_LINK(MacroHdl, weld::Button &, void)
DECL_LINK(SelectHdl, weld::TreeView &, void)
void UpdateSubType()
Definition: fldfunc.cxx:471
virtual ~SwFieldFuncPage() override
Definition: fldfunc.cxx:88
std::unique_ptr< weld::TreeView > m_xListItemsLB
Definition: fldfunc.hxx:54
DECL_LINK(ListEnableHdl, weld::Entry &, void)
std::unique_ptr< ConditionEdit > m_xCond2ED
Definition: fldfunc.hxx:47
virtual sal_uInt16 GetGroup() override
Definition: fldfunc.cxx:583
std::unique_ptr< weld::Label > m_xValueFT
Definition: fldfunc.hxx:42
bool m_bDropDownLBChanged
Definition: fldfunc.hxx:33
DECL_LINK(ListModifyReturnActionHdl, weld::Entry &, bool)
std::unique_ptr< weld::Button > m_xListDownPB
Definition: fldfunc.hxx:57
DECL_LINK(InsertMacroHdl, weld::TreeView &, bool)
DECL_LINK(ListEnableListBoxHdl, weld::TreeView &, void)
std::unique_ptr< weld::Entry > m_xValueED
Definition: fldfunc.hxx:43
virtual void FillUserData() override
Definition: fldfunc.cxx:588
std::unique_ptr< weld::Entry > m_xListItemED
Definition: fldfunc.hxx:52
std::unique_ptr< weld::Entry > m_xListNameED
Definition: fldfunc.hxx:58
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: fldfunc.cxx:577
SwFieldFuncPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *pSet)
Definition: fldfunc.cxx:36
DECL_LINK(ModifyHdl, weld::Entry &, void)
DECL_LINK(ListModifyButtonHdl, weld::Button &, void)
std::unique_ptr< weld::Widget > m_xListGroup
Definition: fldfunc.hxx:51
std::unique_ptr< weld::Widget > m_xFormat
Definition: fldfunc.hxx:37
std::unique_ptr< weld::Label > m_xCond2FT
Definition: fldfunc.hxx:46
virtual void Reset(const SfxItemSet *rSet) override
Definition: fldfunc.cxx:92
OUString m_sOldValueFT
Definition: fldfunc.hxx:29
sal_uInt32 m_nOldFormat
Definition: fldfunc.hxx:32
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: fldfunc.cxx:514
DECL_LINK(TypeHdl, weld::TreeView &, void)
std::unique_ptr< weld::Widget > m_xValueGroup
Definition: fldfunc.hxx:41
std::unique_ptr< weld::Button > m_xMacroBT
Definition: fldfunc.hxx:48
std::unique_ptr< weld::Label > m_xNameFT
Definition: fldfunc.hxx:39
std::unique_ptr< weld::Button > m_xListUpPB
Definition: fldfunc.hxx:56
std::unique_ptr< ConditionEdit > m_xNameED
Definition: fldfunc.hxx:40
std::unique_ptr< ConditionEdit > m_xCond1ED
Definition: fldfunc.hxx:45
std::unique_ptr< weld::TreeView > m_xFormatLB
Definition: fldfunc.hxx:38
std::unique_ptr< weld::Label > m_xCond1FT
Definition: fldfunc.hxx:44
void ListModifyHdl(const weld::Widget *)
Definition: fldfunc.cxx:409
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: fldfunc.hxx:36
std::unique_ptr< weld::Button > m_xListRemovePB
Definition: fldfunc.hxx:55
std::unique_ptr< weld::TreeView > m_xTypeLB
Definition: fldfunc.hxx:35