1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: swuilabimp.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SWUILABIMP_HXX
31 #define _SWUILABIMP_HXX
34 class SwLabPage
: public SfxTabPage
36 SwNewDBMgr
* pNewDBMgr
;
40 FixedText aWritingText
;
42 MultiLineEdit aWritingEdit
;
43 FixedText aDatabaseFT
;
47 ImageButton aInsertBT
;
50 // PushButton aDatabaseButton;
53 RadioButton aContButton
;
54 RadioButton aSheetButton
;
59 ListBox aHiddenSortTypeBox
;
60 FixedInfo aFormatInfo
;
65 SwLabPage(Window
* pParent
, const SfxItemSet
& rSet
);
68 DECL_LINK( AddrHdl
, Button
* );
69 DECL_LINK( DatabaseHdl
, ListBox
*pListBox
);
70 // DECL_LINK( DatabaseButtonHdl, Button * );
71 DECL_LINK( FieldHdl
, Button
* );
72 DECL_LINK( PageHdl
, Button
* );
73 DECL_LINK( MakeHdl
, ListBox
* );
74 DECL_LINK( TypeHdl
, ListBox
* );
76 void DisplayFormat ();
77 SwLabRec
* GetSelectedEntryPos();
79 using TabPage::ActivatePage
;
80 using TabPage::DeactivatePage
;
81 using Window::GetParent
;
85 static SfxTabPage
* Create(Window
* pParent
, const SfxItemSet
& rSet
);
87 virtual void ActivatePage(const SfxItemSet
& rSet
);
88 virtual int DeactivatePage(SfxItemSet
* pSet
= 0);
89 void FillItem(SwLabItem
& rItem
);
90 virtual sal_Bool
FillItemSet(SfxItemSet
& rSet
);
91 virtual void Reset(const SfxItemSet
& rSet
);
93 SwLabDlg
* GetParent() {return (SwLabDlg
*) SfxTabPage::GetParent()->GetParent();}
95 void SetToBusinessCard();
97 void InitDatabaseBox();
98 inline void SetNewDBMgr(SwNewDBMgr
* pDBMgr
) { pNewDBMgr
= pDBMgr
; }
99 inline SwNewDBMgr
* GetNewDBMgr() const { return pNewDBMgr
; }
102 /* -----------------08.07.99 13:48-------------------
104 --------------------------------------------------*/
105 class SwOneExampleFrame
;
106 class SwVisitingCardPage
: public SfxTabPage
108 SvTreeListBox aAutoTextLB
;
109 FixedText aAutoTextGroupFT
;
110 ListBox aAutoTextGroupLB
;
112 FixedLine aContentFL
;
116 String sVisCardGroup
;
121 SwOneExampleFrame
* pExampleFrame
;
122 ::com::sun::star::uno::Reference
< ::com::sun::star::container::XNameAccess
> _xAutoText
;
125 DECL_LINK( AutoTextSelectHdl
, void* );
126 DECL_LINK( FrameControlInitializedHdl
, void* );
128 void InitFrameControl();
131 void ClearUserData();
133 using SfxTabPage::SetUserData
;
134 void SetUserData( sal_uInt32 nCnt
,
135 const rtl::OUString
* pNames
,
136 const rtl::OUString
* pValues
);
138 SwVisitingCardPage(Window
* pParent
, const SfxItemSet
& rSet
);
139 ~SwVisitingCardPage();
141 using TabPage::ActivatePage
;
142 using TabPage::DeactivatePage
;
146 static SfxTabPage
* Create(Window
* pParent
, const SfxItemSet
& rSet
);
148 virtual void ActivatePage(const SfxItemSet
& rSet
);
149 virtual int DeactivatePage(SfxItemSet
* pSet
= 0);
150 virtual sal_Bool
FillItemSet(SfxItemSet
& rSet
);
151 virtual void Reset(const SfxItemSet
& rSet
);
153 /* -----------------29.09.99 08:51-------------------
155 --------------------------------------------------*/
156 class SwPrivateDataPage
: public SfxTabPage
172 FixedText aZipCityFT
;
175 FixedText aCountryStateFT
;
178 FixedText aTitleProfessionFT
;
186 FixedText aWWWMailFT
;
190 SwPrivateDataPage(Window
* pParent
, const SfxItemSet
& rSet
);
191 ~SwPrivateDataPage();
193 using TabPage::ActivatePage
;
194 using TabPage::DeactivatePage
;
198 static SfxTabPage
* Create(Window
* pParent
, const SfxItemSet
& rSet
);
200 virtual void ActivatePage(const SfxItemSet
& rSet
);
201 virtual int DeactivatePage(SfxItemSet
* pSet
= 0);
202 virtual sal_Bool
FillItemSet(SfxItemSet
& rSet
);
203 virtual void Reset(const SfxItemSet
& rSet
);
205 /* -----------------29.09.99 08:51-------------------
207 --------------------------------------------------*/
208 class SwBusinessDataPage
: public SfxTabPage
211 FixedText aCompanyFT
;
213 FixedText aCompanyExtFT
;
220 FixedText aZipCityFT
;
223 FixedText aCountryStateFT
;
227 FixedText aPositionFT
;
236 FixedText aWWWMailFT
;
240 SwBusinessDataPage(Window
* pParent
, const SfxItemSet
& rSet
);
241 ~SwBusinessDataPage();
243 using TabPage::ActivatePage
;
244 using TabPage::DeactivatePage
;
248 static SfxTabPage
* Create(Window
* pParent
, const SfxItemSet
& rSet
);
250 virtual void ActivatePage(const SfxItemSet
& rSet
);
251 virtual int DeactivatePage(SfxItemSet
* pSet
= 0);
252 virtual sal_Bool
FillItemSet(SfxItemSet
& rSet
);
253 virtual void Reset(const SfxItemSet
& rSet
);