LibreOffice Module sw (master) 1
flddinf.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_FLDDINF_HXX
20#define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDINF_HXX
21
22#include <sfx2/tabdlg.hxx>
23#include <numfmtlb.hxx>
24#include "fldpage.hxx"
25
26namespace com::sun::star::beans { class XPropertySet; }
27
29{
30 std::unique_ptr<weld::TreeIter> m_xSelEntry;
31 css::uno::Reference < css::beans::XPropertySet > m_xCustomPropertySet;
32
33 sal_Int32 m_nOldSel;
34 sal_uInt32 m_nOldFormat;
36
37 std::unique_ptr<weld::TreeView> m_xTypeList;
38 std::unique_ptr<weld::TreeView> m_xTypeTree;
40 std::unique_ptr<weld::Widget> m_xSelection;
41 std::unique_ptr<weld::TreeView> m_xSelectionLB;
42 std::unique_ptr<weld::Widget> m_xFormat;
43 std::unique_ptr<SwNumFormatTreeView> m_xFormatLB;
44 std::unique_ptr<weld::CheckButton> m_xFixedCB;
45
46 DECL_LINK(TypeHdl, weld::TreeView&, void);
47 DECL_LINK(SubTypeHdl, weld::TreeView&, void);
48
49 sal_Int32 FillSelectionLB(sal_uInt16 nSubTypeId);
50
51protected:
52 virtual sal_uInt16 GetGroup() override;
53
54public:
55 SwFieldDokInfPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* pSet);
56 virtual ~SwFieldDokInfPage() override;
57
58 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
59
60 virtual bool FillItemSet( SfxItemSet* rSet ) override;
61 virtual void Reset( const SfxItemSet* rSet ) override;
62
63 virtual void FillUserData() override;
64};
65
66void FillFieldSelect(weld::TreeView& rListBox);
67
68#endif
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal_uInt32 m_nOldFormat
Definition: flddinf.hxx:34
virtual void Reset(const SfxItemSet *rSet) override
Definition: flddinf.cxx:99
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: flddinf.hxx:41
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: flddinf.cxx:455
OUString m_sOldCustomFieldName
Definition: flddinf.hxx:35
std::unique_ptr< SwNumFormatTreeView > m_xFormatLB
Definition: flddinf.hxx:43
std::unique_ptr< weld::TreeView > m_xTypeList
Definition: flddinf.hxx:37
std::unique_ptr< weld::TreeView > m_xTypeTree
Definition: flddinf.hxx:38
virtual void FillUserData() override
Definition: flddinf.cxx:504
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: flddinf.cxx:493
std::unique_ptr< weld::Widget > m_xFormat
Definition: flddinf.hxx:42
std::unique_ptr< weld::Widget > m_xSelection
Definition: flddinf.hxx:40
sal_Int32 m_nOldSel
Definition: flddinf.hxx:33
SwFieldDokInfPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *pSet)
Definition: flddinf.cxx:53
std::unique_ptr< weld::TreeIter > m_xSelEntry
Definition: flddinf.hxx:30
DECL_LINK(SubTypeHdl, weld::TreeView &, void)
std::unique_ptr< weld::CheckButton > m_xFixedCB
Definition: flddinf.hxx:44
weld::TreeView * m_pTypeView
Definition: flddinf.hxx:39
virtual ~SwFieldDokInfPage() override
Definition: flddinf.cxx:95
sal_Int32 FillSelectionLB(sal_uInt16 nSubTypeId)
Definition: flddinf.cxx:399
css::uno::Reference< css::beans::XPropertySet > m_xCustomPropertySet
Definition: flddinf.hxx:31
virtual sal_uInt16 GetGroup() override
Definition: flddinf.cxx:499
DECL_LINK(TypeHdl, weld::TreeView &, void)
void FillFieldSelect(weld::TreeView &rListBox)
Definition: flddinf.cxx:47
class SAL_NO_VTABLE XPropertySet