LibreOffice Module sw (master)  1
flddok.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_FLDDOK_HXX
20 #define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDOK_HXX
21 
22 #include <sfx2/tabdlg.hxx>
23 #include <vcl/fixed.hxx>
24 #include <vcl/lstbox.hxx>
25 #include <vcl/button.hxx>
26 #include <vcl/edit.hxx>
27 #include <vcl/field.hxx>
28 
29 #include <numfmtlb.hxx>
30 #include "fldpage.hxx"
31 
33 {
34  sal_Int32 nOldSel;
36 
37  std::unique_ptr<weld::TreeView> m_xTypeLB;
38  std::unique_ptr<weld::Widget> m_xSelection;
39  std::unique_ptr<weld::TreeView> m_xSelectionLB;
40  std::unique_ptr<weld::Label> m_xValueFT;
41  std::unique_ptr<weld::Entry> m_xValueED;
42  std::unique_ptr<weld::Label> m_xLevelFT;
43  std::unique_ptr<weld::SpinButton> m_xLevelED;
44  std::unique_ptr<weld::Label> m_xDateFT;
45  std::unique_ptr<weld::Label> m_xTimeFT;
46  std::unique_ptr<weld::SpinButton> m_xDateOffsetED;
47  std::unique_ptr<weld::Widget> m_xFormat;
48  std::unique_ptr<weld::TreeView> m_xFormatLB;
49  std::unique_ptr<SwNumFormatTreeView> m_xNumFormatLB;
50  std::unique_ptr<weld::CheckButton> m_xFixedCB;
51 
52  DECL_LINK(TypeHdl, weld::TreeView&, void);
53  DECL_LINK(FormatHdl, weld::TreeView&, void);
54  DECL_LINK(SubTypeHdl, weld::TreeView&, void);
55 
56  void AddSubType(sal_uInt16 nTypeId);
57  sal_Int32 FillFormatLB(sal_uInt16 nTypeId);
58 
59 protected:
60  virtual sal_uInt16 GetGroup() override;
61 
62 public:
63  SwFieldDokPage(TabPageParent pWindow, const SfxItemSet * pSet);
64 
65  virtual ~SwFieldDokPage() override;
66 
67  static VclPtr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet* rAttrSet);
68 
69  virtual bool FillItemSet( SfxItemSet* rSet ) override;
70  virtual void Reset( const SfxItemSet* rSet ) override;
71 
72  virtual void FillUserData() override;
73 };
74 
75 #endif
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_uInt16 GetGroup() override
Definition: flddok.cxx:617
virtual void FillUserData() override
Definition: flddok.cxx:622
const SfxItemSet * pSet
virtual void Reset(const SfxItemSet *rSet) override
Definition: flddok.cxx:80
sal_uIntPtr sal_uLong
std::unique_ptr< weld::CheckButton > m_xFixedCB
Definition: flddok.hxx:50
SwFieldDokPage(TabPageParent pWindow, const SfxItemSet *pSet)
Definition: flddok.cxx:35
std::unique_ptr< weld::Widget > m_xFormat
Definition: flddok.hxx:47
std::unique_ptr< weld::Label > m_xTimeFT
Definition: flddok.hxx:45
virtual ~SwFieldDokPage() override
Definition: flddok.cxx:75
std::unique_ptr< SwNumFormatTreeView > m_xNumFormatLB
Definition: flddok.hxx:49
std::unique_ptr< weld::TreeView > m_xSelectionLB
Definition: flddok.hxx:39
std::unique_ptr< weld::Entry > m_xValueED
Definition: flddok.hxx:41
std::unique_ptr< weld::SpinButton > m_xLevelED
Definition: flddok.hxx:43
DECL_LINK(TypeHdl, weld::TreeView &, void)
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rAttrSet)
Definition: flddok.cxx:611
void AddSubType(sal_uInt16 nTypeId)
Definition: flddok.cxx:419
std::unique_ptr< weld::Label > m_xLevelFT
Definition: flddok.hxx:42
std::unique_ptr< weld::TreeView > m_xFormatLB
Definition: flddok.hxx:48
std::unique_ptr< weld::Label > m_xDateFT
Definition: flddok.hxx:44
sal_uLong nOldFormat
Definition: flddok.hxx:35
std::unique_ptr< weld::TreeView > m_xTypeLB
Definition: flddok.hxx:37
sal_Int32 FillFormatLB(sal_uInt16 nTypeId)
Definition: flddok.cxx:455
std::unique_ptr< weld::SpinButton > m_xDateOffsetED
Definition: flddok.hxx:46
std::unique_ptr< weld::Label > m_xValueFT
Definition: flddok.hxx:40
std::unique_ptr< weld::Widget > m_xSelection
Definition: flddok.hxx:38
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: flddok.cxx:519
sal_Int32 nOldSel
Definition: flddok.hxx:34