put floating frames under managed links control
[LibreOffice.git] / svx / source / unodraw / shapeimpl.hxx
blobcc7d29f03cafc671d82d24b0cca362f54d4d4064
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_SVX_SOURCE_UNODRAW_SHAPEIMPL_HXX
20 #define INCLUDED_SVX_SOURCE_UNODRAW_SHAPEIMPL_HXX
22 #include <svx/unoprov.hxx>
23 #include <svx/unoshape.hxx>
25 class SvxShapeCaption : public SvxShapeText
27 public:
28 explicit SvxShapeCaption(SdrObject* pObj);
29 virtual ~SvxShapeCaption() noexcept override;
31 class SvxPluginShape : public SvxOle2Shape
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;
38 public:
39 explicit SvxPluginShape(SdrObject* pObj);
40 virtual ~SvxPluginShape() noexcept override;
42 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
43 using SvxUnoTextRangeBase::setPropertyValue;
45 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
47 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
49 class SvxAppletShape : public SvxOle2Shape
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;
56 public:
57 explicit SvxAppletShape(SdrObject* pObj);
58 virtual ~SvxAppletShape() noexcept override;
60 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
61 using SvxUnoTextRangeBase::setPropertyValue;
63 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
65 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
68 class SvxFrameShape : public SvxOle2Shape
70 private:
71 OUString m_sInitialFrameURL;
72 protected:
73 // override these for special property handling in subcasses. Return true if property is handled
74 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
75 virtual bool getPropertyValueImpl(const OUString& rName, const SfxItemPropertyMapEntry* pProperty,
76 css::uno::Any& rValue) override;
78 public:
79 explicit SvxFrameShape(SdrObject* pObj);
80 virtual ~SvxFrameShape() noexcept override;
82 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const css::uno::Any& aValue ) override;
83 using SvxUnoTextRangeBase::setPropertyValue;
85 virtual void SAL_CALL setPropertyValues( const css::uno::Sequence< OUString >& aPropertyNames, const css::uno::Sequence< css::uno::Any >& aValues ) override;
87 virtual void Create( SdrObject* pNewOpj, SvxDrawPage* pNewPage ) override;
89 virtual OUString GetAndClearInitialFrameURL() override;
93 class SvxTableShape : public SvxShape
95 protected:
96 // override these for special property handling in subcasses. Return true if property is handled
97 virtual bool setPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, const css::uno::Any& rValue ) override;
98 virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertyMapEntry* pProperty, css::uno::Any& rValue ) override;
100 virtual void lock() override;
101 virtual void unlock() override;
103 public:
105 explicit SvxTableShape(SdrObject* pObj);
106 virtual ~SvxTableShape() noexcept override;
109 SvxUnoPropertyMapProvider& getSvxMapProvider();
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */