LibreOffice Module svx (master)  1
shapeimpl.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 #ifndef INCLUDED_SVX_SOURCE_UNODRAW_SHAPEIMPL_HXX
20 #define INCLUDED_SVX_SOURCE_UNODRAW_SHAPEIMPL_HXX
21 
22 #include <svx/unoprov.hxx>
23 #include <svx/unoshape.hxx>
24 
26 {
27 public:
28  explicit SvxShapeCaption(SdrObject* pObj);
29  virtual ~SvxShapeCaption() noexcept override;
30 };
32 {
33 protected:
34  // override these for special property handling in subcasses. Return true if property is handled
35  virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
36  virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
37 
38 public:
39  explicit SvxPluginShape(SdrObject* pObj);
40  virtual ~SvxPluginShape() noexcept override;
41 
42  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
44 
45  virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
46 
47  virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
48 };
50 {
51 protected:
52  // override these for special property handling in subcasses. Return true if property is handled
53  virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
54  virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
55 
56 public:
57  explicit SvxAppletShape(SdrObject* pObj);
58  virtual ~SvxAppletShape() noexcept override;
59 
60  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
62 
63  virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
64 
65  virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
66 };
68 {
69 protected:
70  // override these for special property handling in subcasses. Return true if property is handled
71  virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
72  virtual bool getPropertyValueImpl(const OUString& rName, const SfxItemPropertyMapEntry* pProperty,
73  css::uno::Any& rValue) override;
74 
75 public:
76  explicit SvxFrameShape(SdrObject* pObj);
77  virtual ~SvxFrameShape() noexcept override;
78 
79  virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
81 
82  virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
83 
84  virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
85 };
86 
87 
88 class SvxTableShape : public SvxShape
89 {
90 protected:
91  // override these for special property handling in subcasses. Return true if property is handled
92  virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
93  virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
94 
95  virtual void lock() override;
96  virtual void unlock() override;
97 
98 public:
99 
100  explicit SvxTableShape(SdrObject* pObj);
101  virtual ~SvxTableShape() noexcept override;
102 };
103 
105 
106 #endif
107 
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~SvxFrameShape() noexcept override
Definition: unoshap4.cxx:702
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap4.cxx:583
virtual ~SvxTableShape() noexcept override
Definition: tableshape.cxx:44
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap4.cxx:654
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unoshap4.cxx:642
virtual ~SvxShapeCaption() noexcept override
Definition: unoshap2.cxx:1559
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: unoshap4.cxx:577
virtual void unlock() override
called from the XActionLockable interface methods on final unlock
Definition: tableshape.cxx:170
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap4.cxx:604
virtual void Create(SdrObject *pNewOpj, SvxDrawPage *pNewPage) override
Definition: unoshap4.cxx:706
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap4.cxx:675
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unoshap4.cxx:571
virtual void lock() override
called from the XActionLockable interface methods on initial locking
Definition: tableshape.cxx:163
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: tableshape.cxx:48
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: unoshap4.cxx:747
SvxShapeCaption(SdrObject *pObj)
Definition: unoshap2.cxx:1554
Abstract DrawObject.
Definition: svdobj.hxx:259
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
SvxTableShape(SdrObject *pObj)
Definition: tableshape.cxx:38
SvxUnoPropertyMapProvider.
Definition: unoprov.hxx:84
virtual bool setPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, const css::uno::Any &rValue) override
Definition: unoshap4.cxx:726
virtual bool getPropertyValueImpl(const OUString &rName, const SfxItemPropertyMapEntry *pProperty, css::uno::Any &rValue) override
Definition: tableshape.cxx:100
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: unoshap4.cxx:720
virtual void Create(SdrObject *pNewOpj, SvxDrawPage *pNewPage) override
Definition: unoshap4.cxx:634
virtual void Create(SdrObject *pNewOpj, SvxDrawPage *pNewPage) override
Definition: unoshap4.cxx:563
SvxAppletShape(SdrObject *pObj)
Definition: unoshap4.cxx:553
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
Definition: unoshap4.cxx:714
SvxFrameShape(SdrObject *pObj)
Definition: unoshap4.cxx:696
SvxUnoPropertyMapProvider & getSvxMapProvider()
Definition: unoprov.cxx:880
virtual ~SvxPluginShape() noexcept override
Definition: unoshap4.cxx:630
SvxPluginShape(SdrObject *pObj)
Definition: unoshap4.cxx:624
virtual void SAL_CALL setPropertyValues(const css::uno::Sequence< OUString > &aPropertyNames, const css::uno::Sequence< css::uno::Any > &aValues) override
Definition: unoshap4.cxx:648
virtual ~SvxAppletShape() noexcept override
Definition: unoshap4.cxx:559