xmloff: ODF export: stop producing decorative on draw:frame etc.
[LibreOffice.git] / shell / inc / spsupp / spsuppClassFactory.hpp
blobbf97fca13fced476759d4151f551835d7eec51de
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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>
17 public:
18 ClassFactory();
19 virtual ~ClassFactory() override;
21 // IUnknown methods
23 HRESULT STDMETHODCALLTYPE QueryInterface(
24 REFIID riid,
25 void **ppvObject) override;
27 // IClassFactory methods
29 HRESULT STDMETHODCALLTYPE CreateInstance(
30 IUnknown *pUnkOuter,
31 REFIID riid,
32 void **ppvObject) override;
34 HRESULT STDMETHODCALLTYPE LockServer(
35 BOOL fLock) override;
37 // Non-COM methods
39 static LONG GetObjectCount() { return m_nObjCount; }
40 static LONG GetLockCount() { return m_nLockCount; }
42 private:
43 static LONG m_nObjCount;
44 static LONG m_nLockCount;
47 #endif
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */