LibreOffice Module svx (master) 1
unopool.hxx
Go to the documentation of this file.
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
20#ifndef INCLUDED_SVX_UNOPOOL_HXX
21#define INCLUDED_SVX_UNOPOOL_HXX
22
23#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <com/sun/star/lang/XTypeProvider.hpp>
27#include <svx/svxdllapi.h>
28#include <svl/itempool.hxx>
29
30class SdrModel;
31class SfxItemPool;
32
40 public css::lang::XServiceInfo,
41 public css::lang::XTypeProvider,
43{
44public:
45 SvxUnoDrawPool(SdrModel* pModel, sal_Int32 nServiceId);
46
48 SvxUnoDrawPool(SdrModel* pModel);
49 virtual ~SvxUnoDrawPool() noexcept override;
50
54 virtual SfxItemPool* getModelPool( bool bReadOnly ) noexcept;
55
56 // overridden helpers from comphelper::PropertySetHelper
57 virtual void _setPropertyValues( const comphelper::PropertyMapEntry** ppEntries, const css::uno::Any* pValues ) override;
58 virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, css::uno::Any* pValue ) override;
59
60 virtual void _getPropertyStates( const comphelper::PropertyMapEntry** ppEntries, css::beans::PropertyState* pStates ) override;
61 virtual void _setPropertyToDefault( const comphelper::PropertyMapEntry* pEntry ) override;
62 virtual css::uno::Any _getPropertyDefault( const comphelper::PropertyMapEntry* pEntry ) override;
63
64 // XInterface
65 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) override;
66 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
67 virtual void SAL_CALL acquire() noexcept override
69 virtual void SAL_CALL release() noexcept override
71
72 // XTypeProvider
73 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
74 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
75
76 // XServiceInfo
77 virtual OUString SAL_CALL getImplementationName() override;
78 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
79 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
80
81protected:
82 void init();
83
85 static void getAny( SfxItemPool const * pPool, const comphelper::PropertyMapEntry* pEntry, css::uno::Any& rValue );
89 virtual void putAny( SfxItemPool* pPool, const comphelper::PropertyMapEntry* pEntry, const css::uno::Any& rValue );
90
91protected:
94};
95
96#endif
97
98/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
const PropertyValue * pValues
FILE * init(int, char **)
This class implements the service com.sun.star.drawing.Defaults.
Definition: unopool.hxx:43
virtual void SAL_CALL release() noexcept override
Definition: unopool.hxx:69
virtual void SAL_CALL acquire() noexcept override
Definition: unopool.hxx:67
SdrModel * mpModel
Definition: unopool.hxx:92
rtl::Reference< SfxItemPool > mpDefaultsPool
Definition: unopool.hxx:93
virtual void _getPropertyValues(const comphelper::PropertyMapEntry **ppEntries, css::uno::Any *pValue)=0
virtual void _setPropertyValues(const comphelper::PropertyMapEntry **ppEntries, const css::uno::Any *pValues)=0
virtual void _getPropertyStates(const comphelper::PropertyMapEntry **ppEntries, css::beans::PropertyState *pStates)
virtual css::uno::Any _getPropertyDefault(const comphelper::PropertyMapEntry *pEntry)
virtual void _setPropertyToDefault(const comphelper::PropertyMapEntry *pEntry)
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &rType) SAL_OVERRIDE
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) SAL_OVERRIDE
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
virtual void SAL_CALL release() SAL_NOEXCEPT SAL_OVERRIDE
bool bReadOnly
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
unsigned char sal_Bool