LibreOffice Module sw (master) 1
contentcontroldlg.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#pragma once
20
21#include <sfx2/basedlgs.hxx>
22#include <vcl/abstdlg.hxx>
23#include <vcl/weld.hxx>
24
25class SwWrtShell;
29
35{
37 std::shared_ptr<SwContentControl> m_pContentControl;
38 std::vector<SwContentControlListItem> m_aSavedListItems;
39
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;
60
61 std::unique_ptr<weld::Button> m_xOk;
62
64
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);
73
74public:
76 virtual ~SwContentControlDlg() override;
77};
78
79/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The content control dialog allows editing the properties of the content control under the cursor.
std::unique_ptr< weld::Box > m_xListItemButtons
std::unique_ptr< weld::Button > m_xUncheckedStateBtn
std::unique_ptr< weld::Button > m_xRenameBtn
std::vector< SwContentControlListItem > m_aSavedListItems
DECL_LINK(OkHdl, weld::Button &, void)
std::unique_ptr< weld::Frame > m_xDateFrame
std::shared_ptr< SwContentControl > m_pContentControl
std::unique_ptr< weld::Button > m_xMoveUpBtn
std::unique_ptr< weld::SpinButton > m_xTabIndex
std::unique_ptr< weld::Button > m_xInsertBtn
std::unique_ptr< weld::TreeView > m_xListItems
std::unique_ptr< weld::Frame > m_xListItemsFrame
DECL_LINK(DeleteHdl, weld::Button &, void)
std::unique_ptr< weld::CheckButton > m_xShowingPlaceHolderCB
std::unique_ptr< weld::Button > m_xMoveDownBtn
std::unique_ptr< weld::SpinButton > m_xId
std::unique_ptr< weld::Frame > m_xCheckboxFrame
std::unique_ptr< weld::Entry > m_xAlias
std::unique_ptr< weld::Entry > m_xUncheckedState
DECL_LINK(SelectionChangedHdl, weld::TreeView &, void)
SwContentControlDlg(weld::Window *pParent, SwWrtShell &rSh)
std::unique_ptr< weld::Button > m_xCheckedStateBtn
std::unique_ptr< weld::Button > m_xDeleteBtn
DECL_LINK(MoveDownHdl, weld::Button &, void)
virtual ~SwContentControlDlg() override
DECL_LINK(SelectCharHdl, weld::Button &, void)
DECL_LINK(InsertHdl, weld::Button &, void)
std::unique_ptr< weld::Entry > m_xTag
DECL_LINK(MoveUpHdl, weld::Button &, void)
std::unique_ptr< SwNumFormatTreeView > m_xDateFormat
std::unique_ptr< weld::Button > m_xOk
DECL_LINK(RenameHdl, weld::Button &, void)
std::unique_ptr< weld::Entry > m_xCheckedState
VclPtr< VclAbstractDialog > m_xListItemDialog
Represents one list item in a content control dropdown list.
Stores the properties of a content control.
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97