Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / ui / fldui / flddinf.hxx
blobc3773af163b99781805a7c386613d4ca750a135a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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_FLDDINF_HXX
20 #define INCLUDED_SW_SOURCE_UI_FLDUI_FLDDINF_HXX
22 #include <sfx2/tabdlg.hxx>
23 #include <numfmtlb.hxx>
24 #include "fldpage.hxx"
26 namespace com::sun::star::beans { class XPropertySet; }
28 class SwFieldDokInfPage : public SwFieldPage
30 std::unique_ptr<weld::TreeIter> m_xSelEntry;
31 css::uno::Reference < css::beans::XPropertySet > m_xCustomPropertySet;
33 sal_Int32 m_nOldSel;
34 sal_uInt32 m_nOldFormat;
35 OUString m_sOldCustomFieldName;
37 std::unique_ptr<weld::TreeView> m_xTypeList;
38 std::unique_ptr<weld::TreeView> m_xTypeTree;
39 weld::TreeView* m_pTypeView;
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;
46 DECL_LINK(TypeHdl, weld::TreeView&, void);
47 DECL_LINK(SubTypeHdl, weld::TreeView&, void);
49 sal_Int32 FillSelectionLB(sal_uInt16 nSubTypeId);
51 protected:
52 virtual sal_uInt16 GetGroup() override;
54 public:
55 SwFieldDokInfPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* pSet);
56 virtual ~SwFieldDokInfPage() override;
58 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rAttrSet);
60 virtual bool FillItemSet( SfxItemSet* rSet ) override;
61 virtual void Reset( const SfxItemSet* rSet ) override;
63 virtual void FillUserData() override;
66 void FillFieldSelect(weld::TreeView& rListBox);
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */