19#ifndef INCLUDED_SW_INC_UNOFRAME_HXX
20#define INCLUDED_SW_INC_UNOFRAME_HXX
22#include <com/sun/star/beans/XPropertyState.hpp>
23#include <com/sun/star/container/XNamed.hpp>
24#include <com/sun/star/container/XEnumerationAccess.hpp>
25#include <com/sun/star/document/XEmbeddedObjectSupplier2.hpp>
26#include <com/sun/star/text/XTextFrame.hpp>
27#include <com/sun/star/drawing/XShape.hpp>
28#include <com/sun/star/util/XModifyListener.hpp>
29#include <com/sun/star/document/XEventsSupplier.hpp>
50 css::lang::XServiceInfo,
51 css::beans::XPropertySet,
52 css::beans::XPropertyState,
54 css::container::XNamed,
55 css::text::XTextContent
70 std::unique_ptr<BaseFrameProperties_Impl> m_pProps;
74 sal_Int64 m_nDrawAspect;
75 sal_Int64 m_nVisibleAreaWidth;
76 sal_Int64 m_nVisibleAreaHeight;
77 css::uno::Reference<css::text::XText> m_xParentText;
78 css::uno::Reference< css::beans::XPropertySet > mxStyleData;
79 css::uno::Reference< css::container::XNameAccess > mxStyleFamily;
81 void DisposeInternal();
86 virtual ~SwXFrame()
override;
101 virtual OUString SAL_CALL getName()
override;
102 virtual void SAL_CALL setName(
const OUString& Name_)
override;
105 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( )
override;
106 virtual void SAL_CALL
setPropertyValue(
const OUString& aPropertyName,
const css::uno::Any& aValue )
override;
107 virtual css::uno::Any SAL_CALL
getPropertyValue(
const OUString& PropertyName )
override;
108 virtual void SAL_CALL addPropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
override;
109 virtual void SAL_CALL removePropertyChangeListener(
const OUString& aPropertyName,
const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
override;
110 virtual void SAL_CALL addVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
111 virtual void SAL_CALL removeVetoableChangeListener(
const OUString& PropertyName,
const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
override;
114 virtual css::beans::PropertyState SAL_CALL getPropertyState(
const OUString& PropertyName )
override;
115 virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates(
const css::uno::Sequence< OUString >& aPropertyName )
override;
116 virtual void SAL_CALL setPropertyToDefault(
const OUString& PropertyName )
override;
117 virtual css::uno::Any SAL_CALL getPropertyDefault(
const OUString& aPropertyName )
override;
120 virtual css::awt::Point SAL_CALL getPosition( )
override;
121 virtual void SAL_CALL setPosition(
const css::awt::Point& aPosition )
override;
122 virtual css::awt::Size SAL_CALL getSize( )
override;
123 virtual void SAL_CALL setSize(
const css::awt::Size& aSize )
override;
126 virtual OUString SAL_CALL getShapeType()
override;
130 virtual void SAL_CALL
dispose()
override;
131 virtual void SAL_CALL addEventListener(
const css::uno::Reference<css::lang::XEventListener>& xListener)
override;
132 virtual void SAL_CALL removeEventListener(
const css::uno::Reference<css::lang::XEventListener>& xListener)
override;
135 virtual void SAL_CALL attach(
const css::uno::Reference<css::text::XTextRange>& xTextRange)
override;
136 virtual css::uno::Reference<css::text::XTextRange> SAL_CALL getAnchor()
override;
145 void attachToRange(css::uno::Reference<css::text::XTextRange>
const& xTextRange,
146 SwPaM const* pCopySource =
nullptr);
149 {
return m_pFrameFormat; }
151 {
return m_pFrameFormat; }
155 bool IsDescriptor()
const {
return m_bIsDescriptor;}
156 void ResetDescriptor();
161typedef cppu::ImplInheritanceHelper
164 css::text::XTextFrame,
165 css::container::XEnumerationAccess,
166 css::document::XEventsSupplier
173 friend class SwXFrame;
189 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& aType )
override;
190 virtual void SAL_CALL acquire( ) noexcept override;
191 virtual
SW_DLLPUBLIC void SAL_CALL release( ) noexcept override;
194 virtual css::
uno::Sequence< css::
uno::
Type > SAL_CALL getTypes( ) override;
195 virtual css::
uno::Sequence<
sal_Int8 > SAL_CALL getImplementationId( ) override;
198 virtual
SW_DLLPUBLIC css::
uno::Reference< css::text::XText > SAL_CALL getText() override;
203 const ::css::
uno::Reference< ::css::text::XTextRange >& aTextPosition ) override;
206 virtual css::
uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override;
209 virtual css::
uno::
Type SAL_CALL getElementType( ) override;
210 virtual
sal_Bool SAL_CALL hasElements( ) override;
213 virtual
void SAL_CALL attach( const css::
uno::Reference< css::text::XTextRange >& xTextRange ) override;
214 virtual css::
uno::Reference< css::text::XTextRange > SAL_CALL getAnchor( ) override;
217 virtual
void SAL_CALL
dispose( ) override;
218 virtual
void SAL_CALL addEventListener( const css::
uno::Reference< css::lang::XEventListener >& xListener ) override;
219 virtual
void SAL_CALL removeEventListener( const css::
uno::Reference< css::lang::XEventListener >& aListener ) override;
222 virtual OUString SAL_CALL getImplementationName() override;
223 virtual
sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
224 virtual css::
uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
227 virtual css::
uno::Reference< css::container::XNameReplace > SAL_CALL getEvents( ) override;
230 virtual
SW_DLLPUBLIC css::
uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName ) override;
231 using SwXFrame::setPropertyValue;
234typedef
cppu::ImplInheritanceHelper
236 css::document::XEventsSupplier
241 friend class SwXFrame;
259 virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents( )
override;
262typedef cppu::ImplInheritanceHelper
264 css::document::XEmbeddedObjectSupplier2,
265 css::document::XEventsSupplier
272 friend class SwXFrame;
285 virtual css::uno::Reference< css::lang::XComponent > SAL_CALL getEmbeddedObject()
override;
286 virtual css::uno::Reference< css::embed::XEmbeddedObject > SAL_CALL getExtendedControlOverEmbeddedObject()
override;
287 virtual ::sal_Int64 SAL_CALL getAspect()
override;
288 virtual void SAL_CALL setAspect( ::sal_Int64 _aspect )
override;
289 virtual css::uno::Reference< css::graphic::XGraphic > SAL_CALL getReplacementGraphic()
override;
297 virtual css::uno::Reference< css::container::XNameReplace > SAL_CALL getEvents( )
override;
310 virtual void SAL_CALL disposing(
const css::lang::EventObject& Source )
override;
313 virtual void SAL_CALL modified(
const css::lang::EventObject& aEvent )
override;
virtual void Notify(const SfxHint &rHint)
PaM is Point and Mark: a selection of the document model.
Starts a section of nodes in the document model.
css::uno::Reference< css::frame::XModel > m_xOLEModel
css::uno::Reference< css::util::XModifyListener > m_xOLEListener
void SetDoc(SwDoc *const pDoc)
static SwNode * GetStartNode(SwOutlineNodes const *pOutlNds, int nOutlineLevel, SwOutlineNodes::size_type *nOutl)
const EnumerationType m_eType
class SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE("crosscast") SwFlowFrame
Base class that provides the general functionalities for frames that are allowed at page breaks (flow...
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
VBAHELPER_DLLPUBLIC bool setPropertyValue(css::uno::Sequence< css::beans::PropertyValue > &aProp, const OUString &aName, const css::uno::Any &aValue)
bool getPropertyValue(ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
std::unique_ptr< T, UnoImplPtrDeleter< T > > UnoImplPtr
Smart pointer class ensuring that the pointed object is deleted with a locked SolarMutex.
cppu::ImplInheritanceHelper< SwXFrame, css::document::XEmbeddedObjectSupplier2, css::document::XEventsSupplier > SwXTextEmbeddedObjectBaseClass
cppu::ImplInheritanceHelper< SwXFrame, css::document::XEventsSupplier > SwXTextGraphicObjectBaseClass
class SAL_DLLPUBLIC_RTTI SAL_LOPLUGIN_ANNOTATE("crosscast") SwXFrame typedef cppu::ImplInheritanceHelper< SwXFrame, css::text::XTextFrame, css::container::XEnumerationAccess, css::document::XEventsSupplier > SwXTextFrameBaseClass