bump product version to 6.3.0.0.beta1
[LibreOffice.git] / sd / source / ui / unoidl / unoobj.hxx
blobb258f4fd2ac72a926fdb4bf9ca10c70491c15cc3
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_SD_SOURCE_UI_UNOIDL_UNOOBJ_HXX
20 #define INCLUDED_SD_SOURCE_UI_UNOIDL_UNOOBJ_HXX
22 #include <com/sun/star/beans/PropertyState.hpp>
23 #include <com/sun/star/document/XEventsSupplier.hpp>
24 #include <svx/unomaster.hxx>
26 namespace com { namespace sun { namespace star { namespace beans { class XPropertySetInfo; } } } }
28 class SdXImpressDocument;
29 class SdAnimationInfo;
30 class SvxItemPropertySet;
31 class SvxShape;
32 struct SfxItemPropertyMapEntry;
34 class SdXShape : public SvxShapeMaster,
35 public css::document::XEventsSupplier
37 friend class SdUnoEventsAccess;
39 private:
40 SvxShape* mpShape;
41 const SvxItemPropertySet* mpPropSet;
42 const SfxItemPropertyMapEntry* mpMap;
43 SdXImpressDocument* mpModel;
45 /// @throws css::lang::IllegalArgumentException
46 /// @throws css::beans::UnknownPropertyException
47 /// @throws css::uno::RuntimeException
48 void SetStyleSheet( const css::uno::Any& rAny );
49 /// @throws css::beans::UnknownPropertyException
50 css::uno::Any GetStyleSheet() const;
52 // Intern
53 /// @throws std::exception
54 SdAnimationInfo* GetAnimationInfo( bool bCreate = false ) const;
55 /// @throws std::exception
56 bool IsPresObj() const;
58 bool IsEmptyPresObj() const;
59 void SetEmptyPresObj(bool bEmpty);
61 bool IsMasterDepend() const throw();
62 void SetMasterDepend( bool bDepend ) throw();
64 OUString GetPlaceholderText() const;
66 public:
67 SdXShape(SvxShape* pShape, SdXImpressDocument* pModel);
68 virtual ~SdXShape() throw();
70 virtual bool queryAggregation( const css::uno::Type & rType, css::uno::Any& aAny ) override;
71 virtual void dispose() override;
73 // XInterface
74 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
75 virtual void SAL_CALL acquire() throw() override;
76 virtual void SAL_CALL release() throw() override;
78 // XServiceInfo
79 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
81 //XPropertySet
82 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
83 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
84 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
86 //XPropertyState
87 virtual css::beans::PropertyState SAL_CALL getPropertyState( const OUString& PropertyName ) override;
88 virtual void SAL_CALL setPropertyToDefault( const OUString& PropertyName ) override;
89 virtual css::uno::Any SAL_CALL getPropertyDefault( const OUString& aPropertyName ) override;
91 // XTypeProvider
92 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes( ) override;
94 // XEventsSupplier
95 virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents( ) override;
98 struct SvEventDescription;
99 const SvEventDescription* ImplGetSupportedMacroItems();
101 #endif
103 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */