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 
26 class SwWrtShell;
27 class SwFormat;
28 
29 class SwCondCollPage : public SfxTabPage
30 {
31  std::vector<OUString> m_aStrArr;
32 
36 
38 
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;
45 
46  virtual ~SwCondCollPage() override;
47 
48  virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override;
49 
50  DECL_LINK(OnOffHdl, weld::ToggleButton&, void);
51  DECL_LINK(AssignRemoveTreeListBoxHdl, weld::TreeView&, void);
52  DECL_LINK(AssignRemoveClickHdl, weld::Button&, void);
53  DECL_LINK(SelectTreeListBoxHdl, weld::TreeView&, void);
54  DECL_LINK(SelectListBoxHdl, weld::ComboBox&, void);
55  void AssignRemove(const weld::Widget*);
56  void SelectHdl(const weld::Widget*);
57 
60 
61  static const sal_uInt16 m_aPageRg[];
62 
63 public:
64  SwCondCollPage(TabPageParent pParent, const SfxItemSet &rSet);
65 
66  static VclPtr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet *rSet);
67  static const sal_uInt16* GetRanges() { return m_aPageRg; }
68 
69  virtual bool FillItemSet( SfxItemSet *rSet) override;
70  virtual void Reset (const SfxItemSet *rSet) override;
71 
72  void SetCollection( SwFormat* pFormat, bool bNew );
73 };
74 
75 #endif
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override
Definition: swuiccoll.cxx:107
virtual ~SwCondCollPage() override
Definition: swuiccoll.cxx:102
void SetCollection(SwFormat *pFormat, bool bNew)
Definition: swuiccoll.cxx:263
const SfxItemSet * pSet
std::unique_ptr< weld::CheckButton > m_xConditionCB
Definition: swuiccoll.hxx:39
static VclPtr< SfxTabPage > Create(TabPageParent pParent, const SfxItemSet *rSet)
Definition: swuiccoll.cxx:115
SwFormat * m_pFormat
Definition: swuiccoll.hxx:35
virtual void ActivatePage(const SfxItemSet &)
SwCondCollPage(TabPageParent pParent, const SfxItemSet &rSet)
Definition: swuiccoll.cxx:46
SwWrtShell & m_rSh
Definition: swuiccoll.hxx:33
virtual bool FillItemSet(SfxItemSet *rSet) override
Definition: swuiccoll.cxx:120
virtual DeactivateRC DeactivatePage(SfxItemSet *pSet)
Used by the UI to modify the document model.
Definition: wrtsh.hxx:88
std::unique_ptr< weld::TreeView > m_xTbLinks
Definition: swuiccoll.hxx:40
void AssignRemove(const weld::Widget *)
Definition: swuiccoll.cxx:197
const CommandStruct * m_pCmds
Definition: swuiccoll.hxx:34
Base class for various Writer styles.
Definition: format.hxx:43
void SelectHdl(const weld::Widget *)
Definition: swuiccoll.cxx:224
bool m_bNewTemplate
Definition: swuiccoll.hxx:37
virtual void Reset(const SfxItemSet *rSet) override
Definition: swuiccoll.cxx:132
static const sal_uInt16 * GetRanges()
Definition: swuiccoll.hxx:67
std::unique_ptr< weld::ComboBox > m_xFilterLB
Definition: swuiccoll.hxx:42
std::unique_ptr< weld::Button > m_xAssignPB
Definition: swuiccoll.hxx:44
static const sal_uInt16 m_aPageRg[]
Definition: swuiccoll.hxx:61
DECL_LINK(OnOffHdl, weld::ToggleButton &, void)
std::unique_ptr< weld::TreeView > m_xStyleLB
Definition: swuiccoll.hxx:41
std::unique_ptr< weld::Button > m_xRemovePB
Definition: swuiccoll.hxx:43
DeactivateRC
std::vector< OUString > m_aStrArr
Definition: swuiccoll.hxx:31