LibreOffice Module sw (master) 1
fldvar.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_FLDVAR_HXX
20#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDVAR_HXX
21
22#include <sfx2/tabdlg.hxx>
23
24#include "fldpage.hxx"
25#include <condedit.hxx>
26#include <numfmtlb.hxx>
27
28class SwFieldVarPage;
29
31{
32 std::unique_ptr<weld::TreeView> m_xTypeLB;
33 std::unique_ptr<weld::Widget> m_xSelection;
34 std::unique_ptr<weld::TreeView> m_xSelectionLB;
35 std::unique_ptr<weld::Label> m_xNameFT;
36 std::unique_ptr<weld::Entry> m_xNameED;
37 std::unique_ptr<weld::Label> m_xValueFT;
38 std::unique_ptr<ConditionEdit> m_xValueED;
39 std::unique_ptr<weld::Widget> m_xFormat;
40 std::unique_ptr<SwNumFormatTreeView> m_xNumFormatLB;
41 std::unique_ptr<weld::TreeView> m_xFormatLB;
42 std::unique_ptr<weld::Widget> m_xChapterFrame;
43 std::unique_ptr<weld::ComboBox> m_xChapterLevelLB;
44 std::unique_ptr<weld::CheckButton> m_xInvisibleCB;
45 std::unique_ptr<weld::Label> m_xSeparatorFT;
46 std::unique_ptr<weld::Entry> m_xSeparatorED;
47 std::unique_ptr<weld::Button> m_xNewPB;
48 std::unique_ptr<weld::Button> m_xDelPB;
49
50 OUString m_sOldValueFT;
51 OUString m_sOldNameFT;
52
53 sal_uInt32 m_nOldFormat;
54 bool m_bInit;
55
56 DECL_LINK( TypeHdl, weld::TreeView&, void );
57 DECL_LINK( SubTypeListBoxHdl, weld::TreeView&, void );
58 DECL_LINK( ModifyHdl, weld::Entry&, void );
59 DECL_LINK( TBClickHdl, weld::Button&, void );
60 DECL_LINK( ChapterHdl, weld::ComboBox&, void );
61 DECL_LINK( SeparatorHdl, weld::Entry&, void );
62 DECL_LINK( SubTypeInsertHdl, weld::TreeView&, bool );
63 void SubTypeHdl(const weld::TreeView*);
64
65 void UpdateSubType();
66 void FillFormatLB(SwFieldTypesEnum nTypeId);
67
68protected:
69 virtual sal_uInt16 GetGroup() override;
70
71public:
72 SwFieldVarPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* pSet);
73 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
74 virtual ~SwFieldVarPage() override;
75
76 virtual bool FillItemSet( SfxItemSet* rSet ) override;
77 virtual void Reset( const SfxItemSet* rSet ) override;
78
79 virtual void FillUserData() override;
80};
81
82#endif
83
84/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt32 m_nOldFormat
Definition: fldvar.hxx:53
DECL_LINK(ChapterHdl, weld::ComboBox &, void)
DECL_LINK(SubTypeInsertHdl, weld::TreeView &, bool)
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: fldvar.cxx:1127
DECL_LINK(TypeHdl, weld::TreeView &, void)
virtual void Reset(const SfxItemSet *rSet) override
Definition: fldvar.cxx:97
DECL_LINK(SubTypeListBoxHdl, weld::TreeView &, void)
std::unique_ptr< weld::Entry > m_xNameED
Definition: fldvar.hxx:36
void FillFormatLB(SwFieldTypesEnum nTypeId)
Definition: fldvar.cxx:685
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: fldvar.hxx:34
virtual ~SwFieldVarPage() override
Definition: fldvar.cxx:93
SwFieldVarPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *pSet)
Definition: fldvar.cxx:42
OUString m_sOldNameFT
Definition: fldvar.hxx:51
std::unique_ptr< weld::Label > m_xNameFT
Definition: fldvar.hxx:35
OUString m_sOldValueFT
Definition: fldvar.hxx:50
std::unique_ptr< weld::Button > m_xNewPB
Definition: fldvar.hxx:47
std::unique_ptr< weld::Button > m_xDelPB
Definition: fldvar.hxx:48
DECL_LINK(SeparatorHdl, weld::Entry &, void)
DECL_LINK(TBClickHdl, weld::Button &, void)
std::unique_ptr< weld::TreeView > m_xFormatLB
Definition: fldvar.hxx:41
std::unique_ptr< weld::Label > m_xValueFT
Definition: fldvar.hxx:37
virtual void FillUserData() override
Definition: fldvar.cxx:1265
std::unique_ptr< weld::Label > m_xSeparatorFT
Definition: fldvar.hxx:45
void UpdateSubType()
Definition: fldvar.cxx:579
std::unique_ptr< weld::ComboBox > m_xChapterLevelLB
Definition: fldvar.hxx:43
DECL_LINK(ModifyHdl, weld::Entry &, void)
void SubTypeHdl(const weld::TreeView *)
Definition: fldvar.cxx:241
std::unique_ptr< ConditionEdit > m_xValueED
Definition: fldvar.hxx:38
std::unique_ptr< weld::TreeView > m_xTypeLB
Definition: fldvar.hxx:32
std::unique_ptr< weld::CheckButton > m_xInvisibleCB
Definition: fldvar.hxx:44
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: fldvar.cxx:1254
std::unique_ptr< weld::Widget > m_xChapterFrame
Definition: fldvar.hxx:42
virtual sal_uInt16 GetGroup() override
Definition: fldvar.cxx:1260
std::unique_ptr< SwNumFormatTreeView > m_xNumFormatLB
Definition: fldvar.hxx:40
std::unique_ptr< weld::Entry > m_xSeparatorED
Definition: fldvar.hxx:46
std::unique_ptr< weld::Widget > m_xSelection
Definition: fldvar.hxx:33
std::unique_ptr< weld::Widget > m_xFormat
Definition: fldvar.hxx:39
bool m_bInit
Definition: fldvar.hxx:54
SwFieldTypesEnum
List of FieldTypes at UI.
Definition: fldbas.hxx:98