xref: /trunk/main/sw/source/ui/inc/swuiccoll.hxx (revision 1d2dbeb0)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _SWUI_CCOLL_HXX
24 #define _SWUI_CCOLL_HXX
25 
26 #include "ccoll.hxx"
27 
28 class SwWrtShell;
29 class SwFmt;
30 
31 class SwCondCollPage : public SfxTabPage
32 {
33     FixedLine           aConditionFL;
34 	CheckBox			aConditionCB;
35 
36 	FixedText			aContextFT;
37 	FixedText			aUsedFT;
38 	SvTabListBox 		aTbLinks;
39 
40 	FixedText			aStyleFT;
41 	ListBox				aStyleLB;
42 	ListBox				aFilterLB;
43 
44 	PushButton			aRemovePB;
45 	PushButton			aAssignPB;
46 
47 	String				sNoTmpl;
48 	ResStringArray 		aStrArr;
49 
50 	SwWrtShell 			&rSh;
51 	const CommandStruct*pCmds;
52 	SwFmt* 				pFmt;
53 
54 	CollName* 			pNms;
55 
56 	sal_Bool 				bNewTemplate;
57 
58 
59     SwCondCollPage(Window *pParent, const SfxItemSet &rSet);
60 	virtual ~SwCondCollPage();
61 
62 	virtual int     DeactivatePage(SfxItemSet *pSet);
63 
64 	DECL_LINK( OnOffHdl, CheckBox* );
65 	DECL_LINK( AssignRemoveHdl, PushButton*);
66 	DECL_LINK( SelectHdl, ListBox* );
67 
68     using SfxTabPage::ActivatePage;
69     using SfxTabPage::DeactivatePage;
70 
71 public:
72 
73     static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
74 	static sal_uInt16* GetRanges();
75 
76 	virtual sal_Bool FillItemSet(      SfxItemSet &rSet);
77 	virtual void Reset      (const SfxItemSet &rSet);
78 
79 	void SetCollection( SwFmt* pFormat, sal_Bool bNew );
80 };
81 
82 
83 
84 #endif
85 
86