LibreOffice Module sd (master) 1
unoobj.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#pragma once
20
21#include <com/sun/star/beans/PropertyState.hpp>
22#include <com/sun/star/document/XEventsSupplier.hpp>
23#include <svx/unomaster.hxx>
24
25namespace com::sun::star::beans { class XPropertySetInfo; }
26
28class SdAnimationInfo;
30class SvxShape;
32
33class SdXShape : public SvxShapeMaster,
34 public css::document::XEventsSupplier
35{
36 friend class SdUnoEventsAccess;
37
38private:
43
47 void SetStyleSheet( const css::uno::Any& rAny );
49 css::uno::Any GetStyleSheet() const;
50
51 // Intern
53 SdAnimationInfo* GetAnimationInfo( bool bCreate = false ) const;
55 bool IsPresObj() const;
56
57 bool IsEmptyPresObj() const;
58 void SetEmptyPresObj(bool bEmpty);
59
60 bool IsMasterDepend() const noexcept;
61 void SetMasterDepend( bool bDepend ) noexcept;
62
63 OUString GetPlaceholderText() const;
64
65public:
66 SdXShape(SvxShape* pShape, SdXImpressDocument* pModel);
67 virtual ~SdXShape() noexcept;
68
69 virtual bool queryAggregation( const css::uno::Type & rType, css::uno::Any& aAny ) override;
70 virtual void dispose() override;
71
72 // XInterface
73 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
74 virtual void SAL_CALL acquire() noexcept override;
75 virtual void SAL_CALL release() noexcept override;
76
77 // XServiceInfo
78 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
79
80 //XPropertySet
81 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
82 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
83 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
84
85 //XPropertyState
86 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
87 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
88 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
89
90 // XTypeProvider
91 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
92
93 // XEventsSupplier
94 virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents( ) override;
95};
96
99
100/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsMasterDepend() const noexcept
Definition: unoobj.cxx:951
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: unoobj.cxx:300
o3tl::span< const SfxItemPropertyMapEntry > mpMap
Definition: unoobj.hxx:41
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: unoobj.cxx:797
virtual bool queryAggregation(const css::uno::Type &rType, css::uno::Any &aAny) override
Definition: unoobj.cxx:286
virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents() override
Definition: unoobj.cxx:1048
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: unoobj.cxx:271
const SvxItemPropertySet * mpPropSet
Definition: unoobj.hxx:40
void SetStyleSheet(const css::uno::Any &rAny)
Definition: unoobj.cxx:977
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
Definition: unoobj.cxx:379
OUString GetPlaceholderText() const
Definition: unoobj.cxx:852
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unoobj.cxx:404
void SetMasterDepend(bool bDepend) noexcept
Definition: unoobj.cxx:957
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
Definition: unoobj.cxx:643
virtual void SAL_CALL setPropertyToDefault(const OUString &PropertyName) override
Definition: unoobj.cxx:349
virtual void SAL_CALL acquire() noexcept override
Definition: unoobj.cxx:276
void SetEmptyPresObj(bool bEmpty)
sets/reset the empty status of a presentation object
Definition: unoobj.cxx:872
SvxShape * mpShape
Definition: unoobj.hxx:39
css::uno::Any GetStyleSheet() const
Definition: unoobj.cxx:1006
bool IsPresObj() const
checks if this is a presentation object
Definition: unoobj.cxx:822
virtual void dispose() override
Definition: unoobj.cxx:265
bool IsEmptyPresObj() const
checks if this presentation object is empty
Definition: unoobj.cxx:836
SdAnimationInfo * GetAnimationInfo(bool bCreate=false) const
Definition: unoobj.cxx:786
SdXImpressDocument * mpModel
Definition: unoobj.hxx:42
virtual void SAL_CALL release() noexcept override
Definition: unoobj.cxx:281
virtual css::uno::Any SAL_CALL getPropertyDefault(const OUString &aPropertyName) override
Definition: unoobj.cxx:363
virtual css::beans::PropertyState SAL_CALL getPropertyState(const OUString &PropertyName) override
Definition: unoobj.cxx:331
Type
const SvEventDescription * ImplGetSupportedMacroItems()
Definition: unoobj.cxx:235