2007-12-07 09:42:26 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 23:47:57 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
2008-04-10 23:47:57 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
2008-04-10 23:47:57 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
2008-04-10 23:47:57 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
2008-04-10 23:47:57 +00:00
|
|
|
* OpenOffice.org 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 version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
2008-04-10 23:47:57 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2007-12-07 09:42:26 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#include <comphelper/servicedecl.hxx>
|
2009-02-13 13:03:24 +00:00
|
|
|
#include <ooo/vba/XHelperInterface.hpp>
|
2007-12-07 09:42:26 +00:00
|
|
|
|
|
|
|
namespace comphelper {
|
|
|
|
namespace service_decl {
|
|
|
|
template <typename ImplT_, typename WithArgsT = with_args<false> >
|
2009-09-18 15:24:22 +00:00
|
|
|
struct vba_service_class_ : public serviceimpl_base< detail::OwnServiceImpl<ImplT_>, WithArgsT >
|
|
|
|
{
|
|
|
|
typedef serviceimpl_base< detail::OwnServiceImpl<ImplT_>, WithArgsT > baseT;
|
2007-12-07 09:42:26 +00:00
|
|
|
/** Default ctor. Implementation class without args, expecting
|
|
|
|
component context as single argument.
|
|
|
|
*/
|
2009-09-18 15:24:22 +00:00
|
|
|
vba_service_class_() : baseT() {}
|
|
|
|
template <typename PostProcessFuncT>
|
|
|
|
/** Ctor to pass a post processing function/functor.
|
|
|
|
|
|
|
|
@tpl PostProcessDefaultT let your compiler deduce this
|
|
|
|
@param postProcessFunc function/functor that gets the yet unacquired
|
|
|
|
ImplT_ pointer returning a
|
|
|
|
uno::Reference<uno::XInterface>
|
|
|
|
*/
|
|
|
|
explicit vba_service_class_( PostProcessFuncT const& postProcessFunc ) : baseT( postProcessFunc ) {}
|
2007-12-07 09:42:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace service_decl
|
|
|
|
} // namespace comphelper
|
|
|
|
|