Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / uibase / inc / contentcontroldlg.hxx
blob8fbc57d9ad47f3d023bee6448c83280a9963b49f
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 #pragma once
21 #include <sfx2/basedlgs.hxx>
22 #include <vcl/abstdlg.hxx>
23 #include <vcl/weld.hxx>
25 class SwWrtShell;
26 class SwContentControl;
27 class SwContentControlListItem;
28 class SwNumFormatTreeView;
30 /**
31 * The content control dialog allows editing the properties of the content control under the
32 * cursor.
34 class SwContentControlDlg final : public SfxDialogController
36 SwWrtShell& m_rWrtShell;
37 std::shared_ptr<SwContentControl> m_pContentControl;
38 std::vector<SwContentControlListItem> m_aSavedListItems;
40 std::unique_ptr<weld::CheckButton> m_xShowingPlaceHolderCB;
41 std::unique_ptr<weld::Entry> m_xAlias;
42 std::unique_ptr<weld::Entry> m_xTag;
43 std::unique_ptr<weld::SpinButton> m_xId;
44 std::unique_ptr<weld::SpinButton> m_xTabIndex;
45 std::unique_ptr<weld::Frame> m_xCheckboxFrame;
46 std::unique_ptr<weld::Entry> m_xCheckedState;
47 std::unique_ptr<weld::Button> m_xCheckedStateBtn;
48 std::unique_ptr<weld::Entry> m_xUncheckedState;
49 std::unique_ptr<weld::Button> m_xUncheckedStateBtn;
50 std::unique_ptr<weld::Frame> m_xListItemsFrame;
51 std::unique_ptr<weld::TreeView> m_xListItems;
52 std::unique_ptr<weld::Box> m_xListItemButtons;
53 std::unique_ptr<weld::Button> m_xInsertBtn;
54 std::unique_ptr<weld::Button> m_xRenameBtn;
55 std::unique_ptr<weld::Button> m_xDeleteBtn;
56 std::unique_ptr<weld::Button> m_xMoveUpBtn;
57 std::unique_ptr<weld::Button> m_xMoveDownBtn;
58 std::unique_ptr<weld::Frame> m_xDateFrame;
59 std::unique_ptr<SwNumFormatTreeView> m_xDateFormat;
61 std::unique_ptr<weld::Button> m_xOk;
63 VclPtr<VclAbstractDialog> m_xListItemDialog;
65 DECL_LINK(InsertHdl, weld::Button&, void);
66 DECL_LINK(RenameHdl, weld::Button&, void);
67 DECL_LINK(DeleteHdl, weld::Button&, void);
68 DECL_LINK(MoveUpHdl, weld::Button&, void);
69 DECL_LINK(MoveDownHdl, weld::Button&, void);
70 DECL_LINK(SelectionChangedHdl, weld::TreeView&, void);
71 DECL_LINK(OkHdl, weld::Button&, void);
72 DECL_LINK(SelectCharHdl, weld::Button&, void);
74 public:
75 SwContentControlDlg(weld::Window* pParent, SwWrtShell& rSh);
76 virtual ~SwContentControlDlg() override;
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */