xref: /aoo41x/main/sw/source/ui/envelp/swuilabimp.hxx (revision 1d2dbeb0)
1*1d2dbeb0SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*1d2dbeb0SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*1d2dbeb0SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*1d2dbeb0SAndrew Rist  * distributed with this work for additional information
6*1d2dbeb0SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*1d2dbeb0SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*1d2dbeb0SAndrew Rist  * "License"); you may not use this file except in compliance
9*1d2dbeb0SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*1d2dbeb0SAndrew Rist  *
11*1d2dbeb0SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*1d2dbeb0SAndrew Rist  *
13*1d2dbeb0SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*1d2dbeb0SAndrew Rist  * software distributed under the License is distributed on an
15*1d2dbeb0SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*1d2dbeb0SAndrew Rist  * KIND, either express or implied.  See the License for the
17*1d2dbeb0SAndrew Rist  * specific language governing permissions and limitations
18*1d2dbeb0SAndrew Rist  * under the License.
19*1d2dbeb0SAndrew Rist  *
20*1d2dbeb0SAndrew Rist  *************************************************************/
21*1d2dbeb0SAndrew Rist 
22*1d2dbeb0SAndrew Rist 
23cdf0e10cSrcweir #ifndef _SWUILABIMP_HXX
24cdf0e10cSrcweir #define _SWUILABIMP_HXX
25cdf0e10cSrcweir #include "labimp.hxx"
26cdf0e10cSrcweir 
27cdf0e10cSrcweir class SwLabPage : public SfxTabPage
28cdf0e10cSrcweir {
29cdf0e10cSrcweir 	SwNewDBMgr*   pNewDBMgr;
30cdf0e10cSrcweir 	String        sActDBName;
31cdf0e10cSrcweir 	SwLabItem	  aItem;
32cdf0e10cSrcweir 
33cdf0e10cSrcweir 	FixedLine     aWritingFL;
34cdf0e10cSrcweir 	FixedText	  aWritingText;
35cdf0e10cSrcweir 	CheckBox	  aAddrBox;
36cdf0e10cSrcweir 	MultiLineEdit aWritingEdit;
37cdf0e10cSrcweir 	FixedText	  aDatabaseFT;
38cdf0e10cSrcweir 	ListBox 	  aDatabaseLB;
39cdf0e10cSrcweir 	FixedText	  aTableFT;
40cdf0e10cSrcweir 	ListBox 	  aTableLB;
41cdf0e10cSrcweir 	ImageButton   aInsertBT;
42cdf0e10cSrcweir 	FixedText	  aDBFieldFT;
43cdf0e10cSrcweir 	ListBox 	  aDBFieldLB;
44cdf0e10cSrcweir //	PushButton	  aDatabaseButton;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir 	FixedLine     aFormatFL;
47cdf0e10cSrcweir 	RadioButton   aContButton;
48cdf0e10cSrcweir 	RadioButton   aSheetButton;
49cdf0e10cSrcweir 	FixedText	  aMakeText;
50cdf0e10cSrcweir 	ListBox 	  aMakeBox;
51cdf0e10cSrcweir 	FixedText	  aTypeText;
52cdf0e10cSrcweir 	ListBox 	  aTypeBox;
53cdf0e10cSrcweir     ListBox       aHiddenSortTypeBox;
54cdf0e10cSrcweir     FixedInfo     aFormatInfo;
55cdf0e10cSrcweir 
56cdf0e10cSrcweir 	sal_Bool		m_bLabel;
57cdf0e10cSrcweir 
58cdf0e10cSrcweir 	 SwLabPage(Window* pParent, const SfxItemSet& rSet);
59cdf0e10cSrcweir 	~SwLabPage();
60cdf0e10cSrcweir 
61cdf0e10cSrcweir 	DECL_LINK( AddrHdl, Button * );
62cdf0e10cSrcweir 	DECL_LINK( DatabaseHdl, ListBox *pListBox );
63cdf0e10cSrcweir //    DECL_LINK( DatabaseButtonHdl, Button * );
64cdf0e10cSrcweir 	DECL_LINK( FieldHdl, Button * );
65cdf0e10cSrcweir 	DECL_LINK( PageHdl, Button * );
66cdf0e10cSrcweir 	DECL_LINK( MakeHdl, ListBox * );
67cdf0e10cSrcweir 	DECL_LINK( TypeHdl, ListBox * );
68cdf0e10cSrcweir 
69cdf0e10cSrcweir 	void DisplayFormat	();
70cdf0e10cSrcweir 	SwLabRec* GetSelectedEntryPos();
71cdf0e10cSrcweir 
72cdf0e10cSrcweir     using TabPage::ActivatePage;
73cdf0e10cSrcweir     using TabPage::DeactivatePage;
74cdf0e10cSrcweir     using Window::GetParent;
75cdf0e10cSrcweir 
76cdf0e10cSrcweir public:
77cdf0e10cSrcweir 
78cdf0e10cSrcweir     static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
79cdf0e10cSrcweir 
80cdf0e10cSrcweir 	virtual void ActivatePage(const SfxItemSet& rSet);
81cdf0e10cSrcweir 	virtual int  DeactivatePage(SfxItemSet* pSet = 0);
82cdf0e10cSrcweir 			void FillItem(SwLabItem& rItem);
83cdf0e10cSrcweir 	virtual sal_Bool FillItemSet(SfxItemSet& rSet);
84cdf0e10cSrcweir 	virtual void Reset(const SfxItemSet& rSet);
85cdf0e10cSrcweir 
GetParent()86cdf0e10cSrcweir 	SwLabDlg* GetParent() {return (SwLabDlg*) SfxTabPage::GetParent()->GetParent();}
87cdf0e10cSrcweir 
88cdf0e10cSrcweir 	void 	SetToBusinessCard();
89cdf0e10cSrcweir 
90cdf0e10cSrcweir 	void InitDatabaseBox();
SetNewDBMgr(SwNewDBMgr * pDBMgr)91cdf0e10cSrcweir 	inline void SetNewDBMgr(SwNewDBMgr* pDBMgr) { pNewDBMgr = pDBMgr; }
GetNewDBMgr() const92cdf0e10cSrcweir 	inline SwNewDBMgr* GetNewDBMgr() const { return pNewDBMgr; }
93cdf0e10cSrcweir };
94cdf0e10cSrcweir 
95cdf0e10cSrcweir /* -----------------08.07.99 13:48-------------------
96cdf0e10cSrcweir 
97cdf0e10cSrcweir  --------------------------------------------------*/
98cdf0e10cSrcweir class SwOneExampleFrame;
99cdf0e10cSrcweir class SwVisitingCardPage : public SfxTabPage
100cdf0e10cSrcweir {
101cdf0e10cSrcweir 	FixedLine       aContentFL;
102cdf0e10cSrcweir 	SvTreeListBox 	aAutoTextLB;
103cdf0e10cSrcweir 	FixedText 		aAutoTextGroupFT;
104cdf0e10cSrcweir 	ListBox			aAutoTextGroupLB;
105cdf0e10cSrcweir 
106cdf0e10cSrcweir 	Window 			aExampleWIN;
107cdf0e10cSrcweir 
108cdf0e10cSrcweir 	String			sVisCardGroup;
109cdf0e10cSrcweir 	String			sTempURL;
110cdf0e10cSrcweir 
111cdf0e10cSrcweir 	SwLabItem	  	aLabItem;
112cdf0e10cSrcweir 
113cdf0e10cSrcweir 	SwOneExampleFrame*	pExampleFrame;
114cdf0e10cSrcweir 	::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >  	_xAutoText;
115cdf0e10cSrcweir 
116cdf0e10cSrcweir 
117cdf0e10cSrcweir 	DECL_LINK( AutoTextSelectHdl, void* );
118cdf0e10cSrcweir 	DECL_LINK( FrameControlInitializedHdl, void* );
119cdf0e10cSrcweir 
120cdf0e10cSrcweir 	void			InitFrameControl();
121cdf0e10cSrcweir 	void			UpdateFields();
122cdf0e10cSrcweir 
123cdf0e10cSrcweir 	void			ClearUserData();
124cdf0e10cSrcweir 
125cdf0e10cSrcweir     using SfxTabPage::SetUserData;
126cdf0e10cSrcweir 	void			SetUserData( sal_uInt32 nCnt,
127cdf0e10cSrcweir 									const rtl::OUString* pNames,
128cdf0e10cSrcweir 									const rtl::OUString* pValues );
129cdf0e10cSrcweir 
130cdf0e10cSrcweir 	SwVisitingCardPage(Window* pParent, const SfxItemSet& rSet);
131cdf0e10cSrcweir 	~SwVisitingCardPage();
132cdf0e10cSrcweir 
133cdf0e10cSrcweir     using TabPage::ActivatePage;
134cdf0e10cSrcweir     using TabPage::DeactivatePage;
135cdf0e10cSrcweir 
136cdf0e10cSrcweir public:
137cdf0e10cSrcweir 
138cdf0e10cSrcweir 	static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
139cdf0e10cSrcweir 
140cdf0e10cSrcweir 	virtual void ActivatePage(const SfxItemSet& rSet);
141cdf0e10cSrcweir 	virtual int  DeactivatePage(SfxItemSet* pSet = 0);
142cdf0e10cSrcweir 	virtual sal_Bool FillItemSet(SfxItemSet& rSet);
143cdf0e10cSrcweir 	virtual void Reset(const SfxItemSet& rSet);
144cdf0e10cSrcweir };
145cdf0e10cSrcweir /* -----------------29.09.99 08:51-------------------
146cdf0e10cSrcweir 
147cdf0e10cSrcweir  --------------------------------------------------*/
148cdf0e10cSrcweir class SwPrivateDataPage : public SfxTabPage
149cdf0e10cSrcweir {
150cdf0e10cSrcweir     FixedLine       aDataFL;
151cdf0e10cSrcweir 
152cdf0e10cSrcweir 	FixedText		aNameFT;
153cdf0e10cSrcweir 	Edit			aFirstNameED;
154cdf0e10cSrcweir 	Edit			aNameED;
155cdf0e10cSrcweir 	Edit			aShortCutED;
156cdf0e10cSrcweir 
157cdf0e10cSrcweir 	FixedText		aName2FT;
158cdf0e10cSrcweir 	Edit			aFirstName2ED;
159cdf0e10cSrcweir 	Edit			aName2ED;
160cdf0e10cSrcweir 	Edit			aShortCut2ED;
161cdf0e10cSrcweir 
162cdf0e10cSrcweir 	FixedText		aStreetFT;
163cdf0e10cSrcweir 	Edit			aStreetED;
164cdf0e10cSrcweir 	FixedText		aZipCityFT;
165cdf0e10cSrcweir 	Edit			aZipED;
166cdf0e10cSrcweir 	Edit			aCityED;
167cdf0e10cSrcweir 	FixedText		aCountryStateFT;
168cdf0e10cSrcweir 	Edit			aCountryED;
169cdf0e10cSrcweir 	Edit			aStateED;
170cdf0e10cSrcweir 	FixedText		aTitleProfessionFT;
171cdf0e10cSrcweir 	Edit			aTitleED;
172cdf0e10cSrcweir 	Edit			aProfessionED;
173cdf0e10cSrcweir 	FixedText		aPhoneFT;
174cdf0e10cSrcweir 	Edit			aPhoneED;
175cdf0e10cSrcweir 	Edit 			aMobilePhoneED;
176cdf0e10cSrcweir 	FixedText		aFaxFT;
177cdf0e10cSrcweir 	Edit			aFaxED;
178cdf0e10cSrcweir 	FixedText		aWWWMailFT;
179cdf0e10cSrcweir 	Edit			aHomePageED;
180cdf0e10cSrcweir 	Edit			aMailED;
181cdf0e10cSrcweir 
182cdf0e10cSrcweir 	SwPrivateDataPage(Window* pParent, const SfxItemSet& rSet);
183cdf0e10cSrcweir 	~SwPrivateDataPage();
184cdf0e10cSrcweir 
185cdf0e10cSrcweir     using TabPage::ActivatePage;
186cdf0e10cSrcweir     using TabPage::DeactivatePage;
187cdf0e10cSrcweir 
188cdf0e10cSrcweir public:
189cdf0e10cSrcweir 
190cdf0e10cSrcweir 	static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
191cdf0e10cSrcweir 
192cdf0e10cSrcweir 	virtual void ActivatePage(const SfxItemSet& rSet);
193cdf0e10cSrcweir 	virtual int  DeactivatePage(SfxItemSet* pSet = 0);
194cdf0e10cSrcweir 	virtual sal_Bool FillItemSet(SfxItemSet& rSet);
195cdf0e10cSrcweir 	virtual void Reset(const SfxItemSet& rSet);
196cdf0e10cSrcweir };
197cdf0e10cSrcweir /* -----------------29.09.99 08:51-------------------
198cdf0e10cSrcweir 
199cdf0e10cSrcweir  --------------------------------------------------*/
200cdf0e10cSrcweir class SwBusinessDataPage : public SfxTabPage
201cdf0e10cSrcweir {
202cdf0e10cSrcweir     FixedLine       aDataFL;
203cdf0e10cSrcweir 	FixedText		aCompanyFT;
204cdf0e10cSrcweir 	Edit			aCompanyED;
205cdf0e10cSrcweir 	FixedText		aCompanyExtFT;
206cdf0e10cSrcweir 	Edit			aCompanyExtED;
207cdf0e10cSrcweir 	FixedText		aSloganFT;
208cdf0e10cSrcweir 	Edit			aSloganED;
209cdf0e10cSrcweir 
210cdf0e10cSrcweir 	FixedText		aStreetFT;
211cdf0e10cSrcweir 	Edit			aStreetED;
212cdf0e10cSrcweir 	FixedText		aZipCityFT;
213cdf0e10cSrcweir 	Edit			aZipED;
214cdf0e10cSrcweir 	Edit			aCityED;
215cdf0e10cSrcweir 	FixedText		aCountryStateFT;
216cdf0e10cSrcweir 	Edit			aCountryED;
217cdf0e10cSrcweir 	Edit			aStateED;
218cdf0e10cSrcweir 
219cdf0e10cSrcweir 	FixedText		aPositionFT;
220cdf0e10cSrcweir 	Edit			aPositionED;
221cdf0e10cSrcweir 
222cdf0e10cSrcweir 	FixedText		aPhoneFT;
223cdf0e10cSrcweir 	Edit			aPhoneED;
224cdf0e10cSrcweir 	Edit 			aMobilePhoneED;
225cdf0e10cSrcweir 	FixedText		aFaxFT;
226cdf0e10cSrcweir 	Edit			aFaxED;
227cdf0e10cSrcweir 
228cdf0e10cSrcweir 	FixedText		aWWWMailFT;
229cdf0e10cSrcweir 	Edit			aHomePageED;
230cdf0e10cSrcweir 	Edit			aMailED;
231cdf0e10cSrcweir 
232cdf0e10cSrcweir 	SwBusinessDataPage(Window* pParent, const SfxItemSet& rSet);
233cdf0e10cSrcweir 	~SwBusinessDataPage();
234cdf0e10cSrcweir 
235cdf0e10cSrcweir     using TabPage::ActivatePage;
236cdf0e10cSrcweir     using TabPage::DeactivatePage;
237cdf0e10cSrcweir 
238cdf0e10cSrcweir public:
239cdf0e10cSrcweir 
240cdf0e10cSrcweir 	static SfxTabPage* Create(Window* pParent, const SfxItemSet& rSet);
241cdf0e10cSrcweir 
242cdf0e10cSrcweir 	virtual void ActivatePage(const SfxItemSet& rSet);
243cdf0e10cSrcweir 	virtual int  DeactivatePage(SfxItemSet* pSet = 0);
244cdf0e10cSrcweir 	virtual sal_Bool FillItemSet(SfxItemSet& rSet);
245cdf0e10cSrcweir 	virtual void Reset(const SfxItemSet& rSet);
246cdf0e10cSrcweir };
247cdf0e10cSrcweir 
248cdf0e10cSrcweir #endif
249cdf0e10cSrcweir 
250