1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_SHELL_INC_SPSUPP_SPSUPPCLASSFACTORY_HPP
11 #define INCLUDED_SHELL_INC_SPSUPP_SPSUPPCLASSFACTORY_HPP
13 #include "COMRefCounted.hpp"
15 class ClassFactory
: public COMRefCounted
<IClassFactory
>
19 virtual ~ClassFactory() override
;
23 HRESULT STDMETHODCALLTYPE
QueryInterface(
25 void **ppvObject
) override
;
27 // IClassFactory methods
29 HRESULT STDMETHODCALLTYPE
CreateInstance(
32 void **ppvObject
) override
;
34 HRESULT STDMETHODCALLTYPE
LockServer(
39 static LONG
GetObjectCount() { return m_nObjCount
; }
40 static LONG
GetLockCount() { return m_nLockCount
; }
43 static LONG m_nObjCount
;
44 static LONG m_nLockCount
;
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */