Line data Source code
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 <tools/resary.hxx>
23 :
24 : class SwWrtShell;
25 : class SwFormat;
26 :
27 : class SwCondCollPage : public SfxTabPage
28 : {
29 : VclPtr<CheckBox> m_pConditionCB;
30 :
31 : VclPtr<FixedText> m_pContextFT;
32 : VclPtr<FixedText> m_pUsedFT;
33 : VclPtr<SvTabListBox> m_pTbLinks;
34 :
35 : VclPtr<FixedText> m_pStyleFT;
36 : VclPtr<ListBox> m_pStyleLB;
37 : VclPtr<ListBox> m_pFilterLB;
38 :
39 : VclPtr<PushButton> m_pRemovePB;
40 : VclPtr<PushButton> m_pAssignPB;
41 :
42 : std::vector<OUString> m_aStrArr;
43 :
44 : SwWrtShell &m_rSh;
45 : const CommandStruct*m_pCmds;
46 : SwFormat* m_pFormat;
47 :
48 : bool m_bNewTemplate;
49 :
50 : virtual ~SwCondCollPage();
51 : virtual void dispose() SAL_OVERRIDE;
52 :
53 : virtual sfxpg DeactivatePage(SfxItemSet *pSet) SAL_OVERRIDE;
54 :
55 : DECL_LINK( OnOffHdl, CheckBox* );
56 : DECL_LINK( AssignRemoveHdl, PushButton*);
57 : DECL_LINK( SelectHdl, ListBox* );
58 :
59 : using SfxTabPage::ActivatePage;
60 : using SfxTabPage::DeactivatePage;
61 :
62 : static const sal_uInt16 m_aPageRg[];
63 :
64 : public:
65 : SwCondCollPage(vcl::Window *pParent, const SfxItemSet &rSet);
66 :
67 : static VclPtr<SfxTabPage> Create(vcl::Window *pParent, const SfxItemSet *rSet);
68 0 : static const sal_uInt16* GetRanges() { return m_aPageRg; }
69 :
70 : virtual bool FillItemSet( SfxItemSet *rSet) SAL_OVERRIDE;
71 : virtual void Reset (const SfxItemSet *rSet) SAL_OVERRIDE;
72 :
73 : void SetCollection( SwFormat* pFormat, bool bNew );
74 : };
75 :
76 : #endif
77 :
78 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|