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: abspage.cxx,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 ************************************************************************/
31 // MARKER(update_precomp.py): autogen include statement, do not remove
32 #include "precompiled_extensions.hxx"
33 #include "abspage.hxx"
34 #include "abspilot.hxx"
36 //.........................................................................
39 //.........................................................................
41 using namespace ::svt
;
42 using namespace ::com::sun::star::uno
;
43 using namespace ::com::sun::star::lang
;
44 //=====================================================================
45 //= AddressBookSourcePage
46 //=====================================================================
47 AddressBookSourcePage::AddressBookSourcePage( OAddessBookSourcePilot
* _pParent
, const ResId
& _rId
)
48 :AddressBookSourcePage_Base(_pParent
, _rId
)
52 //---------------------------------------------------------------------
53 void AddressBookSourcePage::DeactivatePage()
55 AddressBookSourcePage_Base::DeactivatePage();
56 getDialog()->enableButtons(WZB_NEXT
, sal_True
);
59 //---------------------------------------------------------------------
60 OAddessBookSourcePilot
* AddressBookSourcePage::getDialog()
62 return static_cast<OAddessBookSourcePilot
*>(GetParent());
65 //---------------------------------------------------------------------
66 const OAddessBookSourcePilot
* AddressBookSourcePage::getDialog() const
68 return static_cast<const OAddessBookSourcePilot
*>(GetParent());
71 //---------------------------------------------------------------------
72 AddressSettings
& AddressBookSourcePage::getSettings()
74 return getDialog()->getSettings();
77 //---------------------------------------------------------------------
78 const AddressSettings
& AddressBookSourcePage::getSettings() const
80 return getDialog()->getSettings();
83 //---------------------------------------------------------------------
84 Reference
< XMultiServiceFactory
> AddressBookSourcePage::getORB()
86 return getDialog()->getORB();
89 //.........................................................................
91 //.........................................................................