diff options
author | Frank Schönheit <fs@openoffice.org> | 2001-08-01 10:07:07 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2001-08-01 10:07:07 +0000 |
commit | 665841c3ecdd8e19e802c2b4cf8c808328d61081 (patch) | |
tree | 83561ec87a9a02d06d1f0599db8162d5f0a1e37e /extensions/source | |
parent | 80fa2a464fc21d8226b208184f2aace8321d5a1c (diff) |
initial checkin - address book auto pilot - base for pages for the pilot
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/abpilot/abspage.cxx | 132 | ||||
-rw-r--r-- | extensions/source/abpilot/abspage.hxx | 124 |
2 files changed, 256 insertions, 0 deletions
diff --git a/extensions/source/abpilot/abspage.cxx b/extensions/source/abpilot/abspage.cxx new file mode 100644 index 000000000..abf8c7710 --- /dev/null +++ b/extensions/source/abpilot/abspage.cxx @@ -0,0 +1,132 @@ +/************************************************************************* + * + * $RCSfile: abspage.cxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: fs $ $Date: 2001-08-01 11:06:59 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc.. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef EXTENSIONS_ABP_ABSPAGE_HXX +#include "abspage.hxx" +#endif +#ifndef EXTENSIONS_ABSPILOT_HXX +#include "abspilot.hxx" +#endif + +//......................................................................... +namespace abp +{ +//......................................................................... + + using namespace ::svt; + using namespace ::com::sun::star::uno; + using namespace ::com::sun::star::lang; + //===================================================================== + //= AddressBookSourcePage + //===================================================================== + AddressBookSourcePage::AddressBookSourcePage( OAddessBookSourcePilot* _pParent, const ResId& _rId ) + :AddressBookSourcePage_Base(_pParent, _rId) + { + } + + //--------------------------------------------------------------------- + void AddressBookSourcePage::DeactivatePage() + { + AddressBookSourcePage_Base::DeactivatePage(); + getDialog()->enableButtons(WZB_NEXT, sal_True); + } + + //--------------------------------------------------------------------- + OAddessBookSourcePilot* AddressBookSourcePage::getDialog() + { + return static_cast<OAddessBookSourcePilot*>(GetParent()); + } + + //--------------------------------------------------------------------- + const OAddessBookSourcePilot* AddressBookSourcePage::getDialog() const + { + return static_cast<const OAddessBookSourcePilot*>(GetParent()); + } + + //--------------------------------------------------------------------- + AddressSettings& AddressBookSourcePage::getSettings() + { + return getDialog()->getSettings(); + } + + //--------------------------------------------------------------------- + const AddressSettings& AddressBookSourcePage::getSettings() const + { + return getDialog()->getSettings(); + } + + //--------------------------------------------------------------------- + Reference< XMultiServiceFactory > AddressBookSourcePage::getORB() + { + return getDialog()->getORB(); + } + +//......................................................................... +} // namespace abp +//......................................................................... + +/************************************************************************* + * history: + * $Log: not supported by cvs2svn $ + * + * Revision 1.0 26.07.01 09:14:00 fs + ************************************************************************/ + diff --git a/extensions/source/abpilot/abspage.hxx b/extensions/source/abpilot/abspage.hxx new file mode 100644 index 000000000..dec01ee23 --- /dev/null +++ b/extensions/source/abpilot/abspage.hxx @@ -0,0 +1,124 @@ +/************************************************************************* + * + * $RCSfile: abspage.hxx,v $ + * + * $Revision: 1.1 $ + * + * last change: $Author: fs $ $Date: 2001-08-01 11:07:07 $ + * + * The Contents of this file are made available subject to the terms of + * either of the following licenses + * + * - GNU Lesser General Public License Version 2.1 + * - Sun Industry Standards Source License Version 1.1 + * + * Sun Microsystems Inc., October, 2000 + * + * GNU Lesser General Public License Version 2.1 + * ============================================= + * Copyright 2000 by Sun Microsystems, Inc. + * 901 San Antonio Road, Palo Alto, CA 94303, USA + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License version 2.1, as published by the Free Software Foundation. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + * + * + * Sun Industry Standards Source License Version 1.1 + * ================================================= + * The contents of this file are subject to the Sun Industry Standards + * Source License Version 1.1 (the "License"); You may not use this file + * except in compliance with the License. You may obtain a copy of the + * License at http://www.openoffice.org/license.html. + * + * Software provided under this License is provided on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, + * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, + * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. + * See the License for the specific provisions governing your rights and + * obligations concerning the Software. + * + * The Initial Developer of the Original Code is: Sun Microsystems, Inc.. + * + * Copyright: 2000 by Sun Microsystems, Inc. + * + * All Rights Reserved. + * + * Contributor(s): _______________________________________ + * + * + ************************************************************************/ + +#ifndef EXTENSIONS_ABP_ABSPAGE_HXX +#define EXTENSIONS_ABP_ABSPAGE_HXX + +#ifndef _SVTOOLS_WIZARDMACHINE_HXX_ +#include <svtools/wizardmachine.hxx> +#endif +#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_ +#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#endif +#ifndef EXTENSIONS_ABPRESID_HRC +#include "abpresid.hrc" +#endif +#ifndef _EXTENSIONS_COMPONENT_MODULE_HXX_ +#include "componentmodule.hxx" +#endif +#ifndef _SV_FIXED_HXX +#include <vcl/fixed.hxx> +#endif + +//......................................................................... +namespace abp +{ +//......................................................................... + + class OAddessBookSourcePilot; + struct AddressSettings; + + //===================================================================== + //= AddressBookSourcePage + //===================================================================== + typedef ::svt::OWizardPage AddressBookSourcePage_Base; + /// the base class for all tab pages in the address book source auto pilot + class AddressBookSourcePage : public AddressBookSourcePage_Base + { + protected: + AddressBookSourcePage( OAddessBookSourcePilot* _pParent, const ResId& _rId ); + + protected: + // helper + OAddessBookSourcePilot* getDialog(); + const OAddessBookSourcePilot* getDialog() const; + ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > + getORB(); + AddressSettings& getSettings(); + const AddressSettings& getSettings() const; + + // TabDialog overridables + virtual void DeactivatePage(); + }; + +//......................................................................... +} // namespace abp +//......................................................................... + +#endif // EXTENSIONS_ABP_ABSPAGE_HXX + +/************************************************************************* + * history: + * $Log: not supported by cvs2svn $ + * + * Revision 1.0 26.07.01 09:13:58 fs + ************************************************************************/ + |