LibreOffice Module sw (master) 1
swuiccoll.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_UIBASE_INC_SWUICCOLL_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_SWUICCOLL_HXX
21
22#include <sfx2/tabdlg.hxx>
23
24#include <ccoll.hxx>
25
26class SwWrtShell;
27class SwFormat;
28
30class SwCondCollPage final : public SfxTabPage
31{
32 std::vector<OUString> m_aStrArr;
33
37
38 std::unique_ptr<weld::TreeView> m_xTbLinks;
39 std::unique_ptr<weld::TreeView> m_xStyleLB;
40 std::unique_ptr<weld::ComboBox> m_xFilterLB;
41 std::unique_ptr<weld::Button> m_xRemovePB;
42 std::unique_ptr<weld::Button> m_xAssignPB;
43
44 virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
45
46 DECL_LINK(AssignRemoveTreeListBoxHdl, weld::TreeView&, bool);
47 DECL_LINK(AssignRemoveClickHdl, weld::Button&, void);
48 DECL_LINK(SelectTreeListBoxHdl, weld::TreeView&, void);
49 DECL_LINK(SelectListBoxHdl, weld::ComboBox&, void);
50 void AssignRemove(const weld::Widget*);
51 void SelectHdl(const weld::Widget*);
52
54
55public:
56 SwCondCollPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rSet);
57 virtual ~SwCondCollPage() override;
58
59 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
61
62 virtual bool FillItemSet( SfxItemSet *rSet) override;
63 virtual void Reset (const SfxItemSet *rSet) override;
64
65 void SetCollection( SwFormat* pFormat );
66};
67
68#endif
69
70/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const SfxItemSet * pSet
The Condition tab on the paragraph style dialog for conditional styles, e.g. Text Body.
Definition: swuiccoll.hxx:31
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: swuiccoll.cxx:110
std::vector< OUString > m_aStrArr
Definition: swuiccoll.hxx:32
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: swuiccoll.cxx:97
virtual ~SwCondCollPage() override
Definition: swuiccoll.cxx:93
std::unique_ptr< weld::Button > m_xAssignPB
Definition: swuiccoll.hxx:42
DECL_LINK(AssignRemoveClickHdl, weld::Button &, void)
void AssignRemove(const weld::Widget *)
Definition: swuiccoll.cxx:169
std::unique_ptr< weld::Button > m_xRemovePB
Definition: swuiccoll.hxx:41
static WhichRangesContainer GetRanges()
Definition: swuiccoll.hxx:60
SwCondCollPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rSet)
Definition: swuiccoll.cxx:38
void SetCollection(SwFormat *pFormat)
Definition: swuiccoll.cxx:234
SwFormat * m_pFormat
Definition: swuiccoll.hxx:36
DECL_LINK(SelectTreeListBoxHdl, weld::TreeView &, void)
DECL_LINK(SelectListBoxHdl, weld::ComboBox &, void)
SwWrtShell & m_rSh
Definition: swuiccoll.hxx:34
DECL_LINK(AssignRemoveTreeListBoxHdl, weld::TreeView &, bool)
const CommandStruct * m_pCmds
Definition: swuiccoll.hxx:35
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *rSet)
Definition: swuiccoll.cxx:105
std::unique_ptr< weld::TreeView > m_xStyleLB
Definition: swuiccoll.hxx:39
std::unique_ptr< weld::ComboBox > m_xFilterLB
Definition: swuiccoll.hxx:40
virtual void Reset(const SfxItemSet *rSet) override
Definition: swuiccoll.cxx:122
std::unique_ptr< weld::TreeView > m_xTbLinks
Definition: swuiccoll.hxx:38
static const WhichRangesContainer s_aPageRg
Definition: swuiccoll.hxx:53
void SelectHdl(const weld::Widget *)
Definition: swuiccoll.cxx:196
Base class for various Writer styles.
Definition: format.hxx:47
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
DeactivateRC