nss: upgrade to release 3.73
[LibreOffice.git] / sw / source / uibase / inc / swuiccoll.hxx
blob4e0f5c2b2e3dc7fe4f54bfa17bc18ad0da169bd5
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_UIBASE_INC_SWUICCOLL_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_SWUICCOLL_HXX
22 #include <sfx2/tabdlg.hxx>
24 #include <ccoll.hxx>
26 class SwWrtShell;
27 class SwFormat;
29 class SwCondCollPage : public SfxTabPage
31 std::vector<OUString> m_aStrArr;
33 SwWrtShell &m_rSh;
34 const CommandStruct*m_pCmds;
35 SwFormat* m_pFormat;
37 bool m_bNewTemplate;
39 std::unique_ptr<weld::CheckButton> m_xConditionCB;
40 std::unique_ptr<weld::TreeView> m_xTbLinks;
41 std::unique_ptr<weld::TreeView> m_xStyleLB;
42 std::unique_ptr<weld::ComboBox> m_xFilterLB;
43 std::unique_ptr<weld::Button> m_xRemovePB;
44 std::unique_ptr<weld::Button> m_xAssignPB;
46 virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
48 DECL_LINK(OnOffHdl, weld::ToggleButton&, void);
49 DECL_LINK(AssignRemoveTreeListBoxHdl, weld::TreeView&, bool);
50 DECL_LINK(AssignRemoveClickHdl, weld::Button&, void);
51 DECL_LINK(SelectTreeListBoxHdl, weld::TreeView&, void);
52 DECL_LINK(SelectListBoxHdl, weld::ComboBox&, void);
53 void AssignRemove(const weld::Widget*);
54 void SelectHdl(const weld::Widget*);
56 static const sal_uInt16 m_aPageRg[];
58 public:
59 SwCondCollPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet &rSet);
60 virtual ~SwCondCollPage() override;
62 static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet);
63 static const sal_uInt16* GetRanges() { return m_aPageRg; }
65 virtual bool FillItemSet( SfxItemSet *rSet) override;
66 virtual void Reset (const SfxItemSet *rSet) override;
68 void SetCollection( SwFormat* pFormat, bool bNew );
71 #endif
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */