1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef OOVBAAPI_SERV_DECL
24 #define OOVBAAPI_SERV_DECL
25 #include <comphelper/servicedecl.hxx>
26 #include <ooo/vba/XHelperInterface.hpp>
27 
28 namespace comphelper {
29 namespace service_decl {
30 template <typename ImplT_, typename WithArgsT = with_args<false> >
31 struct vba_service_class_ : public serviceimpl_base< detail::OwnServiceImpl<ImplT_>, WithArgsT >
32 {
33     typedef serviceimpl_base< detail::OwnServiceImpl<ImplT_>, WithArgsT > baseT;
34     /** Default ctor.  Implementation class without args, expecting
35         component context as single argument.
36     */
vba_service_class_comphelper::service_decl::vba_service_class_37     vba_service_class_() : baseT() {}
38     template <typename PostProcessFuncT>
39     /** Ctor to pass a post processing function/functor.
40 
41         @tpl PostProcessDefaultT let your compiler deduce this
42         @param postProcessFunc function/functor that gets the yet unacquired
43                                ImplT_ pointer returning a
44                                uno::Reference<uno::XInterface>
45     */
vba_service_class_comphelper::service_decl::vba_service_class_46     explicit vba_service_class_( PostProcessFuncT const& postProcessFunc ) : baseT( postProcessFunc ) {}
47 };
48 
49 } // namespace service_decl
50 } // namespace comphelper
51 #endif
52