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 
26 namespace com::sun::star::beans { class XPropertySet; }
27 
29 {
30  std::unique_ptr<weld::TreeIter> m_xSelEntry;
31  css::uno::Reference < css::beans::XPropertySet > xCustomPropertySet;
32 
33  sal_Int32 nOldSel;
36 
37  std::unique_ptr<weld::TreeView> m_xTypeTLB;
38  std::unique_ptr<weld::Widget> m_xSelection;
39  std::unique_ptr<weld::TreeView> m_xSelectionLB;
40  std::unique_ptr<weld::Widget> m_xFormat;
41  std::unique_ptr<SwNumFormatTreeView> m_xFormatLB;
42  std::unique_ptr<weld::CheckButton> m_xFixedCB;
43 
44  DECL_LINK(TypeHdl, weld::TreeView&, void);
45  DECL_LINK(SubTypeHdl, weld::TreeView&, void);
46 
47  sal_Int32 FillSelectionLB(sal_uInt16 nSubTypeId);
48 
49 protected:
50  virtual sal_uInt16 GetGroup() override;
51 
52 public:
54  virtual ~SwFieldDokInfPage() override;
55 
56  static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
57 
58  virtual bool FillItemSet( SfxItemSet* rSet ) override;
59  virtual void Reset( const SfxItemSet* rSet ) override;
60 
61  virtual void FillUserData() override;
62 };
63 
64 void FillFieldSelect(weld::TreeView& rListBox);
65 
66 #endif
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwFieldDokInfPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *pSet)
Definition: flddinf.cxx:51
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: flddinf.cxx:405
const SfxItemSet * pSet
virtual ~SwFieldDokInfPage() override
Definition: flddinf.cxx:81
sal_uIntPtr sal_uLong
virtual void Reset(const SfxItemSet *rSet) override
Definition: flddinf.cxx:85
virtual sal_uInt16 GetGroup() override
Definition: flddinf.cxx:449
std::unique_ptr< SwNumFormatTreeView > m_xFormatLB
Definition: flddinf.hxx:41
sal_Int32 FillSelectionLB(sal_uInt16 nSubTypeId)
Definition: flddinf.cxx:353
sal_Int32 nOldSel
Definition: flddinf.hxx:33
std::unique_ptr< weld::CheckButton > m_xFixedCB
Definition: flddinf.hxx:42
css::uno::Reference< css::beans::XPropertySet > xCustomPropertySet
Definition: flddinf.hxx:31
class SAL_NO_VTABLE XPropertySet
DECL_LINK(TypeHdl, weld::TreeView &, void)
void FillFieldSelect(weld::TreeView &rListBox)
Definition: flddinf.cxx:45
std::unique_ptr< weld::Widget > m_xSelection
Definition: flddinf.hxx:38
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: flddinf.hxx:39
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rAttrSet)
Definition: flddinf.cxx:443
std::unique_ptr< weld::Widget > m_xFormat
Definition: flddinf.hxx:40
std::unique_ptr< weld::TreeIter > m_xSelEntry
Definition: flddinf.hxx:30
std::unique_ptr< weld::TreeView > m_xTypeTLB
Definition: flddinf.hxx:37
virtual void FillUserData() override
Definition: flddinf.cxx:454
OUString m_sOldCustomFieldName
Definition: flddinf.hxx:35
sal_uLong nOldFormat
Definition: flddinf.hxx:34