Debian Codegraph @

extensions/test/ole/unoTocomCalls/XCallback_Impl/Simple.h

raw
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19 // Simple.h : Declaration of the CSimple
20
21 #pragma once
22
23 #include "resource.h"
24
25
26 // CSimple
27 class ATL_NO_VTABLE CSimple :
28 public CComObjectRootEx<CComSingleThreadModel>,
29 public CComCoClass<CSimple, &CLSID_Simple>,
30 public IDispatchImpl<ISimple, &IID_ISimple, &LIBID_XCALLBACK_IMPLLib>
31 {
32 public:
33 CSimple()
34 {
35 }
36
37 DECLARE_REGISTRY_RESOURCEID(IDR_SIMPLE)
38
39 DECLARE_PROTECT_FINAL_CONSTRUCT()
40
41 BEGIN_COM_MAP(CSimple)
42 COM_INTERFACE_ENTRY(ISimple)
43 COM_INTERFACE_ENTRY(IDispatch)
44 END_COM_MAP()
45
46 // ISimple
47 public:
48
49 STDMETHOD(get__implementedInterfaces)(/*[out, retval]*/ LPSAFEARRAY *pVal);
50 STDMETHOD(func3)(/*[in]*/ BSTR message);
51 STDMETHOD(func2)(/*[in]*/ BSTR message);
52 STDMETHOD(func)( BSTR message);
53 };
54
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */