1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SW_SOURCE_UI_FLDUI_FLDDOK_HXX
20 #define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDOK_HXX
22 #include <sfx2/tabdlg.hxx>
24 #include <numfmtlb.hxx>
25 #include "fldpage.hxx"
27 class SwFieldDokPage
: public SwFieldPage
30 sal_uInt32 m_nOldFormat
;
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_xValueFT
;
36 std::unique_ptr
<weld::Entry
> m_xValueED
;
37 std::unique_ptr
<weld::Label
> m_xLevelFT
;
38 std::unique_ptr
<weld::SpinButton
> m_xLevelED
;
39 std::unique_ptr
<weld::Label
> m_xDateFT
;
40 std::unique_ptr
<weld::Label
> m_xTimeFT
;
41 std::unique_ptr
<weld::SpinButton
> m_xDateOffsetED
;
42 std::unique_ptr
<weld::Widget
> m_xFormat
;
43 std::unique_ptr
<weld::TreeView
> m_xFormatLB
;
44 std::unique_ptr
<SwNumFormatTreeView
> m_xNumFormatLB
;
45 std::unique_ptr
<weld::CheckButton
> m_xFixedCB
;
47 DECL_LINK(TypeHdl
, weld::TreeView
&, void);
48 DECL_LINK(FormatHdl
, weld::TreeView
&, void);
49 DECL_LINK(SubTypeHdl
, weld::TreeView
&, void);
51 void AddSubType(SwFieldTypesEnum nTypeId
);
52 sal_Int32
FillFormatLB(SwFieldTypesEnum nTypeId
);
55 virtual sal_uInt16
GetGroup() override
;
58 SwFieldDokPage(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* pSet
);
60 virtual ~SwFieldDokPage() override
;
62 static std::unique_ptr
<SfxTabPage
> Create(weld::Container
* pPage
, weld::DialogController
* pController
, const SfxItemSet
* rAttrSet
);
64 virtual bool FillItemSet( SfxItemSet
* rSet
) override
;
65 virtual void Reset( const SfxItemSet
* rSet
) override
;
67 virtual void FillUserData() override
;
72 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */