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{namespace sun{ namespace star{ namespace beans{
27  class XPropertySet;
28 }}}}
29 
31 {
32  std::unique_ptr<weld::TreeIter> m_xSelEntry;
33  css::uno::Reference < css::beans::XPropertySet > xCustomPropertySet;
34 
35  sal_Int32 nOldSel;
38 
39  std::unique_ptr<weld::TreeView> m_xTypeTLB;
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 
51 protected:
52  virtual sal_uInt16 GetGroup() override;
53 
54 public:
56  virtual ~SwFieldDokInfPage() override;
57 
58  static VclPtr<SfxTabPage> Create(TabPageParent pParent, 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 
66 void FillFieldSelect(weld::TreeView& rListBox);
67 
68 #endif
69 
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: flddinf.cxx:409
const SfxItemSet * pSet
virtual ~SwFieldDokInfPage() override
Definition: flddinf.cxx:84
sal_uIntPtr sal_uLong
virtual void Reset(const SfxItemSet *rSet) override
Definition: flddinf.cxx:89
virtual sal_uInt16 GetGroup() override
Definition: flddinf.cxx:453
std::unique_ptr< SwNumFormatTreeView > m_xFormatLB
Definition: flddinf.hxx:43
sal_Int32 FillSelectionLB(sal_uInt16 nSubTypeId)
Definition: flddinf.cxx:357
sal_Int32 nOldSel
Definition: flddinf.hxx:35
std::unique_ptr< weld::CheckButton > m_xFixedCB
Definition: flddinf.hxx:44
css::uno::Reference< css::beans::XPropertySet > xCustomPropertySet
Definition: flddinf.hxx:33
class SAL_NO_VTABLE XPropertySet
DECL_LINK(TypeHdl, weld::TreeView &, void)
void FillFieldSelect(weld::TreeView &rListBox)
Definition: flddinf.cxx:48
std::unique_ptr< weld::Widget > m_xSelection
Definition: flddinf.hxx:40
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: flddinf.hxx:41
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: flddinf.cxx:447
std::unique_ptr< weld::Widget > m_xFormat
Definition: flddinf.hxx:42
std::unique_ptr< weld::TreeIter > m_xSelEntry
Definition: flddinf.hxx:32
std::unique_ptr< weld::TreeView > m_xTypeTLB
Definition: flddinf.hxx:39
virtual void FillUserData() override
Definition: flddinf.cxx:458
OUString m_sOldCustomFieldName
Definition: flddinf.hxx:37
SwFieldDokInfPage(TabPageParent pWindow, const SfxItemSet *pSet)
Definition: flddinf.cxx:54
sal_uLong nOldFormat
Definition: flddinf.hxx:36